]>
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 | ||
8f514ab4 RD |
2929 | // See http://tinyurl.com/e5adr for what premultiplying alpha means. It |
2930 | // appears to me that the other platforms are already doing it, so I'll just | |
2931 | // automatically do it for wxMSW here. | |
2932 | #ifdef __WXMSW__ | |
2933 | #define wxPy_premultiply(p, a) ((p) * (a) / 0xff) | |
2934 | #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p)) | |
2935 | #else | |
2936 | #define wxPy_premultiply(p, a) (p) | |
2937 | #define wxPy_unpremultiply(p, a) (p) | |
2938 | #endif | |
2939 | ||
2940 | ||
093d3ff1 | 2941 | #include <wx/image.h> |
b88bce5f | 2942 | |
093d3ff1 RD |
2943 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
2944 | char** cArray = NULL; | |
2945 | int count; | |
2946 | ||
2947 | if (!PyList_Check(listOfStrings)) { | |
2948 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
2949 | return NULL; | |
2950 | } | |
2951 | count = PyList_Size(listOfStrings); | |
2952 | cArray = new char*[count]; | |
2953 | ||
2954 | for(int x=0; x<count; x++) { | |
2955 | // TODO: Need some validation and error checking here | |
2956 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
2957 | } | |
2958 | return cArray; | |
b88bce5f | 2959 | } |
b88bce5f RD |
2960 | |
2961 | ||
0085ce49 | 2962 | SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){ |
fc46b7f3 RD |
2963 | char** cArray = NULL; |
2964 | wxBitmap* bmp; | |
2965 | ||
2966 | cArray = ConvertListOfStrings(listOfStrings); | |
2967 | if (! cArray) | |
2968 | return NULL; | |
2969 | bmp = new wxBitmap(cArray); | |
2970 | delete [] cArray; | |
2971 | return bmp; | |
2972 | } | |
0085ce49 | 2973 | SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){ |
fc46b7f3 RD |
2974 | char* buf; |
2975 | Py_ssize_t length; | |
2976 | PyString_AsStringAndSize(bits, &buf, &length); | |
2977 | return new wxBitmap(buf, width, height, depth); | |
2978 | } | |
0085ce49 | 2979 | SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){ |
093d3ff1 RD |
2980 | wxSize size(self->GetWidth(), self->GetHeight()); |
2981 | return size; | |
2982 | } | |
0085ce49 | 2983 | SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ |
093d3ff1 RD |
2984 | wxMask *mask = new wxMask(*self, colour); |
2985 | self->SetMask(mask); | |
2986 | } | |
0085ce49 | 2987 | SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){ |
093d3ff1 RD |
2988 | self->SetWidth(size.x); |
2989 | self->SetHeight(size.y); | |
2990 | } | |
8f514ab4 RD |
2991 | SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){ |
2992 | int height=self->GetHeight(); | |
2993 | int width=self->GetWidth(); | |
fc46b7f3 | 2994 | |
8f514ab4 RD |
2995 | if (DATASIZE != width * height * 3) { |
2996 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
2997 | } | |
2998 | wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height)); | |
2999 | if (! pixData) { | |
3000 | // raise an exception... | |
3001 | wxPyErr_SetString(PyExc_RuntimeError, | |
3002 | "Failed to gain raw access to bitmap data."); | |
3003 | return; | |
3004 | } | |
fc46b7f3 | 3005 | |
8f514ab4 RD |
3006 | wxNativePixelData::Iterator p(pixData); |
3007 | for (int y=0; y<height; y++) { | |
3008 | wxNativePixelData::Iterator rowStart = p; | |
3009 | for (int x=0; x<width; x++) { | |
3010 | p.Red() = *(data++); | |
3011 | p.Green() = *(data++); | |
3012 | p.Blue() = *(data++); | |
3013 | ++p; | |
3014 | } | |
3015 | p = rowStart; | |
3016 | p.OffsetY(pixData, 1); | |
3017 | } | |
3018 | } | |
3019 | SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){ | |
3020 | int height=self->GetHeight(); | |
3021 | int width=self->GetWidth(); | |
3022 | ||
3023 | if (DATASIZE != width * height * 4) { | |
3024 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3025 | } | |
3026 | wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height)); | |
3027 | if (! pixData) { | |
3028 | // raise an exception... | |
3029 | wxPyErr_SetString(PyExc_RuntimeError, | |
3030 | "Failed to gain raw access to bitmap data."); | |
3031 | return; | |
3032 | } | |
3033 | ||
3034 | pixData.UseAlpha(); | |
3035 | wxAlphaPixelData::Iterator p(pixData); | |
3036 | for (int y=0; y<height; y++) { | |
3037 | wxAlphaPixelData::Iterator rowStart = p; | |
3038 | for (int x=0; x<width; x++) { | |
3039 | byte a = data[3]; | |
3040 | p.Red() = wxPy_premultiply(*(data++), a); | |
3041 | p.Green() = wxPy_premultiply(*(data++), a); | |
3042 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3043 | p.Alpha() = a; data++; | |
3044 | ++p; | |
3045 | } | |
3046 | p = rowStart; | |
3047 | p.OffsetY(pixData, 1); | |
3048 | } | |
3049 | } | |
3050 | SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; } | |
3051 | SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; } | |
fc46b7f3 RD |
3052 | |
3053 | wxBitmap* _BitmapFromBufferAlpha(int width, int height, | |
3054 | buffer data, int DATASIZE, | |
3055 | buffer alpha, int ALPHASIZE) | |
3056 | { | |
3057 | if (DATASIZE != width*height*3) { | |
3058 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3059 | return NULL; | |
3060 | } | |
3061 | ||
3062 | if (ALPHASIZE != width*height) { | |
3063 | wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size."); | |
3064 | return NULL; | |
3065 | } | |
3066 | ||
3067 | wxBitmap* bmp = new wxBitmap(width, height, 32); | |
3068 | wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3069 | if (! pixData) { | |
3070 | // raise an exception... | |
3071 | wxPyErr_SetString(PyExc_RuntimeError, | |
3072 | "Failed to gain raw access to bitmap data."); | |
3073 | return NULL; | |
3074 | } | |
3075 | ||
3076 | pixData.UseAlpha(); | |
3077 | wxAlphaPixelData::Iterator p(pixData); | |
3078 | for (int y=0; y<height; y++) { | |
3079 | wxAlphaPixelData::Iterator rowStart = p; | |
3080 | for (int x=0; x<width; x++) { | |
3081 | byte a = *(alpha++); | |
3082 | p.Red() = wxPy_premultiply(*(data++), a); | |
3083 | p.Green() = wxPy_premultiply(*(data++), a); | |
3084 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3085 | p.Alpha() = a; | |
3086 | ++p; | |
3087 | } | |
3088 | p = rowStart; | |
3089 | p.OffsetY(pixData, 1); | |
3090 | } | |
3091 | return bmp; | |
3092 | } | |
3093 | ||
3094 | wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE) | |
3095 | { | |
3096 | if (DATASIZE != width*height*3) { | |
3097 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3098 | return NULL; | |
3099 | } | |
3100 | ||
3101 | wxBitmap* bmp = new wxBitmap(width, height, 24); | |
3102 | wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3103 | if (! pixData) { | |
3104 | // raise an exception... | |
3105 | wxPyErr_SetString(PyExc_RuntimeError, | |
3106 | "Failed to gain raw access to bitmap data."); | |
3107 | return NULL; | |
3108 | } | |
3109 | ||
3110 | wxNativePixelData::Iterator p(pixData); | |
3111 | for (int y=0; y<height; y++) { | |
3112 | wxNativePixelData::Iterator rowStart = p; | |
3113 | for (int x=0; x<width; x++) { | |
3114 | p.Red() = *(data++); | |
3115 | p.Green() = *(data++); | |
3116 | p.Blue() = *(data++); | |
3117 | ++p; | |
3118 | } | |
3119 | p = rowStart; | |
3120 | p.OffsetY(pixData, 1); | |
3121 | } | |
3122 | return bmp; | |
3123 | } | |
3124 | ||
3125 | ||
3126 | wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE) | |
3127 | { | |
3128 | if (DATASIZE != width*height*4) { | |
3129 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3130 | return NULL; | |
3131 | } | |
3132 | ||
3133 | wxBitmap* bmp = new wxBitmap(width, height, 32); | |
3134 | wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3135 | if (! pixData) { | |
3136 | // raise an exception... | |
3137 | wxPyErr_SetString(PyExc_RuntimeError, | |
3138 | "Failed to gain raw access to bitmap data."); | |
3139 | return NULL; | |
3140 | } | |
3141 | ||
3142 | pixData.UseAlpha(); | |
3143 | wxAlphaPixelData::Iterator p(pixData); | |
3144 | for (int y=0; y<height; y++) { | |
3145 | wxAlphaPixelData::Iterator rowStart = p; | |
3146 | for (int x=0; x<width; x++) { | |
3147 | byte a = data[3]; | |
3148 | p.Red() = wxPy_premultiply(*(data++), a); | |
3149 | p.Green() = wxPy_premultiply(*(data++), a); | |
3150 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3151 | p.Alpha() = a; data++; | |
3152 | ++p; | |
3153 | } | |
3154 | p = rowStart; | |
3155 | p.OffsetY(pixData, 1); | |
3156 | } | |
3157 | return bmp; | |
3158 | } | |
3159 | ||
3160 | ||
3161 | typedef wxNativePixelData::Iterator wxNativePixelData_Accessor; | |
3162 | ||
3163 | SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); } | |
3164 | SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); } | |
3165 | SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){ | |
3166 | self->Red() = red; | |
3167 | self->Green() = green; | |
3168 | self->Blue() = blue; | |
3169 | } | |
3170 | SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){ | |
3171 | PyObject* rv = PyTuple_New(3); | |
3172 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
3173 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
3174 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
3175 | return rv; | |
3176 | } | |
3177 | ||
3178 | typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor; | |
3179 | ||
3180 | SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); } | |
3181 | SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); } | |
3182 | SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){ | |
3183 | self->Red() = wxPy_premultiply(red, alpha); | |
3184 | self->Green() = wxPy_premultiply(green, alpha); | |
3185 | self->Blue() = wxPy_premultiply(blue, alpha); | |
3186 | self->Alpha() = alpha; | |
3187 | } | |
3188 | SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){ | |
3189 | PyObject* rv = PyTuple_New(4); | |
3190 | int red = self->Red(); | |
3191 | int green = self->Green(); | |
3192 | int blue = self->Blue(); | |
3193 | int alpha = self->Alpha(); | |
3194 | ||
3195 | PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) )); | |
3196 | PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) )); | |
3197 | PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) )); | |
3198 | PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha )); | |
3199 | return rv; | |
3200 | } | |
0085ce49 | 3201 | SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){ |
b39fe951 | 3202 | if ( !colour.IsOk() ) |
093d3ff1 RD |
3203 | return new wxMask(bitmap, *wxBLACK); |
3204 | else | |
3205 | return new wxMask(bitmap, colour); | |
3206 | } | |
d14a1e28 | 3207 | |
093d3ff1 | 3208 | #include <wx/iconbndl.h> |
d14a1e28 | 3209 | |
0085ce49 | 3210 | SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){ |
093d3ff1 RD |
3211 | wxIcon* icon = new wxIcon(); |
3212 | icon->CopyFromBitmap(bmp); | |
3213 | return icon; | |
3214 | } | |
0085ce49 | 3215 | SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){ |
093d3ff1 RD |
3216 | char** cArray = NULL; |
3217 | wxIcon* icon; | |
d14a1e28 | 3218 | |
093d3ff1 RD |
3219 | cArray = ConvertListOfStrings(listOfStrings); |
3220 | if (! cArray) | |
3221 | return NULL; | |
3222 | icon = new wxIcon(cArray); | |
3223 | delete [] cArray; | |
3224 | return icon; | |
3225 | } | |
0085ce49 | 3226 | SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){ |
d14a1e28 RD |
3227 | |
3228 | ||
d14a1e28 | 3229 | |
093d3ff1 | 3230 | return new wxIconLocation(*filename); |
d14a1e28 | 3231 | |
093d3ff1 | 3232 | } |
0085ce49 | 3233 | SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){ |
d14a1e28 RD |
3234 | |
3235 | ||
d14a1e28 | 3236 | |
093d3ff1 | 3237 | // do nothing |
d14a1e28 | 3238 | |
093d3ff1 | 3239 | } |
0085ce49 | 3240 | SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){ |
b88bce5f RD |
3241 | |
3242 | ||
093d3ff1 RD |
3243 | |
3244 | return -1; | |
3245 | ||
3246 | } | |
0085ce49 | 3247 | SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){ |
093d3ff1 | 3248 | #ifdef __WXGTK__ |
7557b9b5 RD |
3249 | wxImage img(cursorName, type); |
3250 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX); | |
3251 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY); | |
3252 | return new wxCursor(img); | |
093d3ff1 | 3253 | #else |
7557b9b5 | 3254 | return new wxCursor(cursorName, type, hotSpotX, hotSpotY); |
093d3ff1 RD |
3255 | #endif |
3256 | } | |
3257 | ||
3258 | ||
0085ce49 | 3259 | SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){ |
093d3ff1 RD |
3260 | (*self) ++; |
3261 | } | |
0085ce49 | 3262 | SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){ |
093d3ff1 RD |
3263 | return self->operator bool(); |
3264 | } | |
3265 | ||
3266 | #include <wx/fontutil.h> | |
3267 | #include <wx/fontmap.h> | |
3268 | #include <wx/fontenum.h> | |
3269 | ||
0085ce49 | 3270 | SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ |
093d3ff1 RD |
3271 | return self->ToString(); |
3272 | } | |
3273 | ||
3274 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) { | |
3275 | static wxNativeEncodingInfo info; | |
3276 | if ( wxGetNativeFontEncoding(encoding, &info) ) | |
3277 | return &info; | |
3278 | else | |
3279 | return NULL; | |
3280 | } | |
3281 | ||
0085ce49 RD |
3282 | |
3283 | SWIGINTERNINLINE PyObject * | |
3284 | SWIG_From_size_t (size_t value) | |
3285 | { | |
3286 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); | |
3287 | } | |
3288 | ||
3289 | ||
3290 | SWIGINTERNINLINE int | |
3291 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) | |
3292 | { | |
3293 | unsigned long v; | |
3294 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); | |
3295 | if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); | |
3296 | return res; | |
3297 | } | |
3298 | ||
3299 | SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){ | |
093d3ff1 RD |
3300 | wxFontEncoding alt_enc; |
3301 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
3302 | return PyInt_FromLong(alt_enc); | |
3303 | else { | |
3304 | Py_INCREF(Py_None); | |
3305 | return Py_None; | |
3306 | } | |
3307 | } | |
0085ce49 | 3308 | SWIGINTERN wxFont *new_wxFont(wxString const &info){ |
a97cefba RD |
3309 | wxNativeFontInfo nfi; |
3310 | nfi.FromString(info); | |
3311 | return new wxFont(nfi); | |
3312 | } | |
0085ce49 | 3313 | SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3314 | return wxFont::New(pointSize, family, flags, face, encoding); |
3315 | } | |
0085ce49 | 3316 | 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 |
3317 | return wxFontBase::New(pixelSize, family, |
3318 | style, weight, underlined, | |
3319 | face, encoding); | |
3320 | } | |
0085ce49 | 3321 | SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3322 | return wxFontBase::New(pixelSize, family, flags, face, encoding); |
3323 | } | |
0085ce49 RD |
3324 | SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; } |
3325 | SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; } | |
093d3ff1 RD |
3326 | |
3327 | class wxPyFontEnumerator : public wxFontEnumerator { | |
3328 | public: | |
3329 | wxPyFontEnumerator() {} | |
3330 | ~wxPyFontEnumerator() {} | |
3331 | ||
3332 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
3333 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
3334 | ||
3335 | PYPRIVATE; | |
3336 | }; | |
3337 | ||
3338 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
3339 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
3340 | ||
3341 | ||
704eda0c | 3342 | SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){ |
e9d6f3a4 | 3343 | PyObject* ret; |
704eda0c | 3344 | wxArrayString arr = wxFontEnumerator::GetEncodings(); |
e9d6f3a4 | 3345 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
704eda0c | 3346 | ret = wxArrayString2PyList_helper(arr); |
e9d6f3a4 RD |
3347 | wxPyEndBlockThreads(blocked); |
3348 | return ret; | |
093d3ff1 | 3349 | } |
704eda0c | 3350 | SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){ |
e9d6f3a4 | 3351 | PyObject* ret; |
704eda0c | 3352 | wxArrayString arr = wxFontEnumerator::GetFacenames(); |
e9d6f3a4 | 3353 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
704eda0c | 3354 | ret = wxArrayString2PyList_helper(arr); |
e9d6f3a4 RD |
3355 | wxPyEndBlockThreads(blocked); |
3356 | return ret; | |
093d3ff1 RD |
3357 | } |
3358 | ||
3359 | #include <locale.h> | |
3360 | ||
0085ce49 | 3361 | SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
093d3ff1 RD |
3362 | wxLocale* loc; |
3363 | if (language == -1) | |
3364 | loc = new wxLocale(); | |
3365 | else | |
3366 | loc = new wxLocale(language, flags); | |
3367 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3368 | // for the floating point conversions and such to work right. | |
3369 | #if PY_VERSION_HEX < 0x02040000 | |
3370 | setlocale(LC_NUMERIC, "C"); | |
3371 | #endif | |
3372 | return loc; | |
3373 | } | |
0085ce49 | 3374 | 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 |
3375 | bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding); |
3376 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3377 | // for the floating point conversions and such to work right. | |
3378 | #if PY_VERSION_HEX < 0x02040000 | |
3379 | setlocale(LC_NUMERIC, "C"); | |
3380 | #endif | |
3381 | return rc; | |
3382 | } | |
0085ce49 | 3383 | SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
093d3ff1 RD |
3384 | bool rc = self->Init(language, flags); |
3385 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3386 | // for the floating point conversions and such to work right. | |
3387 | #if PY_VERSION_HEX < 0x02040000 | |
3388 | setlocale(LC_NUMERIC, "C"); | |
3389 | #endif | |
3390 | return rc; | |
3391 | } | |
3392 | ||
fc46b7f3 RD |
3393 | class wxPyLocale : public wxLocale |
3394 | { | |
3395 | public: | |
3396 | wxPyLocale(); | |
3397 | ||
3398 | wxPyLocale(const wxChar *szName, // name (for messages) | |
3399 | const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files) | |
3400 | const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale) | |
3401 | bool bLoadDefault = true, // preload wxstd.mo? | |
3402 | bool bConvertEncoding = false); // convert Win<->Unix if necessary? | |
3403 | ||
3404 | wxPyLocale(int language, // wxLanguage id or custom language | |
3405 | int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING); | |
3406 | ||
3407 | ~wxPyLocale(); | |
3408 | ||
3409 | virtual const wxChar *GetString(const wxChar *szOrigString, | |
3410 | const wxChar *szDomain = NULL) const; | |
3411 | virtual const wxChar *GetString(const wxChar *szOrigString, | |
3412 | const wxChar *szOrigString2, size_t n, | |
3413 | const wxChar *szDomain = NULL) const; | |
3414 | ||
3415 | virtual wxChar *GetSingularString(const wxChar *szOrigString, | |
3416 | const wxChar *szDomain = NULL) const; | |
3417 | virtual wxChar *GetPluralString(const wxChar *szOrigString, | |
3418 | const wxChar *szOrigString2, size_t n, | |
3419 | const wxChar *szDomain = NULL) const; | |
3420 | ||
3421 | PYPRIVATE; | |
3422 | private: | |
3423 | DECLARE_NO_COPY_CLASS(wxPyLocale) | |
3424 | }; | |
3425 | ||
3426 | wxPyLocale::wxPyLocale() : wxLocale() | |
3427 | { | |
3428 | } | |
3429 | ||
3430 | wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages) | |
3431 | const wxChar *szShort, // dir prefix (for msg files) | |
3432 | const wxChar *szLocale, // locale (for setlocale) | |
3433 | bool bLoadDefault, // preload wxstd.mo? | |
3434 | bool bConvertEncoding) // convert Win<->Unix if necessary? | |
3435 | : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding) | |
3436 | { | |
3437 | } | |
3438 | ||
3439 | wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language | |
3440 | int flags) : wxLocale(language, flags) | |
3441 | { | |
3442 | } | |
3443 | ||
3444 | wxPyLocale::~wxPyLocale() | |
3445 | { | |
3446 | } | |
3447 | ||
3448 | const wxChar *wxPyLocale::GetString(const wxChar *szOrigString, | |
3449 | const wxChar *szDomain) const | |
3450 | { | |
3451 | wxChar *str = GetSingularString(szOrigString, szDomain); | |
3452 | return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain); | |
3453 | } | |
3454 | ||
3455 | const wxChar *wxPyLocale::GetString(const wxChar *szOrigString, | |
3456 | const wxChar *szOrigString2, size_t n, | |
3457 | const wxChar *szDomain) const | |
3458 | { | |
3459 | wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain); | |
3460 | return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain); | |
3461 | } | |
3462 | ||
3463 | wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString, | |
3464 | const wxChar *szDomain) const | |
3465 | { | |
3466 | bool found; | |
3467 | static wxString str; | |
3468 | 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. | |
3469 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3470 | if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) { | |
3471 | PyObject* param1 = wx2PyString(szOrigString); | |
3472 | PyObject* param2 = wx2PyString(szDomain); | |
3473 | PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2)); | |
3474 | Py_DECREF(param1); | |
3475 | Py_DECREF(param2); | |
3476 | if (ret) { | |
3477 | str = Py2wxString(ret); | |
3478 | Py_DECREF(ret); | |
3479 | } | |
3480 | } | |
3481 | wxPyEndBlockThreads(blocked); | |
3482 | return (found ? (wxChar*)str.c_str() : NULL); | |
3483 | } | |
3484 | ||
3485 | wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString, | |
3486 | const wxChar *szOrigString2, size_t n, | |
3487 | const wxChar *szDomain) const | |
3488 | { | |
3489 | bool found; | |
3490 | static wxString str; | |
3491 | 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. | |
3492 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3493 | if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) { | |
3494 | PyObject* param1 = wx2PyString(szOrigString); | |
3495 | PyObject* param2 = wx2PyString(szOrigString2); | |
3496 | PyObject* param4 = wx2PyString(szDomain); | |
3497 | PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4)); | |
3498 | Py_DECREF(param1); | |
3499 | Py_DECREF(param2); | |
3500 | Py_DECREF(param4); | |
3501 | if( ret) { | |
3502 | str = Py2wxString(ret); | |
3503 | Py_DECREF(ret); | |
3504 | } | |
3505 | } | |
3506 | wxPyEndBlockThreads(blocked); | |
3507 | return (found ? (wxChar*)str.c_str() : NULL); | |
3508 | } | |
3509 | ||
3510 | SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ | |
3511 | wxPyLocale* loc; | |
3512 | if (language == -1) | |
3513 | loc = new wxPyLocale(); | |
3514 | else | |
3515 | loc = new wxPyLocale(language, flags); | |
3516 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3517 | // for the floating point conversions and such to work right. | |
3518 | #if PY_VERSION_HEX < 0x02040000 | |
3519 | setlocale(LC_NUMERIC, "C"); | |
3520 | #endif | |
3521 | return loc; | |
3522 | } | |
3523 | ||
093d3ff1 RD |
3524 | #include "wx/wxPython/pydrawxxx.h" |
3525 | ||
0085ce49 | 3526 | SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){ |
093d3ff1 RD |
3527 | wxColour col; |
3528 | self->GetPixel(x, y, &col); | |
3529 | return col; | |
3530 | } | |
0085ce49 | 3531 | SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ |
093d3ff1 RD |
3532 | wxColour col; |
3533 | self->GetPixel(pt, &col); | |
3534 | return col; | |
3535 | } | |
3536 | ||
3537 | SWIGINTERN int | |
0085ce49 | 3538 | SWIG_AsVal_double (PyObject *obj, double* val) |
093d3ff1 RD |
3539 | { |
3540 | if (PyNumber_Check(obj)) { | |
3541 | if (val) *val = PyFloat_AsDouble(obj); | |
0085ce49 | 3542 | return SWIG_OK; |
093d3ff1 | 3543 | } |
0085ce49 | 3544 | return SWIG_TypeError; |
093d3ff1 RD |
3545 | } |
3546 | ||
0085ce49 | 3547 | 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 |
3548 | wxRect rv; |
3549 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
3550 | return rv; | |
3551 | } | |
0085ce49 | 3552 | SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){ |
093d3ff1 RD |
3553 | wxRect rect; |
3554 | self->GetClippingBox(rect); | |
3555 | return rect; | |
3556 | } | |
0085ce49 | 3557 | SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ |
093d3ff1 RD |
3558 | wxArrayInt widths; |
3559 | self->GetPartialTextExtents(text, widths); | |
3560 | return widths; | |
3561 | } | |
3562 | ||
0085ce49 | 3563 | #define SWIG_From_double PyFloat_FromDouble |
093d3ff1 | 3564 | |
0085ce49 | 3565 | SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3566 | self->SetLogicalOrigin(point.x, point.y); |
3567 | } | |
0085ce49 | 3568 | SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3569 | self->SetDeviceOrigin(point.x, point.y); |
3570 | } | |
0085ce49 | 3571 | SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3572 | self->CalcBoundingBox(point.x, point.y); |
3573 | } | |
0085ce49 | 3574 | SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3575 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); |
3576 | } | |
0085ce49 | 3577 | SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3578 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); |
3579 | } | |
0085ce49 | 3580 | SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3581 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); |
3582 | } | |
0085ce49 | 3583 | SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3584 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); |
3585 | } | |
0085ce49 | 3586 | SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3587 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); |
3588 | } | |
0085ce49 | 3589 | SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ |
093d3ff1 RD |
3590 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); |
3591 | } | |
3592 | ||
3593 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
3594 | *x1 = dc->MinX(); | |
3595 | *y1 = dc->MinY(); | |
3596 | *x2 = dc->MaxX(); | |
3597 | *y2 = dc->MaxY(); | |
3598 | } | |
3599 | ||
3600 | ||
3601 | #include <wx/dcbuffer.h> | |
3602 | ||
3603 | ||
3604 | #include <wx/dcps.h> | |
3605 | ||
3606 | ||
3607 | class wxMetaFile : public wxObject { | |
3608 | public: | |
3609 | wxMetaFile(const wxString&) | |
3610 | { wxPyRaiseNotImplemented(); } | |
3611 | }; | |
3612 | ||
3613 | class wxMetaFileDC : public wxClientDC { | |
3614 | public: | |
3615 | wxMetaFileDC(const wxString&, int, int, const wxString&) | |
3616 | { wxPyRaiseNotImplemented(); } | |
3617 | }; | |
3618 | ||
3619 | ||
3620 | ||
3621 | class wxPrinterDC : public wxClientDC { | |
3622 | public: | |
3623 | wxPrinterDC(const wxPrintData&) | |
3624 | { wxPyRaiseNotImplemented(); } | |
3625 | ||
3626 | }; | |
3627 | ||
3628 | ||
72ef6efb RD |
3629 | #include <wx/graphics.h> |
3630 | ||
3631 | ||
3632 | #if !wxUSE_GRAPHICS_CONTEXT | |
70d7cb34 RD |
3633 | // C++ stub classes for platforms or build configurations that don't have |
3634 | // wxGraphicsContext yet. | |
72ef6efb | 3635 | |
70d7cb34 RD |
3636 | |
3637 | class wxGraphicsObject : public wxObject | |
72ef6efb RD |
3638 | { |
3639 | public : | |
70d7cb34 | 3640 | wxGraphicsObject( wxGraphicsRenderer* ) { |
72ef6efb | 3641 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 RD |
3642 | "wx.GraphicsObject is not available on this platform."); |
3643 | } | |
3644 | wxGraphicsObject( const wxGraphicsObject& ) {} | |
3645 | virtual ~wxGraphicsObject() {} | |
3646 | bool IsNull() const { return false; } | |
3647 | wxGraphicsRenderer* GetRenderer() const { return NULL; } | |
3648 | } ; | |
3649 | ||
3650 | ||
3651 | ||
3652 | class wxGraphicsPen : public wxGraphicsObject | |
3653 | { | |
3654 | wxGraphicsPen() {} | |
3655 | virtual ~wxGraphicsPen() {} | |
3656 | } ; | |
3657 | wxGraphicsPen wxNullGraphicsPen; | |
3658 | ||
3659 | ||
3660 | ||
3661 | class wxGraphicsBrush : public wxGraphicsObject | |
3662 | { | |
3663 | public : | |
3664 | wxGraphicsBrush() {} | |
3665 | virtual ~wxGraphicsBrush() {} | |
3666 | } ; | |
3667 | wxGraphicsBrush wxNullGraphicsBrush; | |
3668 | ||
3669 | ||
3670 | ||
3671 | class wxGraphicsFont : public wxGraphicsObject | |
3672 | { | |
3673 | public : | |
3674 | wxGraphicsFont() {} | |
3675 | virtual ~wxGraphicsFont() {} | |
3676 | } ; | |
3677 | wxGraphicsFont wxNullGraphicsFont; | |
3678 | ||
3679 | ||
3680 | ||
3681 | class wxGraphicsPath : public wxGraphicsObject | |
3682 | { | |
3683 | public : | |
3684 | wxGraphicsPath(wxGraphicsRenderer* ) { | |
3685 | PyErr_SetString(PyExc_NotImplementedError, | |
3686 | "wx.GraphicsPath is not available on this platform."); | |
72ef6efb RD |
3687 | } |
3688 | virtual ~wxGraphicsPath() {} | |
70d7cb34 | 3689 | |
72ef6efb | 3690 | void MoveToPoint( wxDouble, wxDouble ) {} |
70d7cb34 RD |
3691 | void MoveToPoint( const wxPoint2DDouble& ) {} |
3692 | void AddLineToPoint( wxDouble, wxDouble ) {} | |
3693 | void AddLineToPoint( const wxPoint2DDouble& ) {} | |
72ef6efb | 3694 | void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {} |
70d7cb34 RD |
3695 | void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {} |
3696 | void AddPath( const wxGraphicsPath* ) {} | |
72ef6efb RD |
3697 | void CloseSubpath() {} |
3698 | void GetCurrentPoint( wxDouble&, wxDouble&) {} | |
70d7cb34 | 3699 | wxPoint2DDouble GetCurrentPoint() { reutrn wxPoint2D(0,0); } |
72ef6efb | 3700 | void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {} |
70d7cb34 | 3701 | void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {} |
72ef6efb RD |
3702 | |
3703 | void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {} | |
3704 | void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {} | |
3705 | void AddCircle( wxDouble, wxDouble, wxDouble ) {} | |
3706 | void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {} | |
3707 | ||
70d7cb34 RD |
3708 | void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {} |
3709 | void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3710 | void * GetNativePath() const { return NULL; } | |
3711 | void UnGetNativePath(void *) {} | |
3712 | void Transform( wxGraphicsMatrix* ) {} | |
3713 | void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) {} | |
3714 | wxRect2D GetBox() { return wxRect2D(0,0,0,0); } | |
3715 | ||
3716 | bool Contains( wxDouble , wxDouble , int ) { return false; } | |
3717 | bool Contains( const wxPoint2DDouble& , int ) { return false; } | |
3718 | }; | |
5c8c7dd3 | 3719 | wxGraphicsPath wxNullGraphicsPath; |
70d7cb34 RD |
3720 | |
3721 | ||
3722 | class wxGraphicsMatrix : public wxGraphicsObject | |
3723 | { | |
3724 | public : | |
3725 | wxGraphicsMatrix(wxGraphicsRenderer* ) { | |
3726 | PyErr_SetString(PyExc_NotImplementedError, | |
3727 | "wx.GraphicsMatrix is not available on this platform."); | |
3728 | } | |
3729 | virtual ~wxGraphicsMatrix() {} | |
70d7cb34 RD |
3730 | virtual void Concat( const wxGraphicsMatrix * ) {} |
3731 | virtual void Copy( const wxGraphicsMatrix * ) {} | |
3732 | virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble , | |
3733 | wxDouble , wxDouble ) {} | |
3734 | virtual void Invert() {} | |
3735 | virtual bool IsEqual( const wxGraphicsMatrix* t) const {} | |
3736 | virtual bool IsIdentity() { return false; } | |
3737 | virtual void Translate( wxDouble , wxDouble ) {} | |
3738 | virtual void Scale( wxDouble , wxDouble ) {} | |
3739 | virtual void Rotate( wxDouble ) {} | |
3740 | virtual void TransformPoint( wxDouble *, wxDouble * ) {} | |
3741 | virtual void TransformDistance( wxDouble *, wxDouble * ) {} | |
3742 | virtual void * GetNativeMatrix() const { return NULL; } | |
72ef6efb | 3743 | }; |
5c8c7dd3 | 3744 | wxGraphicsMatrix wxNullGraphicsMatrix; |
72ef6efb | 3745 | |
70d7cb34 RD |
3746 | |
3747 | class wxGraphicsContext : public wxGraphicsObject | |
72ef6efb RD |
3748 | { |
3749 | public: | |
70d7cb34 RD |
3750 | |
3751 | wxGraphicsContext(wxGraphicsRenderer* ) { | |
72ef6efb | 3752 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 | 3753 | "wx.GraphicsContext is not available on this platform."); |
72ef6efb | 3754 | } |
70d7cb34 | 3755 | |
72ef6efb | 3756 | virtual ~wxGraphicsContext() {} |
70d7cb34 RD |
3757 | |
3758 | static wxGraphicsContext* Create( const wxWindowDC& ) { | |
72ef6efb | 3759 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 | 3760 | "wx.GraphicsContext is not available on this platform."); |
72ef6efb | 3761 | } |
b876c1e4 | 3762 | |
70d7cb34 | 3763 | static wxGraphicsContext* CreateFromNative( void * ) { |
b876c1e4 | 3764 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 RD |
3765 | "wx.GraphicsContext is not available on this platform."); |
3766 | } | |
b876c1e4 | 3767 | |
70d7cb34 RD |
3768 | static wxGraphicsContext* CreateFromNativeWindow( void * ) { |
3769 | PyErr_SetString(PyExc_NotImplementedError, | |
3770 | "wx.GraphicsContext is not available on this platform."); | |
3771 | } | |
3772 | ||
3773 | static wxGraphicsContext* Create( wxWindow* ) { | |
3774 | PyErr_SetString(PyExc_NotImplementedError, | |
3775 | "wx.GraphicsContext is not available on this platform."); | |
3776 | } | |
3777 | ||
3778 | wxGraphicsPath * CreatePath() { return NULL; } | |
3779 | ||
3780 | virtual wxGraphicsPen CreatePen(const wxPen& ) { return NULL; } | |
3781 | ||
3782 | virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return NULL; } | |
3783 | ||
3784 | virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , | |
3785 | const wxColour&, const wxColour&) { return NULL; } | |
3786 | ||
3787 | virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo, | |
3788 | wxDouble xc, wxDouble yc, wxDouble radius, | |
3789 | const wxColour &oColor, const wxColour &cColor) { return NULL; } | |
3790 | ||
3791 | virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return NULL; } | |
3792 | ||
3793 | virtual wxGraphicsMatrix* CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble, | |
3794 | wxDouble, wxDouble) { return NULL; } | |
3795 | ||
3796 | virtual void PushState() {} | |
3797 | virtual void PopState() {} | |
3798 | virtual void Clip( const wxRegion & ) {} | |
3799 | virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3800 | virtual void ResetClip() {} | |
3801 | virtual void * GetNativeContext() { return NULL; } | |
3802 | virtual void Translate( wxDouble , wxDouble ) {} | |
3803 | virtual void Scale( wxDouble , wxDouble ) {} | |
3804 | virtual void Rotate( wxDouble ) {} | |
3805 | virtual void ConcatTransform( const wxGraphicsMatrix* ) {} | |
3806 | virtual void SetTransform( const wxGraphicsMatrix* ) {} | |
3807 | virtual void GetTransform( wxGraphicsMatrix* ) {} | |
3808 | ||
3809 | virtual void SetPen( const wxGraphicsPen& ) {} | |
3810 | void SetPen( const wxPen& ) {} | |
3811 | ||
3812 | virtual void SetBrush( const wxGraphicsBrush& ) {} | |
3813 | void SetBrush( const wxBrush& ) {} | |
3814 | ||
3815 | virtual void SetFont( const wxGraphicsFont& ) {} | |
3816 | void SetFont( const wxFont&, const wxColour& ) {} | |
3817 | ||
3818 | virtual void StrokePath( const wxGraphicsPath * ) {} | |
3819 | virtual void FillPath( const wxGraphicsPath *, int ) {} | |
3820 | virtual void DrawPath( const wxGraphicsPath *, int ) {} | |
3821 | ||
3822 | virtual void DrawText( const wxString &, wxDouble , wxDouble ) {} | |
3823 | virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {} | |
3824 | virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *, | |
3825 | wxDouble *, wxDouble * ) const {} | |
3826 | virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {} | |
3827 | ||
3828 | virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3829 | virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3830 | ||
3831 | virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3832 | virtual void StrokeLines( size_t , const wxPoint2DDouble *) {} | |
3833 | virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {} | |
3834 | virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {} | |
3835 | virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3836 | virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3837 | virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3838 | virtual bool ShouldOffset() const { return false; } | |
3839 | }; | |
3840 | ||
3841 | ||
3842 | class wxGraphicsRenderer : public wxObject | |
3843 | { | |
3844 | public : | |
3845 | wxGraphicsRenderer() { | |
3846 | PyErr_SetString(PyExc_NotImplementedError, | |
3847 | "wx.GraphicsRenderer is not available on this platform."); | |
3848 | } | |
3849 | ||
3850 | virtual ~wxGraphicsRenderer() {} | |
3851 | ||
3852 | static wxGraphicsRenderer* GetDefaultRenderer( | |
3853 | PyErr_SetString(PyExc_NotImplementedError, | |
3854 | "wx.GraphicsRenderer is not available on this platform."); | |
3855 | ); | |
3856 | ||
3857 | virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; } | |
3858 | virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; } | |
3859 | virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; } | |
3860 | virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; } | |
3861 | ||
3862 | virtual wxGraphicsPath * CreatePath() { return NULL; } | |
3863 | ||
3864 | virtual wxGraphicsMatrix * CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble , | |
3865 | wxDouble , wxDouble ) { return NULL; } | |
3866 | ||
3867 | virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGaphicsPen; } | |
3868 | virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGaphicsBrush; } | |
3869 | virtual wxGraphicsBrush CreateLinearGradientBrush(xDouble , wxDouble , wxDouble , wxDouble , | |
3870 | const wxColour&, const wxColour&) { return wxNullGaphicsBrush; } | |
3871 | virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble , | |
3872 | const wxColour &, const wxColour &) { return wxNullGaphicsBrush; } | |
3873 | virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGaphicsFont; } | |
72ef6efb RD |
3874 | }; |
3875 | ||
3876 | ||
70d7cb34 | 3877 | |
72ef6efb RD |
3878 | class wxGCDC: public wxWindowDC |
3879 | { | |
3880 | public: | |
3881 | wxGCDC(const wxWindowDC&) { | |
3882 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3883 | PyErr_SetString(PyExc_NotImplementedError, | |
3884 | "wxGCDC is not available on this platform."); | |
3885 | wxPyEndBlockThreads(blocked); | |
3886 | } | |
70d7cb34 | 3887 | |
72ef6efb RD |
3888 | wxGCDC() { |
3889 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3890 | PyErr_SetString(PyExc_NotImplementedError, | |
3891 | "wxGCDC is not available on this platform."); | |
3892 | wxPyEndBlockThreads(blocked); | |
3893 | } | |
70d7cb34 | 3894 | |
72ef6efb RD |
3895 | virtual ~wxGCDC() {} |
3896 | ||
b876c1e4 RD |
3897 | wxGraphicsContext* GetGraphicsContext() { return NULL; } |
3898 | void SetGraphicsContext( wxGraphicsContext* ) {} | |
72ef6efb RD |
3899 | }; |
3900 | ||
3901 | #endif | |
3902 | ||
5c8c7dd3 RD |
3903 | SWIGINTERN void wxGraphicsMatrix_Copy(wxGraphicsMatrix *self,wxGraphicsMatrix const &t){ |
3904 | *self = t; | |
3905 | } | |
be68621e RD |
3906 | SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){ |
3907 | wxDouble width = 0.0, | |
3908 | height = 0.0; | |
3909 | self->GetTextExtent(text, &width, &height, NULL, NULL); | |
3910 | // thread wrapers are turned off for this .i file, so no need to acquire GIL... | |
3911 | PyObject* rv = PyTuple_New(2); | |
3912 | PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width)); | |
3913 | PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height)); | |
3914 | return rv; | |
3915 | } | |
b39fe951 RD |
3916 | SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){ |
3917 | wxArrayDouble widths; | |
3918 | self->GetPartialTextExtents(text, widths); | |
3919 | return widths; | |
3920 | } | |
f8eb59b9 | 3921 | SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){ |
b39fe951 RD |
3922 | size_t c1, c2, count; |
3923 | wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1); | |
3924 | wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2); | |
3925 | ||
3926 | if ( beginP != NULL && endP != NULL ) | |
3927 | { | |
3928 | count = wxMin(c1, c2); | |
3929 | self->StrokeLines(count, beginP, endP); | |
3930 | } | |
3931 | delete [] beginP; | |
3932 | delete [] endP; | |
3933 | } | |
72ef6efb | 3934 | |
0a27f394 RD |
3935 | #include "wx/dcgraph.h" |
3936 | ||
3937 | ||
66493fc7 RD |
3938 | #include <wx/overlay.h> |
3939 | ||
3940 | ||
093d3ff1 | 3941 | |
0085ce49 | 3942 | SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ |
093d3ff1 RD |
3943 | self->AddColour(name, wxColour(red, green, blue)); |
3944 | } | |
3945 | ||
50efceee RD |
3946 | wxFontList* _wxPyInitTheFontList() { return wxTheFontList; } |
3947 | wxPenList* _wxPyInitThePenList() { return wxThePenList; } | |
3948 | wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; } | |
3949 | wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; } | |
3950 | ||
3951 | ||
093d3ff1 RD |
3952 | #include <wx/effects.h> |
3953 | ||
8d38bd1d RD |
3954 | |
3955 | #include "wx/renderer.h" | |
3956 | ||
3957 | ||
32fe5131 | 3958 | SWIGINTERNINLINE PyObject* |
0085ce49 | 3959 | SWIG_From_bool (bool value) |
8d38bd1d | 3960 | { |
0085ce49 | 3961 | return PyBool_FromLong(value ? 1 : 0); |
8d38bd1d RD |
3962 | } |
3963 | ||
27e45892 RD |
3964 | |
3965 | #include "wx/wxPython/pseudodc.h" | |
3966 | ||
3967 | SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){ | |
3968 | wxRect rect; | |
3969 | self->GetIdBounds(id, rect); | |
3970 | return rect; | |
3971 | } | |
093d3ff1 RD |
3972 | #ifdef __cplusplus |
3973 | extern "C" { | |
3974 | #endif | |
0085ce49 RD |
3975 | SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3976 | PyObject *resultobj = 0; | |
3977 | wxGDIObject *result = 0 ; | |
3978 | ||
3979 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail; | |
3980 | { | |
3981 | if (!wxPyCheckForApp()) SWIG_fail; | |
3982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3983 | result = (wxGDIObject *)new wxGDIObject(); | |
3984 | wxPyEndAllowThreads(__tstate); | |
3985 | if (PyErr_Occurred()) SWIG_fail; | |
3986 | } | |
3987 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 ); | |
3988 | return resultobj; | |
3989 | fail: | |
3990 | return NULL; | |
093d3ff1 RD |
3991 | } |
3992 | ||
3993 | ||
0085ce49 RD |
3994 | SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3995 | PyObject *resultobj = 0; | |
3996 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
3997 | void *argp1 = 0 ; | |
3998 | int res1 = 0 ; | |
3999 | PyObject *swig_obj[1] ; | |
4000 | ||
4001 | if (!args) SWIG_fail; | |
4002 | swig_obj[0] = args; | |
4003 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 ); | |
4004 | if (!SWIG_IsOK(res1)) { | |
4005 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
4006 | } | |
4007 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
4008 | { | |
4009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4010 | delete arg1; | |
093d3ff1 | 4011 | |
0085ce49 RD |
4012 | wxPyEndAllowThreads(__tstate); |
4013 | if (PyErr_Occurred()) SWIG_fail; | |
4014 | } | |
4015 | resultobj = SWIG_Py_Void(); | |
4016 | return resultobj; | |
4017 | fail: | |
4018 | return NULL; | |
d14a1e28 RD |
4019 | } |
4020 | ||
4021 | ||
0085ce49 RD |
4022 | SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4023 | PyObject *resultobj = 0; | |
4024 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
4025 | bool result; | |
4026 | void *argp1 = 0 ; | |
4027 | int res1 = 0 ; | |
4028 | PyObject *swig_obj[1] ; | |
4029 | ||
4030 | if (!args) SWIG_fail; | |
4031 | swig_obj[0] = args; | |
4032 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 ); | |
4033 | if (!SWIG_IsOK(res1)) { | |
4034 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
4035 | } | |
4036 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
4037 | { | |
4038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4039 | result = (bool)(arg1)->IsNull(); | |
4040 | wxPyEndAllowThreads(__tstate); | |
4041 | if (PyErr_Occurred()) SWIG_fail; | |
4042 | } | |
4043 | { | |
4044 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4045 | } | |
4046 | return resultobj; | |
4047 | fail: | |
4048 | return NULL; | |
4049 | } | |
4050 | ||
4051 | ||
4052 | SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4053 | PyObject *obj; | |
4054 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4055 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj)); | |
4056 | return SWIG_Py_Void(); | |
4057 | } | |
4058 | ||
4059 | SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4060 | return SWIG_Python_InitShadowInstance(args); | |
4061 | } | |
4062 | ||
4063 | SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4064 | PyObject *resultobj = 0; | |
4065 | byte arg1 = (byte) 0 ; | |
4066 | byte arg2 = (byte) 0 ; | |
4067 | byte arg3 = (byte) 0 ; | |
fc46b7f3 | 4068 | byte arg4 = (byte) wxALPHA_OPAQUE ; |
0085ce49 RD |
4069 | wxColour *result = 0 ; |
4070 | unsigned char val1 ; | |
4071 | int ecode1 = 0 ; | |
4072 | unsigned char val2 ; | |
4073 | int ecode2 = 0 ; | |
4074 | unsigned char val3 ; | |
4075 | int ecode3 = 0 ; | |
fc46b7f3 RD |
4076 | unsigned char val4 ; |
4077 | int ecode4 = 0 ; | |
0085ce49 RD |
4078 | PyObject * obj0 = 0 ; |
4079 | PyObject * obj1 = 0 ; | |
4080 | PyObject * obj2 = 0 ; | |
fc46b7f3 | 4081 | PyObject * obj3 = 0 ; |
0085ce49 | 4082 | char * kwnames[] = { |
fc46b7f3 | 4083 | (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL |
0085ce49 RD |
4084 | }; |
4085 | ||
fc46b7f3 | 4086 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
0085ce49 RD |
4087 | if (obj0) { |
4088 | ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1); | |
4089 | if (!SWIG_IsOK(ecode1)) { | |
4090 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'"); | |
4091 | } | |
4092 | arg1 = static_cast< byte >(val1); | |
4093 | } | |
4094 | if (obj1) { | |
4095 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4096 | if (!SWIG_IsOK(ecode2)) { | |
4097 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'"); | |
4098 | } | |
4099 | arg2 = static_cast< byte >(val2); | |
4100 | } | |
4101 | if (obj2) { | |
4102 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4103 | if (!SWIG_IsOK(ecode3)) { | |
4104 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'"); | |
4105 | } | |
4106 | arg3 = static_cast< byte >(val3); | |
4107 | } | |
fc46b7f3 RD |
4108 | if (obj3) { |
4109 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4110 | if (!SWIG_IsOK(ecode4)) { | |
4111 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'"); | |
4112 | } | |
4113 | arg4 = static_cast< byte >(val4); | |
4114 | } | |
0085ce49 RD |
4115 | { |
4116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 4117 | result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4); |
0085ce49 RD |
4118 | wxPyEndAllowThreads(__tstate); |
4119 | if (PyErr_Occurred()) SWIG_fail; | |
4120 | } | |
4121 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 ); | |
4122 | return resultobj; | |
4123 | fail: | |
4124 | return NULL; | |
d14a1e28 RD |
4125 | } |
4126 | ||
4127 | ||
0085ce49 RD |
4128 | SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4129 | PyObject *resultobj = 0; | |
4130 | wxString *arg1 = 0 ; | |
4131 | wxColour *result = 0 ; | |
4132 | bool temp1 = false ; | |
4133 | PyObject * obj0 = 0 ; | |
4134 | char * kwnames[] = { | |
4135 | (char *) "colorName", NULL | |
4136 | }; | |
4137 | ||
4138 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail; | |
4139 | { | |
4140 | arg1 = wxString_in_helper(obj0); | |
4141 | if (arg1 == NULL) SWIG_fail; | |
4142 | temp1 = true; | |
4143 | } | |
4144 | { | |
4145 | if (!wxPyCheckForApp()) SWIG_fail; | |
4146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4147 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
4148 | wxPyEndAllowThreads(__tstate); | |
4149 | if (PyErr_Occurred()) SWIG_fail; | |
4150 | } | |
4151 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
4152 | { | |
4153 | if (temp1) | |
4154 | delete arg1; | |
4155 | } | |
4156 | return resultobj; | |
4157 | fail: | |
4158 | { | |
4159 | if (temp1) | |
4160 | delete arg1; | |
4161 | } | |
4162 | return NULL; | |
d14a1e28 RD |
4163 | } |
4164 | ||
4165 | ||
0085ce49 RD |
4166 | SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4167 | PyObject *resultobj = 0; | |
4168 | unsigned long arg1 ; | |
4169 | wxColour *result = 0 ; | |
4170 | unsigned long val1 ; | |
4171 | int ecode1 = 0 ; | |
4172 | PyObject * obj0 = 0 ; | |
4173 | char * kwnames[] = { | |
4174 | (char *) "colRGB", NULL | |
4175 | }; | |
4176 | ||
4177 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail; | |
4178 | ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1); | |
4179 | if (!SWIG_IsOK(ecode1)) { | |
4180 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'"); | |
4181 | } | |
4182 | arg1 = static_cast< unsigned long >(val1); | |
4183 | { | |
4184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4185 | result = (wxColour *)new wxColour(arg1); | |
4186 | wxPyEndAllowThreads(__tstate); | |
4187 | if (PyErr_Occurred()) SWIG_fail; | |
4188 | } | |
4189 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
4190 | return resultobj; | |
4191 | fail: | |
4192 | return NULL; | |
d14a1e28 RD |
4193 | } |
4194 | ||
4195 | ||
0085ce49 RD |
4196 | SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4197 | PyObject *resultobj = 0; | |
4198 | wxColour *arg1 = (wxColour *) 0 ; | |
4199 | void *argp1 = 0 ; | |
4200 | int res1 = 0 ; | |
4201 | PyObject *swig_obj[1] ; | |
4202 | ||
4203 | if (!args) SWIG_fail; | |
4204 | swig_obj[0] = args; | |
4205 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 ); | |
4206 | if (!SWIG_IsOK(res1)) { | |
4207 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4208 | } | |
4209 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4210 | { | |
4211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4212 | delete arg1; | |
d14a1e28 | 4213 | |
0085ce49 RD |
4214 | wxPyEndAllowThreads(__tstate); |
4215 | if (PyErr_Occurred()) SWIG_fail; | |
4216 | } | |
4217 | resultobj = SWIG_Py_Void(); | |
4218 | return resultobj; | |
4219 | fail: | |
4220 | return NULL; | |
d14a1e28 RD |
4221 | } |
4222 | ||
4223 | ||
0085ce49 RD |
4224 | SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4225 | PyObject *resultobj = 0; | |
4226 | wxColour *arg1 = (wxColour *) 0 ; | |
4227 | byte result; | |
4228 | void *argp1 = 0 ; | |
4229 | int res1 = 0 ; | |
4230 | PyObject *swig_obj[1] ; | |
4231 | ||
4232 | if (!args) SWIG_fail; | |
4233 | swig_obj[0] = args; | |
4234 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4235 | if (!SWIG_IsOK(res1)) { | |
4236 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4237 | } | |
4238 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4239 | { | |
4240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4241 | result = (byte)(arg1)->Red(); | |
4242 | wxPyEndAllowThreads(__tstate); | |
4243 | if (PyErr_Occurred()) SWIG_fail; | |
4244 | } | |
4245 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4246 | return resultobj; | |
4247 | fail: | |
4248 | return NULL; | |
d14a1e28 RD |
4249 | } |
4250 | ||
4251 | ||
0085ce49 RD |
4252 | SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4253 | PyObject *resultobj = 0; | |
4254 | wxColour *arg1 = (wxColour *) 0 ; | |
4255 | byte result; | |
4256 | void *argp1 = 0 ; | |
4257 | int res1 = 0 ; | |
4258 | PyObject *swig_obj[1] ; | |
4259 | ||
4260 | if (!args) SWIG_fail; | |
4261 | swig_obj[0] = args; | |
4262 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4263 | if (!SWIG_IsOK(res1)) { | |
4264 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4265 | } | |
4266 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4267 | { | |
4268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4269 | result = (byte)(arg1)->Green(); | |
4270 | wxPyEndAllowThreads(__tstate); | |
4271 | if (PyErr_Occurred()) SWIG_fail; | |
4272 | } | |
4273 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4274 | return resultobj; | |
4275 | fail: | |
4276 | return NULL; | |
5cbf236d RD |
4277 | } |
4278 | ||
4279 | ||
0085ce49 RD |
4280 | SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4281 | PyObject *resultobj = 0; | |
4282 | wxColour *arg1 = (wxColour *) 0 ; | |
4283 | byte result; | |
4284 | void *argp1 = 0 ; | |
4285 | int res1 = 0 ; | |
4286 | PyObject *swig_obj[1] ; | |
4287 | ||
4288 | if (!args) SWIG_fail; | |
4289 | swig_obj[0] = args; | |
4290 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4291 | if (!SWIG_IsOK(res1)) { | |
4292 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4293 | } | |
4294 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4295 | { | |
4296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4297 | result = (byte)(arg1)->Blue(); | |
4298 | wxPyEndAllowThreads(__tstate); | |
4299 | if (PyErr_Occurred()) SWIG_fail; | |
4300 | } | |
4301 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4302 | return resultobj; | |
4303 | fail: | |
4304 | return NULL; | |
d14a1e28 RD |
4305 | } |
4306 | ||
4307 | ||
fc46b7f3 RD |
4308 | SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4309 | PyObject *resultobj = 0; | |
4310 | wxColour *arg1 = (wxColour *) 0 ; | |
4311 | byte result; | |
4312 | void *argp1 = 0 ; | |
4313 | int res1 = 0 ; | |
4314 | PyObject *swig_obj[1] ; | |
4315 | ||
4316 | if (!args) SWIG_fail; | |
4317 | swig_obj[0] = args; | |
4318 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4319 | if (!SWIG_IsOK(res1)) { | |
4320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4321 | } | |
4322 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4323 | { | |
4324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4325 | result = (byte)(arg1)->Alpha(); | |
4326 | wxPyEndAllowThreads(__tstate); | |
4327 | if (PyErr_Occurred()) SWIG_fail; | |
4328 | } | |
4329 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4330 | return resultobj; | |
4331 | fail: | |
4332 | return NULL; | |
4333 | } | |
4334 | ||
4335 | ||
b39fe951 | 4336 | SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
4337 | PyObject *resultobj = 0; |
4338 | wxColour *arg1 = (wxColour *) 0 ; | |
4339 | bool result; | |
4340 | void *argp1 = 0 ; | |
4341 | int res1 = 0 ; | |
4342 | PyObject *swig_obj[1] ; | |
4343 | ||
4344 | if (!args) SWIG_fail; | |
4345 | swig_obj[0] = args; | |
4346 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4347 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 4348 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'"); |
0085ce49 RD |
4349 | } |
4350 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4351 | { | |
4352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 4353 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
4354 | wxPyEndAllowThreads(__tstate); |
4355 | if (PyErr_Occurred()) SWIG_fail; | |
4356 | } | |
4357 | { | |
4358 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4359 | } | |
4360 | return resultobj; | |
4361 | fail: | |
4362 | return NULL; | |
4363 | } | |
4364 | ||
4365 | ||
4366 | SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4367 | PyObject *resultobj = 0; | |
4368 | wxColour *arg1 = (wxColour *) 0 ; | |
4369 | byte arg2 ; | |
4370 | byte arg3 ; | |
4371 | byte arg4 ; | |
fc46b7f3 | 4372 | byte arg5 = (byte) wxALPHA_OPAQUE ; |
0085ce49 RD |
4373 | void *argp1 = 0 ; |
4374 | int res1 = 0 ; | |
4375 | unsigned char val2 ; | |
4376 | int ecode2 = 0 ; | |
4377 | unsigned char val3 ; | |
4378 | int ecode3 = 0 ; | |
4379 | unsigned char val4 ; | |
4380 | int ecode4 = 0 ; | |
fc46b7f3 RD |
4381 | unsigned char val5 ; |
4382 | int ecode5 = 0 ; | |
0085ce49 RD |
4383 | PyObject * obj0 = 0 ; |
4384 | PyObject * obj1 = 0 ; | |
4385 | PyObject * obj2 = 0 ; | |
4386 | PyObject * obj3 = 0 ; | |
fc46b7f3 | 4387 | PyObject * obj4 = 0 ; |
0085ce49 | 4388 | char * kwnames[] = { |
fc46b7f3 | 4389 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL |
0085ce49 RD |
4390 | }; |
4391 | ||
fc46b7f3 | 4392 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
0085ce49 RD |
4393 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); |
4394 | if (!SWIG_IsOK(res1)) { | |
4395 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4396 | } | |
4397 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4398 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4399 | if (!SWIG_IsOK(ecode2)) { | |
4400 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'"); | |
4401 | } | |
4402 | arg2 = static_cast< byte >(val2); | |
4403 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4404 | if (!SWIG_IsOK(ecode3)) { | |
4405 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'"); | |
4406 | } | |
4407 | arg3 = static_cast< byte >(val3); | |
4408 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4409 | if (!SWIG_IsOK(ecode4)) { | |
4410 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'"); | |
4411 | } | |
4412 | arg4 = static_cast< byte >(val4); | |
fc46b7f3 RD |
4413 | if (obj4) { |
4414 | ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); | |
4415 | if (!SWIG_IsOK(ecode5)) { | |
4416 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'"); | |
4417 | } | |
4418 | arg5 = static_cast< byte >(val5); | |
4419 | } | |
0085ce49 RD |
4420 | { |
4421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 4422 | (arg1)->Set(arg2,arg3,arg4,arg5); |
0085ce49 RD |
4423 | wxPyEndAllowThreads(__tstate); |
4424 | if (PyErr_Occurred()) SWIG_fail; | |
4425 | } | |
4426 | resultobj = SWIG_Py_Void(); | |
4427 | return resultobj; | |
4428 | fail: | |
4429 | return NULL; | |
4430 | } | |
4431 | ||
4432 | ||
4433 | SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4434 | PyObject *resultobj = 0; | |
4435 | wxColour *arg1 = (wxColour *) 0 ; | |
4436 | unsigned long arg2 ; | |
4437 | void *argp1 = 0 ; | |
4438 | int res1 = 0 ; | |
4439 | unsigned long val2 ; | |
4440 | int ecode2 = 0 ; | |
4441 | PyObject * obj0 = 0 ; | |
4442 | PyObject * obj1 = 0 ; | |
4443 | char * kwnames[] = { | |
4444 | (char *) "self",(char *) "colRGB", NULL | |
4445 | }; | |
4446 | ||
4447 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
4448 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4449 | if (!SWIG_IsOK(res1)) { | |
4450 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4451 | } | |
4452 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4453 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
4454 | if (!SWIG_IsOK(ecode2)) { | |
4455 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'"); | |
4456 | } | |
4457 | arg2 = static_cast< unsigned long >(val2); | |
4458 | { | |
4459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4460 | (arg1)->Set(arg2); | |
4461 | wxPyEndAllowThreads(__tstate); | |
4462 | if (PyErr_Occurred()) SWIG_fail; | |
4463 | } | |
4464 | resultobj = SWIG_Py_Void(); | |
4465 | return resultobj; | |
4466 | fail: | |
4467 | return NULL; | |
4468 | } | |
4469 | ||
4470 | ||
4471 | SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4472 | PyObject *resultobj = 0; | |
4473 | wxColour *arg1 = (wxColour *) 0 ; | |
4474 | wxString *arg2 = 0 ; | |
4475 | void *argp1 = 0 ; | |
4476 | int res1 = 0 ; | |
4477 | bool temp2 = false ; | |
4478 | PyObject * obj0 = 0 ; | |
4479 | PyObject * obj1 = 0 ; | |
4480 | char * kwnames[] = { | |
4481 | (char *) "self",(char *) "colourName", NULL | |
4482 | }; | |
4483 | ||
4484 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail; | |
4485 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4486 | if (!SWIG_IsOK(res1)) { | |
4487 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4488 | } | |
4489 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4490 | { | |
4491 | arg2 = wxString_in_helper(obj1); | |
4492 | if (arg2 == NULL) SWIG_fail; | |
4493 | temp2 = true; | |
4494 | } | |
4495 | { | |
4496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
72ef6efb | 4497 | (arg1)->Set((wxString const &)*arg2); |
0085ce49 RD |
4498 | wxPyEndAllowThreads(__tstate); |
4499 | if (PyErr_Occurred()) SWIG_fail; | |
4500 | } | |
4501 | resultobj = SWIG_Py_Void(); | |
4502 | { | |
4503 | if (temp2) | |
4504 | delete arg2; | |
4505 | } | |
4506 | return resultobj; | |
4507 | fail: | |
4508 | { | |
4509 | if (temp2) | |
4510 | delete arg2; | |
4511 | } | |
4512 | return NULL; | |
d14a1e28 RD |
4513 | } |
4514 | ||
4515 | ||
01f6b6d3 RD |
4516 | SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4517 | PyObject *resultobj = 0; | |
4518 | wxColour *arg1 = (wxColour *) 0 ; | |
4519 | long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ; | |
4520 | wxString result; | |
4521 | void *argp1 = 0 ; | |
4522 | int res1 = 0 ; | |
4523 | long val2 ; | |
4524 | int ecode2 = 0 ; | |
4525 | PyObject * obj0 = 0 ; | |
4526 | PyObject * obj1 = 0 ; | |
4527 | char * kwnames[] = { | |
4528 | (char *) "self",(char *) "flags", NULL | |
4529 | }; | |
4530 | ||
4531 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail; | |
4532 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4533 | if (!SWIG_IsOK(res1)) { | |
4534 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
4535 | } | |
4536 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4537 | if (obj1) { | |
4538 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
4539 | if (!SWIG_IsOK(ecode2)) { | |
4540 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'"); | |
4541 | } | |
4542 | arg2 = static_cast< long >(val2); | |
4543 | } | |
4544 | { | |
4545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4546 | result = ((wxColour const *)arg1)->GetAsString(arg2); | |
4547 | wxPyEndAllowThreads(__tstate); | |
4548 | if (PyErr_Occurred()) SWIG_fail; | |
4549 | } | |
4550 | { | |
4551 | #if wxUSE_UNICODE | |
4552 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4553 | #else | |
4554 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4555 | #endif | |
4556 | } | |
4557 | return resultobj; | |
4558 | fail: | |
4559 | return NULL; | |
4560 | } | |
4561 | ||
4562 | ||
0085ce49 RD |
4563 | SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4564 | PyObject *resultobj = 0; | |
4565 | wxColour *arg1 = (wxColour *) 0 ; | |
4566 | long result; | |
4567 | void *argp1 = 0 ; | |
4568 | int res1 = 0 ; | |
4569 | PyObject *swig_obj[1] ; | |
4570 | ||
4571 | if (!args) SWIG_fail; | |
4572 | swig_obj[0] = args; | |
4573 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4574 | if (!SWIG_IsOK(res1)) { | |
4575 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
4576 | } | |
4577 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4578 | { | |
4579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4580 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
4581 | wxPyEndAllowThreads(__tstate); | |
4582 | if (PyErr_Occurred()) SWIG_fail; | |
4583 | } | |
4584 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4585 | return resultobj; | |
4586 | fail: | |
4587 | return NULL; | |
4588 | } | |
4589 | ||
4590 | ||
4591 | SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4592 | PyObject *resultobj = 0; | |
4593 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 4594 | PyObject *arg2 = (PyObject *) 0 ; |
0085ce49 RD |
4595 | bool result; |
4596 | void *argp1 = 0 ; | |
4597 | int res1 = 0 ; | |
0085ce49 RD |
4598 | PyObject * obj0 = 0 ; |
4599 | PyObject * obj1 = 0 ; | |
4600 | char * kwnames[] = { | |
e9d6f3a4 | 4601 | (char *) "self",(char *) "other", NULL |
0085ce49 RD |
4602 | }; |
4603 | ||
4604 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4605 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4606 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 4607 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'"); |
0085ce49 RD |
4608 | } |
4609 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 4610 | arg2 = obj1; |
0085ce49 | 4611 | { |
e9d6f3a4 | 4612 | result = (bool)wxColour___eq__(arg1,arg2); |
0085ce49 RD |
4613 | if (PyErr_Occurred()) SWIG_fail; |
4614 | } | |
4615 | { | |
4616 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4617 | } | |
4618 | return resultobj; | |
4619 | fail: | |
4620 | return NULL; | |
4621 | } | |
4622 | ||
4623 | ||
4624 | SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4625 | PyObject *resultobj = 0; | |
4626 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 4627 | PyObject *arg2 = (PyObject *) 0 ; |
0085ce49 RD |
4628 | bool result; |
4629 | void *argp1 = 0 ; | |
4630 | int res1 = 0 ; | |
0085ce49 RD |
4631 | PyObject * obj0 = 0 ; |
4632 | PyObject * obj1 = 0 ; | |
4633 | char * kwnames[] = { | |
e9d6f3a4 | 4634 | (char *) "self",(char *) "other", NULL |
0085ce49 RD |
4635 | }; |
4636 | ||
4637 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4638 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4639 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 4640 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'"); |
0085ce49 RD |
4641 | } |
4642 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 4643 | arg2 = obj1; |
0085ce49 | 4644 | { |
e9d6f3a4 | 4645 | result = (bool)wxColour___ne__(arg1,arg2); |
0085ce49 RD |
4646 | if (PyErr_Occurred()) SWIG_fail; |
4647 | } | |
4648 | { | |
4649 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4650 | } | |
4651 | return resultobj; | |
4652 | fail: | |
4653 | return NULL; | |
d14a1e28 RD |
4654 | } |
4655 | ||
4656 | ||
fc46b7f3 | 4657 | SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
4658 | PyObject *resultobj = 0; |
4659 | wxColour *arg1 = (wxColour *) 0 ; | |
fc46b7f3 | 4660 | bool arg2 = (bool) false ; |
0085ce49 RD |
4661 | PyObject *result = 0 ; |
4662 | void *argp1 = 0 ; | |
4663 | int res1 = 0 ; | |
fc46b7f3 RD |
4664 | bool val2 ; |
4665 | int ecode2 = 0 ; | |
4666 | PyObject * obj0 = 0 ; | |
4667 | PyObject * obj1 = 0 ; | |
4668 | char * kwnames[] = { | |
4669 | (char *) "self",(char *) "includeAlpha", NULL | |
4670 | }; | |
0085ce49 | 4671 | |
fc46b7f3 RD |
4672 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail; |
4673 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
0085ce49 RD |
4674 | if (!SWIG_IsOK(res1)) { |
4675 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4676 | } | |
4677 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
fc46b7f3 RD |
4678 | if (obj1) { |
4679 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4680 | if (!SWIG_IsOK(ecode2)) { | |
4681 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'"); | |
4682 | } | |
4683 | arg2 = static_cast< bool >(val2); | |
4684 | } | |
0085ce49 | 4685 | { |
fc46b7f3 | 4686 | result = (PyObject *)wxColour_Get(arg1,arg2); |
0085ce49 RD |
4687 | if (PyErr_Occurred()) SWIG_fail; |
4688 | } | |
4689 | resultobj = result; | |
4690 | return resultobj; | |
4691 | fail: | |
4692 | return NULL; | |
d14a1e28 RD |
4693 | } |
4694 | ||
4695 | ||
0085ce49 RD |
4696 | SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4697 | PyObject *resultobj = 0; | |
4698 | wxColour *arg1 = (wxColour *) 0 ; | |
4699 | unsigned long result; | |
4700 | void *argp1 = 0 ; | |
4701 | int res1 = 0 ; | |
4702 | PyObject *swig_obj[1] ; | |
4703 | ||
4704 | if (!args) SWIG_fail; | |
4705 | swig_obj[0] = args; | |
4706 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4707 | if (!SWIG_IsOK(res1)) { | |
4708 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4709 | } | |
4710 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4711 | { | |
0085ce49 | 4712 | result = (unsigned long)wxColour_GetRGB(arg1); |
0085ce49 RD |
4713 | if (PyErr_Occurred()) SWIG_fail; |
4714 | } | |
4715 | resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); | |
4716 | return resultobj; | |
4717 | fail: | |
4718 | return NULL; | |
4719 | } | |
4720 | ||
4721 | ||
4722 | SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4723 | PyObject *obj; | |
4724 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4725 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj)); | |
4726 | return SWIG_Py_Void(); | |
4727 | } | |
4728 | ||
4729 | SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4730 | return SWIG_Python_InitShadowInstance(args); | |
4731 | } | |
4732 | ||
4733 | SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4734 | PyObject *resultobj = 0; | |
4735 | int arg1 ; | |
4736 | unsigned char *arg2 = (unsigned char *) 0 ; | |
4737 | unsigned char *arg3 = (unsigned char *) 0 ; | |
4738 | unsigned char *arg4 = (unsigned char *) 0 ; | |
4739 | wxPalette *result = 0 ; | |
4740 | int val1 ; | |
4741 | int ecode1 = 0 ; | |
4742 | void *argp2 = 0 ; | |
4743 | int res2 = 0 ; | |
4744 | void *argp3 = 0 ; | |
4745 | int res3 = 0 ; | |
4746 | void *argp4 = 0 ; | |
4747 | int res4 = 0 ; | |
4748 | PyObject * obj0 = 0 ; | |
4749 | PyObject * obj1 = 0 ; | |
4750 | PyObject * obj2 = 0 ; | |
4751 | PyObject * obj3 = 0 ; | |
4752 | char * kwnames[] = { | |
4753 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
4754 | }; | |
4755 | ||
4756 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4757 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
4758 | if (!SWIG_IsOK(ecode1)) { | |
4759 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'"); | |
4760 | } | |
4761 | arg1 = static_cast< int >(val1); | |
4762 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4763 | if (!SWIG_IsOK(res2)) { | |
4764 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'"); | |
4765 | } | |
4766 | arg2 = reinterpret_cast< unsigned char * >(argp2); | |
4767 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4768 | if (!SWIG_IsOK(res3)) { | |
4769 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'"); | |
4770 | } | |
4771 | arg3 = reinterpret_cast< unsigned char * >(argp3); | |
4772 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4773 | if (!SWIG_IsOK(res4)) { | |
4774 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'"); | |
4775 | } | |
4776 | arg4 = reinterpret_cast< unsigned char * >(argp4); | |
4777 | { | |
4778 | if (!wxPyCheckForApp()) SWIG_fail; | |
4779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4780 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
4781 | wxPyEndAllowThreads(__tstate); | |
4782 | if (PyErr_Occurred()) SWIG_fail; | |
4783 | } | |
4784 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 ); | |
4785 | return resultobj; | |
4786 | fail: | |
4787 | return NULL; | |
d14a1e28 RD |
4788 | } |
4789 | ||
4790 | ||
0085ce49 RD |
4791 | SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4792 | PyObject *resultobj = 0; | |
4793 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4794 | void *argp1 = 0 ; | |
4795 | int res1 = 0 ; | |
4796 | PyObject *swig_obj[1] ; | |
4797 | ||
4798 | if (!args) SWIG_fail; | |
4799 | swig_obj[0] = args; | |
4800 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 ); | |
4801 | if (!SWIG_IsOK(res1)) { | |
4802 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4803 | } | |
4804 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4805 | { | |
4806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4807 | delete arg1; | |
d14a1e28 | 4808 | |
0085ce49 RD |
4809 | wxPyEndAllowThreads(__tstate); |
4810 | if (PyErr_Occurred()) SWIG_fail; | |
4811 | } | |
4812 | resultobj = SWIG_Py_Void(); | |
4813 | return resultobj; | |
4814 | fail: | |
4815 | return NULL; | |
4816 | } | |
4817 | ||
4818 | ||
4819 | SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4820 | PyObject *resultobj = 0; | |
4821 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4822 | byte arg2 ; | |
4823 | byte arg3 ; | |
4824 | byte arg4 ; | |
4825 | int result; | |
4826 | void *argp1 = 0 ; | |
4827 | int res1 = 0 ; | |
4828 | unsigned char val2 ; | |
4829 | int ecode2 = 0 ; | |
4830 | unsigned char val3 ; | |
4831 | int ecode3 = 0 ; | |
4832 | unsigned char val4 ; | |
4833 | int ecode4 = 0 ; | |
4834 | PyObject * obj0 = 0 ; | |
4835 | PyObject * obj1 = 0 ; | |
4836 | PyObject * obj2 = 0 ; | |
4837 | PyObject * obj3 = 0 ; | |
4838 | char * kwnames[] = { | |
4839 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
4840 | }; | |
4841 | ||
4842 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4843 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4844 | if (!SWIG_IsOK(res1)) { | |
4845 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4846 | } | |
4847 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4848 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4849 | if (!SWIG_IsOK(ecode2)) { | |
4850 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'"); | |
4851 | } | |
4852 | arg2 = static_cast< byte >(val2); | |
4853 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4854 | if (!SWIG_IsOK(ecode3)) { | |
4855 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'"); | |
4856 | } | |
4857 | arg3 = static_cast< byte >(val3); | |
4858 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4859 | if (!SWIG_IsOK(ecode4)) { | |
4860 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'"); | |
4861 | } | |
4862 | arg4 = static_cast< byte >(val4); | |
4863 | { | |
4864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4865 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
4866 | wxPyEndAllowThreads(__tstate); | |
4867 | if (PyErr_Occurred()) SWIG_fail; | |
4868 | } | |
4869 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4870 | return resultobj; | |
4871 | fail: | |
4872 | return NULL; | |
4873 | } | |
4874 | ||
4875 | ||
4876 | SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4877 | PyObject *resultobj = 0; | |
4878 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4879 | int arg2 ; | |
4880 | byte *arg3 = (byte *) 0 ; | |
4881 | byte *arg4 = (byte *) 0 ; | |
4882 | byte *arg5 = (byte *) 0 ; | |
4883 | bool result; | |
4884 | void *argp1 = 0 ; | |
4885 | int res1 = 0 ; | |
4886 | int val2 ; | |
4887 | int ecode2 = 0 ; | |
4888 | byte temp3 ; | |
4889 | int res3 = SWIG_TMPOBJ ; | |
4890 | byte temp4 ; | |
4891 | int res4 = SWIG_TMPOBJ ; | |
4892 | byte temp5 ; | |
4893 | int res5 = SWIG_TMPOBJ ; | |
4894 | PyObject * obj0 = 0 ; | |
4895 | PyObject * obj1 = 0 ; | |
4896 | char * kwnames[] = { | |
4897 | (char *) "self",(char *) "pixel", NULL | |
4898 | }; | |
4899 | ||
4900 | arg3 = &temp3; | |
4901 | arg4 = &temp4; | |
4902 | arg5 = &temp5; | |
4903 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
4904 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4905 | if (!SWIG_IsOK(res1)) { | |
4906 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4907 | } | |
4908 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4909 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4910 | if (!SWIG_IsOK(ecode2)) { | |
4911 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'"); | |
4912 | } | |
4913 | arg2 = static_cast< int >(val2); | |
4914 | { | |
4915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4916 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
4917 | wxPyEndAllowThreads(__tstate); | |
4918 | if (PyErr_Occurred()) SWIG_fail; | |
4919 | } | |
4920 | { | |
4921 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4922 | } | |
4923 | if (SWIG_IsTmpObj(res3)) { | |
4924 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3))); | |
4925 | } else { | |
4926 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4927 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags)); | |
4928 | } | |
4929 | if (SWIG_IsTmpObj(res4)) { | |
4930 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4))); | |
4931 | } else { | |
4932 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4933 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); | |
4934 | } | |
4935 | if (SWIG_IsTmpObj(res5)) { | |
4936 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5))); | |
4937 | } else { | |
4938 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4939 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags)); | |
4940 | } | |
4941 | return resultobj; | |
4942 | fail: | |
4943 | return NULL; | |
d14a1e28 RD |
4944 | } |
4945 | ||
4946 | ||
0085ce49 RD |
4947 | SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4948 | PyObject *resultobj = 0; | |
4949 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4950 | int result; | |
4951 | void *argp1 = 0 ; | |
4952 | int res1 = 0 ; | |
4953 | PyObject *swig_obj[1] ; | |
4954 | ||
4955 | if (!args) SWIG_fail; | |
4956 | swig_obj[0] = args; | |
4957 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4958 | if (!SWIG_IsOK(res1)) { | |
4959 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'"); | |
4960 | } | |
4961 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4962 | { | |
4963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4964 | result = (int)((wxPalette const *)arg1)->GetColoursCount(); | |
4965 | wxPyEndAllowThreads(__tstate); | |
4966 | if (PyErr_Occurred()) SWIG_fail; | |
4967 | } | |
4968 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4969 | return resultobj; | |
4970 | fail: | |
4971 | return NULL; | |
d14a1e28 RD |
4972 | } |
4973 | ||
4974 | ||
b39fe951 | 4975 | SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
4976 | PyObject *resultobj = 0; |
4977 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4978 | bool result; | |
4979 | void *argp1 = 0 ; | |
4980 | int res1 = 0 ; | |
4981 | PyObject *swig_obj[1] ; | |
4982 | ||
4983 | if (!args) SWIG_fail; | |
4984 | swig_obj[0] = args; | |
4985 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4986 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 4987 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'"); |
0085ce49 RD |
4988 | } |
4989 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4990 | { | |
4991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 4992 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
4993 | wxPyEndAllowThreads(__tstate); |
4994 | if (PyErr_Occurred()) SWIG_fail; | |
4995 | } | |
4996 | { | |
4997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4998 | } | |
4999 | return resultobj; | |
5000 | fail: | |
5001 | return NULL; | |
5002 | } | |
5003 | ||
5004 | ||
5005 | SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5006 | PyObject *obj; | |
5007 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5008 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj)); | |
5009 | return SWIG_Py_Void(); | |
5010 | } | |
5011 | ||
5012 | SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5013 | return SWIG_Python_InitShadowInstance(args); | |
5014 | } | |
5015 | ||
5016 | SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5017 | PyObject *resultobj = 0; | |
5018 | wxColour *arg1 = 0 ; | |
5019 | int arg2 = (int) 1 ; | |
5020 | int arg3 = (int) wxSOLID ; | |
5021 | wxPen *result = 0 ; | |
5022 | wxColour temp1 ; | |
5023 | int val2 ; | |
5024 | int ecode2 = 0 ; | |
5025 | int val3 ; | |
5026 | int ecode3 = 0 ; | |
5027 | PyObject * obj0 = 0 ; | |
5028 | PyObject * obj1 = 0 ; | |
5029 | PyObject * obj2 = 0 ; | |
5030 | char * kwnames[] = { | |
5031 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
5032 | }; | |
5033 | ||
5034 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5035 | { | |
5036 | arg1 = &temp1; | |
5037 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
5038 | } | |
5039 | if (obj1) { | |
5040 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5041 | if (!SWIG_IsOK(ecode2)) { | |
5042 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'"); | |
5043 | } | |
5044 | arg2 = static_cast< int >(val2); | |
5045 | } | |
5046 | if (obj2) { | |
5047 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5048 | if (!SWIG_IsOK(ecode3)) { | |
5049 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'"); | |
5050 | } | |
5051 | arg3 = static_cast< int >(val3); | |
5052 | } | |
5053 | { | |
5054 | if (!wxPyCheckForApp()) SWIG_fail; | |
5055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5056 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
5057 | wxPyEndAllowThreads(__tstate); | |
5058 | if (PyErr_Occurred()) SWIG_fail; | |
5059 | } | |
5060 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 ); | |
5061 | return resultobj; | |
5062 | fail: | |
5063 | return NULL; | |
d14a1e28 RD |
5064 | } |
5065 | ||
5066 | ||
0085ce49 RD |
5067 | SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5068 | PyObject *resultobj = 0; | |
5069 | wxPen *arg1 = (wxPen *) 0 ; | |
5070 | void *argp1 = 0 ; | |
5071 | int res1 = 0 ; | |
5072 | PyObject *swig_obj[1] ; | |
5073 | ||
5074 | if (!args) SWIG_fail; | |
5075 | swig_obj[0] = args; | |
5076 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 ); | |
5077 | if (!SWIG_IsOK(res1)) { | |
5078 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5079 | } | |
5080 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5081 | { | |
5082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5083 | delete arg1; | |
d14a1e28 | 5084 | |
0085ce49 RD |
5085 | wxPyEndAllowThreads(__tstate); |
5086 | if (PyErr_Occurred()) SWIG_fail; | |
5087 | } | |
5088 | resultobj = SWIG_Py_Void(); | |
5089 | return resultobj; | |
5090 | fail: | |
5091 | return NULL; | |
d14a1e28 RD |
5092 | } |
5093 | ||
5094 | ||
0085ce49 RD |
5095 | SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5096 | PyObject *resultobj = 0; | |
5097 | wxPen *arg1 = (wxPen *) 0 ; | |
5098 | int result; | |
5099 | void *argp1 = 0 ; | |
5100 | int res1 = 0 ; | |
5101 | PyObject *swig_obj[1] ; | |
5102 | ||
5103 | if (!args) SWIG_fail; | |
5104 | swig_obj[0] = args; | |
5105 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5106 | if (!SWIG_IsOK(res1)) { | |
5107 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5108 | } | |
5109 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5110 | { | |
5111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5112 | result = (int)(arg1)->GetCap(); | |
5113 | wxPyEndAllowThreads(__tstate); | |
5114 | if (PyErr_Occurred()) SWIG_fail; | |
5115 | } | |
5116 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5117 | return resultobj; | |
5118 | fail: | |
5119 | return NULL; | |
d14a1e28 RD |
5120 | } |
5121 | ||
5122 | ||
0085ce49 RD |
5123 | SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5124 | PyObject *resultobj = 0; | |
5125 | wxPen *arg1 = (wxPen *) 0 ; | |
5126 | wxColour result; | |
5127 | void *argp1 = 0 ; | |
5128 | int res1 = 0 ; | |
5129 | PyObject *swig_obj[1] ; | |
5130 | ||
5131 | if (!args) SWIG_fail; | |
5132 | swig_obj[0] = args; | |
5133 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5134 | if (!SWIG_IsOK(res1)) { | |
5135 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5136 | } | |
5137 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5138 | { | |
5139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5140 | result = (arg1)->GetColour(); | |
5141 | wxPyEndAllowThreads(__tstate); | |
5142 | if (PyErr_Occurred()) SWIG_fail; | |
5143 | } | |
5144 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
5145 | return resultobj; | |
5146 | fail: | |
5147 | return NULL; | |
d14a1e28 RD |
5148 | } |
5149 | ||
5150 | ||
0085ce49 RD |
5151 | SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5152 | PyObject *resultobj = 0; | |
5153 | wxPen *arg1 = (wxPen *) 0 ; | |
5154 | int result; | |
5155 | void *argp1 = 0 ; | |
5156 | int res1 = 0 ; | |
5157 | PyObject *swig_obj[1] ; | |
5158 | ||
5159 | if (!args) SWIG_fail; | |
5160 | swig_obj[0] = args; | |
5161 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5162 | if (!SWIG_IsOK(res1)) { | |
5163 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5164 | } | |
5165 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5166 | { | |
5167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5168 | result = (int)(arg1)->GetJoin(); | |
5169 | wxPyEndAllowThreads(__tstate); | |
5170 | if (PyErr_Occurred()) SWIG_fail; | |
5171 | } | |
5172 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5173 | return resultobj; | |
5174 | fail: | |
5175 | return NULL; | |
d14a1e28 RD |
5176 | } |
5177 | ||
5178 | ||
0085ce49 RD |
5179 | SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5180 | PyObject *resultobj = 0; | |
5181 | wxPen *arg1 = (wxPen *) 0 ; | |
5182 | int result; | |
5183 | void *argp1 = 0 ; | |
5184 | int res1 = 0 ; | |
5185 | PyObject *swig_obj[1] ; | |
5186 | ||
5187 | if (!args) SWIG_fail; | |
5188 | swig_obj[0] = args; | |
5189 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5190 | if (!SWIG_IsOK(res1)) { | |
5191 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5192 | } | |
5193 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5194 | { | |
5195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5196 | result = (int)(arg1)->GetStyle(); | |
5197 | wxPyEndAllowThreads(__tstate); | |
5198 | if (PyErr_Occurred()) SWIG_fail; | |
5199 | } | |
5200 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5201 | return resultobj; | |
5202 | fail: | |
5203 | return NULL; | |
3adfb63b RD |
5204 | } |
5205 | ||
5206 | ||
0085ce49 RD |
5207 | SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5208 | PyObject *resultobj = 0; | |
5209 | wxPen *arg1 = (wxPen *) 0 ; | |
5210 | int result; | |
5211 | void *argp1 = 0 ; | |
5212 | int res1 = 0 ; | |
5213 | PyObject *swig_obj[1] ; | |
5214 | ||
5215 | if (!args) SWIG_fail; | |
5216 | swig_obj[0] = args; | |
5217 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5218 | if (!SWIG_IsOK(res1)) { | |
5219 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5220 | } | |
5221 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5222 | { | |
5223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5224 | result = (int)(arg1)->GetWidth(); | |
5225 | wxPyEndAllowThreads(__tstate); | |
5226 | if (PyErr_Occurred()) SWIG_fail; | |
5227 | } | |
5228 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5229 | return resultobj; | |
5230 | fail: | |
5231 | return NULL; | |
d14a1e28 RD |
5232 | } |
5233 | ||
5234 | ||
b39fe951 | 5235 | SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
5236 | PyObject *resultobj = 0; |
5237 | wxPen *arg1 = (wxPen *) 0 ; | |
5238 | bool result; | |
5239 | void *argp1 = 0 ; | |
5240 | int res1 = 0 ; | |
5241 | PyObject *swig_obj[1] ; | |
5242 | ||
5243 | if (!args) SWIG_fail; | |
5244 | swig_obj[0] = args; | |
5245 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5246 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 5247 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'"); |
0085ce49 RD |
5248 | } |
5249 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5250 | { | |
5251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 5252 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
5253 | wxPyEndAllowThreads(__tstate); |
5254 | if (PyErr_Occurred()) SWIG_fail; | |
5255 | } | |
5256 | { | |
5257 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5258 | } | |
5259 | return resultobj; | |
5260 | fail: | |
5261 | return NULL; | |
5262 | } | |
5263 | ||
5264 | ||
5265 | SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5266 | PyObject *resultobj = 0; | |
5267 | wxPen *arg1 = (wxPen *) 0 ; | |
5268 | int arg2 ; | |
5269 | void *argp1 = 0 ; | |
5270 | int res1 = 0 ; | |
5271 | int val2 ; | |
5272 | int ecode2 = 0 ; | |
5273 | PyObject * obj0 = 0 ; | |
5274 | PyObject * obj1 = 0 ; | |
5275 | char * kwnames[] = { | |
5276 | (char *) "self",(char *) "cap_style", NULL | |
5277 | }; | |
5278 | ||
5279 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail; | |
5280 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5281 | if (!SWIG_IsOK(res1)) { | |
5282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5283 | } | |
5284 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5285 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5286 | if (!SWIG_IsOK(ecode2)) { | |
5287 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'"); | |
5288 | } | |
5289 | arg2 = static_cast< int >(val2); | |
5290 | { | |
5291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5292 | (arg1)->SetCap(arg2); | |
5293 | wxPyEndAllowThreads(__tstate); | |
5294 | if (PyErr_Occurred()) SWIG_fail; | |
5295 | } | |
5296 | resultobj = SWIG_Py_Void(); | |
5297 | return resultobj; | |
5298 | fail: | |
5299 | return NULL; | |
5300 | } | |
5301 | ||
5302 | ||
5303 | SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5304 | PyObject *resultobj = 0; | |
5305 | wxPen *arg1 = (wxPen *) 0 ; | |
5306 | wxColour *arg2 = 0 ; | |
5307 | void *argp1 = 0 ; | |
5308 | int res1 = 0 ; | |
5309 | wxColour temp2 ; | |
5310 | PyObject * obj0 = 0 ; | |
5311 | PyObject * obj1 = 0 ; | |
5312 | char * kwnames[] = { | |
5313 | (char *) "self",(char *) "colour", NULL | |
5314 | }; | |
5315 | ||
5316 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5317 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5318 | if (!SWIG_IsOK(res1)) { | |
5319 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5320 | } | |
5321 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5322 | { | |
5323 | arg2 = &temp2; | |
5324 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5325 | } | |
5326 | { | |
5327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5328 | (arg1)->SetColour(*arg2); | |
5329 | wxPyEndAllowThreads(__tstate); | |
5330 | if (PyErr_Occurred()) SWIG_fail; | |
5331 | } | |
5332 | resultobj = SWIG_Py_Void(); | |
5333 | return resultobj; | |
5334 | fail: | |
5335 | return NULL; | |
5336 | } | |
5337 | ||
5338 | ||
5339 | SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5340 | PyObject *resultobj = 0; | |
5341 | wxPen *arg1 = (wxPen *) 0 ; | |
5342 | int arg2 ; | |
5343 | void *argp1 = 0 ; | |
5344 | int res1 = 0 ; | |
5345 | int val2 ; | |
5346 | int ecode2 = 0 ; | |
5347 | PyObject * obj0 = 0 ; | |
5348 | PyObject * obj1 = 0 ; | |
5349 | char * kwnames[] = { | |
5350 | (char *) "self",(char *) "join_style", NULL | |
5351 | }; | |
5352 | ||
5353 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail; | |
5354 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5355 | if (!SWIG_IsOK(res1)) { | |
5356 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5357 | } | |
5358 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5359 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5360 | if (!SWIG_IsOK(ecode2)) { | |
5361 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'"); | |
5362 | } | |
5363 | arg2 = static_cast< int >(val2); | |
5364 | { | |
5365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5366 | (arg1)->SetJoin(arg2); | |
5367 | wxPyEndAllowThreads(__tstate); | |
5368 | if (PyErr_Occurred()) SWIG_fail; | |
5369 | } | |
5370 | resultobj = SWIG_Py_Void(); | |
5371 | return resultobj; | |
5372 | fail: | |
5373 | return NULL; | |
5374 | } | |
5375 | ||
5376 | ||
5377 | SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5378 | PyObject *resultobj = 0; | |
5379 | wxPen *arg1 = (wxPen *) 0 ; | |
5380 | int arg2 ; | |
5381 | void *argp1 = 0 ; | |
5382 | int res1 = 0 ; | |
5383 | int val2 ; | |
5384 | int ecode2 = 0 ; | |
5385 | PyObject * obj0 = 0 ; | |
5386 | PyObject * obj1 = 0 ; | |
5387 | char * kwnames[] = { | |
5388 | (char *) "self",(char *) "style", NULL | |
5389 | }; | |
5390 | ||
5391 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5392 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5393 | if (!SWIG_IsOK(res1)) { | |
5394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5395 | } | |
5396 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5397 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5398 | if (!SWIG_IsOK(ecode2)) { | |
5399 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
5400 | } | |
5401 | arg2 = static_cast< int >(val2); | |
5402 | { | |
5403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5404 | (arg1)->SetStyle(arg2); | |
5405 | wxPyEndAllowThreads(__tstate); | |
5406 | if (PyErr_Occurred()) SWIG_fail; | |
5407 | } | |
5408 | resultobj = SWIG_Py_Void(); | |
5409 | return resultobj; | |
5410 | fail: | |
5411 | return NULL; | |
5412 | } | |
5413 | ||
5414 | ||
5415 | SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5416 | PyObject *resultobj = 0; | |
5417 | wxPen *arg1 = (wxPen *) 0 ; | |
5418 | int arg2 ; | |
5419 | void *argp1 = 0 ; | |
5420 | int res1 = 0 ; | |
5421 | int val2 ; | |
5422 | int ecode2 = 0 ; | |
5423 | PyObject * obj0 = 0 ; | |
5424 | PyObject * obj1 = 0 ; | |
5425 | char * kwnames[] = { | |
5426 | (char *) "self",(char *) "width", NULL | |
5427 | }; | |
5428 | ||
5429 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
5430 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5431 | if (!SWIG_IsOK(res1)) { | |
5432 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5433 | } | |
5434 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5435 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5436 | if (!SWIG_IsOK(ecode2)) { | |
5437 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
5438 | } | |
5439 | arg2 = static_cast< int >(val2); | |
5440 | { | |
5441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5442 | (arg1)->SetWidth(arg2); | |
5443 | wxPyEndAllowThreads(__tstate); | |
5444 | if (PyErr_Occurred()) SWIG_fail; | |
5445 | } | |
5446 | resultobj = SWIG_Py_Void(); | |
5447 | return resultobj; | |
5448 | fail: | |
5449 | return NULL; | |
5450 | } | |
5451 | ||
5452 | ||
5453 | SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5454 | PyObject *resultobj = 0; | |
5455 | wxPen *arg1 = (wxPen *) 0 ; | |
5456 | int arg2 ; | |
5457 | wxDash *arg3 = (wxDash *) 0 ; | |
5458 | void *argp1 = 0 ; | |
5459 | int res1 = 0 ; | |
5460 | PyObject * obj0 = 0 ; | |
5461 | PyObject * obj1 = 0 ; | |
5462 | char * kwnames[] = { | |
5463 | (char *) "self",(char *) "dashes", NULL | |
5464 | }; | |
5465 | ||
5466 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail; | |
5467 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5468 | if (!SWIG_IsOK(res1)) { | |
5469 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5470 | } | |
5471 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5472 | { | |
5473 | arg2 = PyList_Size(obj1); | |
5474 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
5475 | if (arg3 == NULL) SWIG_fail; | |
5476 | } | |
5477 | { | |
5478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5479 | (arg1)->SetDashes(arg2,arg3); | |
5480 | wxPyEndAllowThreads(__tstate); | |
5481 | if (PyErr_Occurred()) SWIG_fail; | |
5482 | } | |
5483 | resultobj = SWIG_Py_Void(); | |
5484 | { | |
5485 | if (arg3) delete [] arg3; | |
5486 | } | |
5487 | return resultobj; | |
5488 | fail: | |
5489 | { | |
5490 | if (arg3) delete [] arg3; | |
5491 | } | |
5492 | return NULL; | |
d14a1e28 RD |
5493 | } |
5494 | ||
5495 | ||
0085ce49 RD |
5496 | SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5497 | PyObject *resultobj = 0; | |
5498 | wxPen *arg1 = (wxPen *) 0 ; | |
5499 | PyObject *result = 0 ; | |
5500 | void *argp1 = 0 ; | |
5501 | int res1 = 0 ; | |
5502 | PyObject *swig_obj[1] ; | |
5503 | ||
5504 | if (!args) SWIG_fail; | |
5505 | swig_obj[0] = args; | |
5506 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5507 | if (!SWIG_IsOK(res1)) { | |
5508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5509 | } | |
5510 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5511 | { | |
5512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5513 | result = (PyObject *)wxPen_GetDashes(arg1); | |
5514 | wxPyEndAllowThreads(__tstate); | |
5515 | if (PyErr_Occurred()) SWIG_fail; | |
5516 | } | |
5517 | resultobj = result; | |
5518 | return resultobj; | |
5519 | fail: | |
5520 | return NULL; | |
5521 | } | |
5522 | ||
5523 | ||
5524 | SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5525 | PyObject *resultobj = 0; | |
5526 | wxPen *arg1 = (wxPen *) 0 ; | |
5527 | PyObject *arg2 = (PyObject *) 0 ; | |
5528 | PyObject *arg3 = (PyObject *) 0 ; | |
5529 | void *argp1 = 0 ; | |
5530 | int res1 = 0 ; | |
5531 | PyObject * obj0 = 0 ; | |
5532 | PyObject * obj1 = 0 ; | |
5533 | PyObject * obj2 = 0 ; | |
5534 | char * kwnames[] = { | |
5535 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL | |
5536 | }; | |
5537 | ||
5538 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5539 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5540 | if (!SWIG_IsOK(res1)) { | |
5541 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5542 | } | |
5543 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5544 | arg2 = obj1; | |
5545 | arg3 = obj2; | |
5546 | { | |
5547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5548 | wxPen__SetDashes(arg1,arg2,arg3); | |
5549 | wxPyEndAllowThreads(__tstate); | |
5550 | if (PyErr_Occurred()) SWIG_fail; | |
5551 | } | |
5552 | resultobj = SWIG_Py_Void(); | |
5553 | return resultobj; | |
5554 | fail: | |
5555 | return NULL; | |
d14a1e28 RD |
5556 | } |
5557 | ||
5558 | ||
0085ce49 RD |
5559 | SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5560 | PyObject *resultobj = 0; | |
5561 | wxPen *arg1 = (wxPen *) 0 ; | |
5562 | int result; | |
5563 | void *argp1 = 0 ; | |
5564 | int res1 = 0 ; | |
5565 | PyObject *swig_obj[1] ; | |
5566 | ||
5567 | if (!args) SWIG_fail; | |
5568 | swig_obj[0] = args; | |
5569 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5570 | if (!SWIG_IsOK(res1)) { | |
5571 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'"); | |
5572 | } | |
5573 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5574 | { | |
5575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5576 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
5577 | wxPyEndAllowThreads(__tstate); | |
5578 | if (PyErr_Occurred()) SWIG_fail; | |
5579 | } | |
5580 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5581 | return resultobj; | |
5582 | fail: | |
5583 | return NULL; | |
5584 | } | |
5585 | ||
5586 | ||
5587 | SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5588 | PyObject *resultobj = 0; | |
5589 | wxPen *arg1 = (wxPen *) 0 ; | |
5590 | wxPen *arg2 = (wxPen *) 0 ; | |
5591 | bool result; | |
5592 | void *argp1 = 0 ; | |
5593 | int res1 = 0 ; | |
5594 | void *argp2 = 0 ; | |
5595 | int res2 = 0 ; | |
5596 | PyObject * obj0 = 0 ; | |
5597 | PyObject * obj1 = 0 ; | |
5598 | char * kwnames[] = { | |
5599 | (char *) "self",(char *) "other", NULL | |
5600 | }; | |
5601 | ||
5602 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
5603 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5604 | if (!SWIG_IsOK(res1)) { | |
5605 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5606 | } | |
5607 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5608 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5609 | if (!SWIG_IsOK(res2)) { | |
5610 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
5611 | } | |
5612 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
5613 | { | |
5614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5615 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); | |
5616 | wxPyEndAllowThreads(__tstate); | |
5617 | if (PyErr_Occurred()) SWIG_fail; | |
5618 | } | |
5619 | { | |
5620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5621 | } | |
5622 | return resultobj; | |
5623 | fail: | |
5624 | return NULL; | |
5625 | } | |
5626 | ||
5627 | ||
5628 | SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5629 | PyObject *resultobj = 0; | |
5630 | wxPen *arg1 = (wxPen *) 0 ; | |
5631 | wxPen *arg2 = (wxPen *) 0 ; | |
5632 | bool result; | |
5633 | void *argp1 = 0 ; | |
5634 | int res1 = 0 ; | |
5635 | void *argp2 = 0 ; | |
5636 | int res2 = 0 ; | |
5637 | PyObject * obj0 = 0 ; | |
5638 | PyObject * obj1 = 0 ; | |
5639 | char * kwnames[] = { | |
5640 | (char *) "self",(char *) "other", NULL | |
5641 | }; | |
5642 | ||
5643 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
5644 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5645 | if (!SWIG_IsOK(res1)) { | |
5646 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5647 | } | |
5648 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5649 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5650 | if (!SWIG_IsOK(res2)) { | |
5651 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
5652 | } | |
5653 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
5654 | { | |
5655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5656 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); | |
5657 | wxPyEndAllowThreads(__tstate); | |
5658 | if (PyErr_Occurred()) SWIG_fail; | |
5659 | } | |
5660 | { | |
5661 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5662 | } | |
5663 | return resultobj; | |
5664 | fail: | |
5665 | return NULL; | |
d14a1e28 RD |
5666 | } |
5667 | ||
5668 | ||
0085ce49 RD |
5669 | SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5670 | PyObject *obj; | |
5671 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5672 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj)); | |
5673 | return SWIG_Py_Void(); | |
d14a1e28 RD |
5674 | } |
5675 | ||
0085ce49 RD |
5676 | SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5677 | return SWIG_Python_InitShadowInstance(args); | |
5678 | } | |
d14a1e28 | 5679 | |
0085ce49 RD |
5680 | SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5681 | PyObject *resultobj = 0; | |
5682 | wxColour *arg1 = 0 ; | |
5683 | int arg2 = (int) wxSOLID ; | |
5684 | wxBrush *result = 0 ; | |
5685 | wxColour temp1 ; | |
5686 | int val2 ; | |
5687 | int ecode2 = 0 ; | |
5688 | PyObject * obj0 = 0 ; | |
5689 | PyObject * obj1 = 0 ; | |
5690 | char * kwnames[] = { | |
5691 | (char *) "colour",(char *) "style", NULL | |
5692 | }; | |
5693 | ||
5694 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail; | |
5695 | { | |
5696 | arg1 = &temp1; | |
5697 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
5698 | } | |
5699 | if (obj1) { | |
5700 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5701 | if (!SWIG_IsOK(ecode2)) { | |
5702 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'"); | |
5703 | } | |
5704 | arg2 = static_cast< int >(val2); | |
5705 | } | |
5706 | { | |
5707 | if (!wxPyCheckForApp()) SWIG_fail; | |
5708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5709 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
5710 | wxPyEndAllowThreads(__tstate); | |
5711 | if (PyErr_Occurred()) SWIG_fail; | |
5712 | } | |
5713 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 ); | |
5714 | return resultobj; | |
5715 | fail: | |
5716 | return NULL; | |
5717 | } | |
5718 | ||
5719 | ||
5720 | SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5721 | PyObject *resultobj = 0; | |
5722 | wxBitmap *arg1 = 0 ; | |
5723 | wxBrush *result = 0 ; | |
5724 | void *argp1 = 0 ; | |
5725 | int res1 = 0 ; | |
5726 | PyObject * obj0 = 0 ; | |
5727 | char * kwnames[] = { | |
5728 | (char *) "stippleBitmap", NULL | |
5729 | }; | |
5730 | ||
5731 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail; | |
5732 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5733 | if (!SWIG_IsOK(res1)) { | |
5734 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5735 | } | |
5736 | if (!argp1) { | |
5737 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5738 | } | |
5739 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5740 | { | |
5741 | if (!wxPyCheckForApp()) SWIG_fail; | |
5742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5743 | result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1); | |
5744 | wxPyEndAllowThreads(__tstate); | |
5745 | if (PyErr_Occurred()) SWIG_fail; | |
5746 | } | |
5747 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 ); | |
5748 | return resultobj; | |
5749 | fail: | |
5750 | return NULL; | |
d14a1e28 RD |
5751 | } |
5752 | ||
5753 | ||
0085ce49 RD |
5754 | SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5755 | PyObject *resultobj = 0; | |
5756 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5757 | void *argp1 = 0 ; | |
5758 | int res1 = 0 ; | |
5759 | PyObject *swig_obj[1] ; | |
5760 | ||
5761 | if (!args) SWIG_fail; | |
5762 | swig_obj[0] = args; | |
5763 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 ); | |
5764 | if (!SWIG_IsOK(res1)) { | |
5765 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5766 | } | |
5767 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5768 | { | |
5769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5770 | delete arg1; | |
d14a1e28 | 5771 | |
0085ce49 RD |
5772 | wxPyEndAllowThreads(__tstate); |
5773 | if (PyErr_Occurred()) SWIG_fail; | |
5774 | } | |
5775 | resultobj = SWIG_Py_Void(); | |
5776 | return resultobj; | |
5777 | fail: | |
5778 | return NULL; | |
5779 | } | |
5780 | ||
5781 | ||
5782 | SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5783 | PyObject *resultobj = 0; | |
5784 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5785 | wxColour *arg2 = 0 ; | |
5786 | void *argp1 = 0 ; | |
5787 | int res1 = 0 ; | |
5788 | wxColour temp2 ; | |
5789 | PyObject * obj0 = 0 ; | |
5790 | PyObject * obj1 = 0 ; | |
5791 | char * kwnames[] = { | |
5792 | (char *) "self",(char *) "col", NULL | |
5793 | }; | |
5794 | ||
5795 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5796 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5797 | if (!SWIG_IsOK(res1)) { | |
5798 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5799 | } | |
5800 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5801 | { | |
5802 | arg2 = &temp2; | |
5803 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5804 | } | |
5805 | { | |
5806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5807 | (arg1)->SetColour((wxColour const &)*arg2); | |
5808 | wxPyEndAllowThreads(__tstate); | |
5809 | if (PyErr_Occurred()) SWIG_fail; | |
5810 | } | |
5811 | resultobj = SWIG_Py_Void(); | |
5812 | return resultobj; | |
5813 | fail: | |
5814 | return NULL; | |
5815 | } | |
5816 | ||
5817 | ||
5818 | SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5819 | PyObject *resultobj = 0; | |
5820 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5821 | int arg2 ; | |
5822 | void *argp1 = 0 ; | |
5823 | int res1 = 0 ; | |
5824 | int val2 ; | |
5825 | int ecode2 = 0 ; | |
5826 | PyObject * obj0 = 0 ; | |
5827 | PyObject * obj1 = 0 ; | |
5828 | char * kwnames[] = { | |
5829 | (char *) "self",(char *) "style", NULL | |
5830 | }; | |
5831 | ||
5832 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5833 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5834 | if (!SWIG_IsOK(res1)) { | |
5835 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5836 | } | |
5837 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5838 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5839 | if (!SWIG_IsOK(ecode2)) { | |
5840 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
5841 | } | |
5842 | arg2 = static_cast< int >(val2); | |
5843 | { | |
5844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5845 | (arg1)->SetStyle(arg2); | |
5846 | wxPyEndAllowThreads(__tstate); | |
5847 | if (PyErr_Occurred()) SWIG_fail; | |
5848 | } | |
5849 | resultobj = SWIG_Py_Void(); | |
5850 | return resultobj; | |
5851 | fail: | |
5852 | return NULL; | |
5853 | } | |
5854 | ||
5855 | ||
5856 | SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5857 | PyObject *resultobj = 0; | |
5858 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5859 | wxBitmap *arg2 = 0 ; | |
5860 | void *argp1 = 0 ; | |
5861 | int res1 = 0 ; | |
5862 | void *argp2 = 0 ; | |
5863 | int res2 = 0 ; | |
5864 | PyObject * obj0 = 0 ; | |
5865 | PyObject * obj1 = 0 ; | |
5866 | char * kwnames[] = { | |
5867 | (char *) "self",(char *) "stipple", NULL | |
5868 | }; | |
5869 | ||
5870 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail; | |
5871 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5872 | if (!SWIG_IsOK(res1)) { | |
5873 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5874 | } | |
5875 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5876 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5877 | if (!SWIG_IsOK(res2)) { | |
5878 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5879 | } | |
5880 | if (!argp2) { | |
5881 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5882 | } | |
5883 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
5884 | { | |
5885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5886 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
5887 | wxPyEndAllowThreads(__tstate); | |
5888 | if (PyErr_Occurred()) SWIG_fail; | |
5889 | } | |
5890 | resultobj = SWIG_Py_Void(); | |
5891 | return resultobj; | |
5892 | fail: | |
5893 | return NULL; | |
d14a1e28 RD |
5894 | } |
5895 | ||
5896 | ||
0085ce49 RD |
5897 | SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5898 | PyObject *resultobj = 0; | |
5899 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5900 | wxColour result; | |
5901 | void *argp1 = 0 ; | |
5902 | int res1 = 0 ; | |
5903 | PyObject *swig_obj[1] ; | |
5904 | ||
5905 | if (!args) SWIG_fail; | |
5906 | swig_obj[0] = args; | |
5907 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5908 | if (!SWIG_IsOK(res1)) { | |
5909 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5910 | } | |
5911 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5912 | { | |
5913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5914 | result = ((wxBrush const *)arg1)->GetColour(); | |
5915 | wxPyEndAllowThreads(__tstate); | |
5916 | if (PyErr_Occurred()) SWIG_fail; | |
5917 | } | |
5918 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
5919 | return resultobj; | |
5920 | fail: | |
5921 | return NULL; | |
d14a1e28 RD |
5922 | } |
5923 | ||
5924 | ||
0085ce49 RD |
5925 | SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5926 | PyObject *resultobj = 0; | |
5927 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5928 | int result; | |
5929 | void *argp1 = 0 ; | |
5930 | int res1 = 0 ; | |
5931 | PyObject *swig_obj[1] ; | |
5932 | ||
5933 | if (!args) SWIG_fail; | |
5934 | swig_obj[0] = args; | |
5935 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5936 | if (!SWIG_IsOK(res1)) { | |
5937 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5938 | } | |
5939 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5940 | { | |
5941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5942 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
5943 | wxPyEndAllowThreads(__tstate); | |
5944 | if (PyErr_Occurred()) SWIG_fail; | |
5945 | } | |
5946 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5947 | return resultobj; | |
5948 | fail: | |
5949 | return NULL; | |
d14a1e28 RD |
5950 | } |
5951 | ||
5952 | ||
0085ce49 RD |
5953 | SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5954 | PyObject *resultobj = 0; | |
5955 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5956 | wxBitmap *result = 0 ; | |
5957 | void *argp1 = 0 ; | |
5958 | int res1 = 0 ; | |
5959 | PyObject *swig_obj[1] ; | |
5960 | ||
5961 | if (!args) SWIG_fail; | |
5962 | swig_obj[0] = args; | |
5963 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5964 | if (!SWIG_IsOK(res1)) { | |
5965 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5966 | } | |
5967 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5968 | { | |
5969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5970 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
5971 | wxPyEndAllowThreads(__tstate); | |
5972 | if (PyErr_Occurred()) SWIG_fail; | |
5973 | } | |
5974 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5975 | return resultobj; | |
5976 | fail: | |
5977 | return NULL; | |
d14a1e28 RD |
5978 | } |
5979 | ||
5980 | ||
0085ce49 RD |
5981 | SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5982 | PyObject *resultobj = 0; | |
5983 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5984 | bool result; | |
5985 | void *argp1 = 0 ; | |
5986 | int res1 = 0 ; | |
5987 | PyObject *swig_obj[1] ; | |
5988 | ||
5989 | if (!args) SWIG_fail; | |
5990 | swig_obj[0] = args; | |
5991 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5992 | if (!SWIG_IsOK(res1)) { | |
5993 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5994 | } | |
5995 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5996 | { | |
5997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5998 | result = (bool)((wxBrush const *)arg1)->IsHatch(); | |
5999 | wxPyEndAllowThreads(__tstate); | |
6000 | if (PyErr_Occurred()) SWIG_fail; | |
6001 | } | |
6002 | { | |
6003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6004 | } | |
6005 | return resultobj; | |
6006 | fail: | |
6007 | return NULL; | |
f78cc896 RD |
6008 | } |
6009 | ||
6010 | ||
b39fe951 | 6011 | SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
6012 | PyObject *resultobj = 0; |
6013 | wxBrush *arg1 = (wxBrush *) 0 ; | |
6014 | bool result; | |
6015 | void *argp1 = 0 ; | |
6016 | int res1 = 0 ; | |
6017 | PyObject *swig_obj[1] ; | |
6018 | ||
6019 | if (!args) SWIG_fail; | |
6020 | swig_obj[0] = args; | |
6021 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
6022 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 6023 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'"); |
0085ce49 RD |
6024 | } |
6025 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6026 | { | |
6027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 6028 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
6029 | wxPyEndAllowThreads(__tstate); |
6030 | if (PyErr_Occurred()) SWIG_fail; | |
6031 | } | |
6032 | { | |
6033 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6034 | } | |
6035 | return resultobj; | |
6036 | fail: | |
6037 | return NULL; | |
d14a1e28 RD |
6038 | } |
6039 | ||
6040 | ||
0085ce49 RD |
6041 | SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6042 | PyObject *obj; | |
6043 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6044 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj)); | |
6045 | return SWIG_Py_Void(); | |
d14a1e28 RD |
6046 | } |
6047 | ||
0085ce49 RD |
6048 | SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6049 | return SWIG_Python_InitShadowInstance(args); | |
6050 | } | |
d14a1e28 | 6051 | |
0085ce49 RD |
6052 | SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6053 | PyObject *resultobj = 0; | |
6054 | wxString *arg1 = 0 ; | |
6055 | wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ; | |
6056 | wxBitmap *result = 0 ; | |
6057 | bool temp1 = false ; | |
6058 | int val2 ; | |
6059 | int ecode2 = 0 ; | |
6060 | PyObject * obj0 = 0 ; | |
6061 | PyObject * obj1 = 0 ; | |
6062 | char * kwnames[] = { | |
6063 | (char *) "name",(char *) "type", NULL | |
6064 | }; | |
6065 | ||
6066 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
6067 | { | |
6068 | arg1 = wxString_in_helper(obj0); | |
6069 | if (arg1 == NULL) SWIG_fail; | |
6070 | temp1 = true; | |
6071 | } | |
6072 | if (obj1) { | |
6073 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6074 | if (!SWIG_IsOK(ecode2)) { | |
6075 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
6076 | } | |
6077 | arg2 = static_cast< wxBitmapType >(val2); | |
6078 | } | |
6079 | { | |
6080 | if (!wxPyCheckForApp()) SWIG_fail; | |
6081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6082 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2); | |
6083 | wxPyEndAllowThreads(__tstate); | |
6084 | if (PyErr_Occurred()) SWIG_fail; | |
6085 | } | |
6086 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 ); | |
6087 | { | |
6088 | if (temp1) | |
6089 | delete arg1; | |
6090 | } | |
6091 | return resultobj; | |
6092 | fail: | |
6093 | { | |
6094 | if (temp1) | |
6095 | delete arg1; | |
6096 | } | |
6097 | return NULL; | |
d14a1e28 RD |
6098 | } |
6099 | ||
6100 | ||
0085ce49 RD |
6101 | SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6102 | PyObject *resultobj = 0; | |
6103 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6104 | void *argp1 = 0 ; | |
6105 | int res1 = 0 ; | |
6106 | PyObject *swig_obj[1] ; | |
6107 | ||
6108 | if (!args) SWIG_fail; | |
6109 | swig_obj[0] = args; | |
6110 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 ); | |
6111 | if (!SWIG_IsOK(res1)) { | |
6112 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6113 | } | |
6114 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6115 | { | |
0085ce49 | 6116 | delete arg1; |
66c033b4 | 6117 | |
0085ce49 RD |
6118 | if (PyErr_Occurred()) SWIG_fail; |
6119 | } | |
6120 | resultobj = SWIG_Py_Void(); | |
6121 | return resultobj; | |
6122 | fail: | |
6123 | return NULL; | |
6124 | } | |
6125 | ||
6126 | ||
6127 | SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6128 | PyObject *resultobj = 0; | |
6129 | int arg1 ; | |
6130 | int arg2 ; | |
6131 | int arg3 = (int) -1 ; | |
6132 | wxBitmap *result = 0 ; | |
6133 | int val1 ; | |
6134 | int ecode1 = 0 ; | |
6135 | int val2 ; | |
6136 | int ecode2 = 0 ; | |
6137 | int val3 ; | |
6138 | int ecode3 = 0 ; | |
6139 | PyObject * obj0 = 0 ; | |
6140 | PyObject * obj1 = 0 ; | |
6141 | PyObject * obj2 = 0 ; | |
6142 | char * kwnames[] = { | |
6143 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
6144 | }; | |
6145 | ||
6146 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6147 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
6148 | if (!SWIG_IsOK(ecode1)) { | |
6149 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'"); | |
6150 | } | |
6151 | arg1 = static_cast< int >(val1); | |
6152 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6153 | if (!SWIG_IsOK(ecode2)) { | |
6154 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'"); | |
6155 | } | |
6156 | arg2 = static_cast< int >(val2); | |
6157 | if (obj2) { | |
6158 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6159 | if (!SWIG_IsOK(ecode3)) { | |
6160 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'"); | |
6161 | } | |
6162 | arg3 = static_cast< int >(val3); | |
6163 | } | |
6164 | { | |
6165 | if (!wxPyCheckForApp()) SWIG_fail; | |
6166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6167 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
6168 | wxPyEndAllowThreads(__tstate); | |
6169 | if (PyErr_Occurred()) SWIG_fail; | |
6170 | } | |
6171 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6172 | return resultobj; | |
6173 | fail: | |
6174 | return NULL; | |
6175 | } | |
6176 | ||
6177 | ||
6178 | SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6179 | PyObject *resultobj = 0; | |
6180 | wxIcon *arg1 = 0 ; | |
6181 | wxBitmap *result = 0 ; | |
6182 | void *argp1 = 0 ; | |
6183 | int res1 = 0 ; | |
6184 | PyObject * obj0 = 0 ; | |
6185 | char * kwnames[] = { | |
6186 | (char *) "icon", NULL | |
6187 | }; | |
6188 | ||
6189 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail; | |
6190 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
6191 | if (!SWIG_IsOK(res1)) { | |
6192 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
6193 | } | |
6194 | if (!argp1) { | |
6195 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
6196 | } | |
6197 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6198 | { | |
6199 | if (!wxPyCheckForApp()) SWIG_fail; | |
6200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6201 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
6202 | wxPyEndAllowThreads(__tstate); | |
6203 | if (PyErr_Occurred()) SWIG_fail; | |
6204 | } | |
6205 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6206 | return resultobj; | |
6207 | fail: | |
6208 | return NULL; | |
6209 | } | |
6210 | ||
6211 | ||
6212 | SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6213 | PyObject *resultobj = 0; | |
6214 | wxImage *arg1 = 0 ; | |
6215 | int arg2 = (int) -1 ; | |
6216 | wxBitmap *result = 0 ; | |
6217 | void *argp1 = 0 ; | |
6218 | int res1 = 0 ; | |
6219 | int val2 ; | |
6220 | int ecode2 = 0 ; | |
6221 | PyObject * obj0 = 0 ; | |
6222 | PyObject * obj1 = 0 ; | |
6223 | char * kwnames[] = { | |
6224 | (char *) "image",(char *) "depth", NULL | |
6225 | }; | |
6226 | ||
6227 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
6228 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
6229 | if (!SWIG_IsOK(res1)) { | |
6230 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
6231 | } | |
6232 | if (!argp1) { | |
6233 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
6234 | } | |
6235 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
6236 | if (obj1) { | |
6237 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6238 | if (!SWIG_IsOK(ecode2)) { | |
6239 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'"); | |
6240 | } | |
6241 | arg2 = static_cast< int >(val2); | |
6242 | } | |
6243 | { | |
6244 | if (!wxPyCheckForApp()) SWIG_fail; | |
6245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6246 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
6247 | wxPyEndAllowThreads(__tstate); | |
6248 | if (PyErr_Occurred()) SWIG_fail; | |
6249 | } | |
6250 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6251 | return resultobj; | |
6252 | fail: | |
6253 | return NULL; | |
66c033b4 RD |
6254 | } |
6255 | ||
6256 | ||
0085ce49 RD |
6257 | SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6258 | PyObject *resultobj = 0; | |
6259 | PyObject *arg1 = (PyObject *) 0 ; | |
6260 | wxBitmap *result = 0 ; | |
6261 | PyObject * obj0 = 0 ; | |
6262 | char * kwnames[] = { | |
6263 | (char *) "listOfStrings", NULL | |
6264 | }; | |
6265 | ||
6266 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail; | |
6267 | arg1 = obj0; | |
6268 | { | |
6269 | if (!wxPyCheckForApp()) SWIG_fail; | |
6270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6271 | result = (wxBitmap *)new_wxBitmap(arg1); | |
6272 | wxPyEndAllowThreads(__tstate); | |
6273 | if (PyErr_Occurred()) SWIG_fail; | |
6274 | } | |
6275 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6276 | return resultobj; | |
6277 | fail: | |
6278 | return NULL; | |
6279 | } | |
6280 | ||
6281 | ||
6282 | SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6283 | PyObject *resultobj = 0; | |
6284 | PyObject *arg1 = (PyObject *) 0 ; | |
6285 | int arg2 ; | |
6286 | int arg3 ; | |
6287 | int arg4 = (int) 1 ; | |
6288 | wxBitmap *result = 0 ; | |
6289 | int val2 ; | |
6290 | int ecode2 = 0 ; | |
6291 | int val3 ; | |
6292 | int ecode3 = 0 ; | |
6293 | int val4 ; | |
6294 | int ecode4 = 0 ; | |
6295 | PyObject * obj0 = 0 ; | |
6296 | PyObject * obj1 = 0 ; | |
6297 | PyObject * obj2 = 0 ; | |
6298 | PyObject * obj3 = 0 ; | |
6299 | char * kwnames[] = { | |
6300 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
6301 | }; | |
6302 | ||
6303 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6304 | arg1 = obj0; | |
6305 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6306 | if (!SWIG_IsOK(ecode2)) { | |
6307 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'"); | |
6308 | } | |
6309 | arg2 = static_cast< int >(val2); | |
6310 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6311 | if (!SWIG_IsOK(ecode3)) { | |
6312 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'"); | |
6313 | } | |
6314 | arg3 = static_cast< int >(val3); | |
6315 | if (obj3) { | |
6316 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6317 | if (!SWIG_IsOK(ecode4)) { | |
6318 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'"); | |
6319 | } | |
6320 | arg4 = static_cast< int >(val4); | |
6321 | } | |
6322 | { | |
6323 | if (!wxPyCheckForApp()) SWIG_fail; | |
6324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6325 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
6326 | wxPyEndAllowThreads(__tstate); | |
6327 | if (PyErr_Occurred()) SWIG_fail; | |
6328 | } | |
6329 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6330 | return resultobj; | |
6331 | fail: | |
6332 | return NULL; | |
d14a1e28 RD |
6333 | } |
6334 | ||
6335 | ||
b39fe951 | 6336 | SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
6337 | PyObject *resultobj = 0; |
6338 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6339 | bool result; | |
6340 | void *argp1 = 0 ; | |
6341 | int res1 = 0 ; | |
6342 | PyObject *swig_obj[1] ; | |
6343 | ||
6344 | if (!args) SWIG_fail; | |
6345 | swig_obj[0] = args; | |
6346 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6347 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 6348 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'"); |
0085ce49 RD |
6349 | } |
6350 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6351 | { | |
b39fe951 | 6352 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
6353 | if (PyErr_Occurred()) SWIG_fail; |
6354 | } | |
6355 | { | |
6356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6357 | } | |
6358 | return resultobj; | |
6359 | fail: | |
6360 | return NULL; | |
d14a1e28 RD |
6361 | } |
6362 | ||
6363 | ||
0085ce49 RD |
6364 | SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6365 | PyObject *resultobj = 0; | |
6366 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6367 | int result; | |
6368 | void *argp1 = 0 ; | |
6369 | int res1 = 0 ; | |
6370 | PyObject *swig_obj[1] ; | |
6371 | ||
6372 | if (!args) SWIG_fail; | |
6373 | swig_obj[0] = args; | |
6374 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6375 | if (!SWIG_IsOK(res1)) { | |
6376 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6377 | } | |
6378 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6379 | { | |
0085ce49 | 6380 | result = (int)(arg1)->GetWidth(); |
0085ce49 RD |
6381 | if (PyErr_Occurred()) SWIG_fail; |
6382 | } | |
6383 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6384 | return resultobj; | |
6385 | fail: | |
6386 | return NULL; | |
d14a1e28 RD |
6387 | } |
6388 | ||
6389 | ||
0085ce49 RD |
6390 | SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6391 | PyObject *resultobj = 0; | |
6392 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6393 | int result; | |
6394 | void *argp1 = 0 ; | |
6395 | int res1 = 0 ; | |
6396 | PyObject *swig_obj[1] ; | |
6397 | ||
6398 | if (!args) SWIG_fail; | |
6399 | swig_obj[0] = args; | |
6400 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6401 | if (!SWIG_IsOK(res1)) { | |
6402 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6403 | } | |
6404 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6405 | { | |
0085ce49 | 6406 | result = (int)(arg1)->GetHeight(); |
0085ce49 RD |
6407 | if (PyErr_Occurred()) SWIG_fail; |
6408 | } | |
6409 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6410 | return resultobj; | |
6411 | fail: | |
6412 | return NULL; | |
d14a1e28 RD |
6413 | } |
6414 | ||
6415 | ||
0085ce49 RD |
6416 | SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6417 | PyObject *resultobj = 0; | |
6418 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6419 | int result; | |
6420 | void *argp1 = 0 ; | |
6421 | int res1 = 0 ; | |
6422 | PyObject *swig_obj[1] ; | |
6423 | ||
6424 | if (!args) SWIG_fail; | |
6425 | swig_obj[0] = args; | |
6426 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6427 | if (!SWIG_IsOK(res1)) { | |
6428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6429 | } | |
6430 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6431 | { | |
0085ce49 | 6432 | result = (int)(arg1)->GetDepth(); |
0085ce49 RD |
6433 | if (PyErr_Occurred()) SWIG_fail; |
6434 | } | |
6435 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6436 | return resultobj; | |
6437 | fail: | |
6438 | return NULL; | |
d14a1e28 RD |
6439 | } |
6440 | ||
6441 | ||
0085ce49 RD |
6442 | SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6443 | PyObject *resultobj = 0; | |
6444 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6445 | wxSize result; | |
6446 | void *argp1 = 0 ; | |
6447 | int res1 = 0 ; | |
6448 | PyObject *swig_obj[1] ; | |
6449 | ||
6450 | if (!args) SWIG_fail; | |
6451 | swig_obj[0] = args; | |
6452 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6453 | if (!SWIG_IsOK(res1)) { | |
6454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6455 | } | |
6456 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6457 | { | |
0085ce49 | 6458 | result = wxBitmap_GetSize(arg1); |
0085ce49 RD |
6459 | if (PyErr_Occurred()) SWIG_fail; |
6460 | } | |
6461 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
6462 | return resultobj; | |
6463 | fail: | |
6464 | return NULL; | |
d14a1e28 RD |
6465 | } |
6466 | ||
6467 | ||
0085ce49 RD |
6468 | SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6469 | PyObject *resultobj = 0; | |
6470 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6471 | SwigValueWrapper<wxImage > result; | |
6472 | void *argp1 = 0 ; | |
6473 | int res1 = 0 ; | |
6474 | PyObject *swig_obj[1] ; | |
6475 | ||
6476 | if (!args) SWIG_fail; | |
6477 | swig_obj[0] = args; | |
6478 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6479 | if (!SWIG_IsOK(res1)) { | |
6480 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6481 | } | |
6482 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6483 | { | |
0085ce49 | 6484 | result = ((wxBitmap const *)arg1)->ConvertToImage(); |
0085ce49 RD |
6485 | if (PyErr_Occurred()) SWIG_fail; |
6486 | } | |
6487 | resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 ); | |
6488 | return resultobj; | |
6489 | fail: | |
6490 | return NULL; | |
d14a1e28 RD |
6491 | } |
6492 | ||
6493 | ||
0085ce49 RD |
6494 | SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6495 | PyObject *resultobj = 0; | |
6496 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6497 | wxMask *result = 0 ; | |
6498 | void *argp1 = 0 ; | |
6499 | int res1 = 0 ; | |
6500 | PyObject *swig_obj[1] ; | |
6501 | ||
6502 | if (!args) SWIG_fail; | |
6503 | swig_obj[0] = args; | |
6504 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6505 | if (!SWIG_IsOK(res1)) { | |
6506 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6507 | } | |
6508 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6509 | { | |
0085ce49 | 6510 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); |
0085ce49 RD |
6511 | if (PyErr_Occurred()) SWIG_fail; |
6512 | } | |
6513 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 ); | |
6514 | return resultobj; | |
6515 | fail: | |
6516 | return NULL; | |
6517 | } | |
6518 | ||
6519 | ||
6520 | SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6521 | PyObject *resultobj = 0; | |
6522 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6523 | wxMask *arg2 = (wxMask *) 0 ; | |
6524 | void *argp1 = 0 ; | |
6525 | int res1 = 0 ; | |
6526 | int res2 = 0 ; | |
6527 | PyObject * obj0 = 0 ; | |
6528 | PyObject * obj1 = 0 ; | |
6529 | char * kwnames[] = { | |
6530 | (char *) "self",(char *) "mask", NULL | |
6531 | }; | |
6532 | ||
6533 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
6534 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6535 | if (!SWIG_IsOK(res1)) { | |
6536 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6537 | } | |
6538 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6539 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
6540 | if (!SWIG_IsOK(res2)) { | |
6541 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'"); | |
6542 | } | |
6543 | { | |
0085ce49 | 6544 | (arg1)->SetMask(arg2); |
0085ce49 RD |
6545 | if (PyErr_Occurred()) SWIG_fail; |
6546 | } | |
6547 | resultobj = SWIG_Py_Void(); | |
6548 | return resultobj; | |
6549 | fail: | |
6550 | return NULL; | |
6551 | } | |
6552 | ||
6553 | ||
6554 | SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6555 | PyObject *resultobj = 0; | |
6556 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6557 | wxColour *arg2 = 0 ; | |
6558 | void *argp1 = 0 ; | |
6559 | int res1 = 0 ; | |
6560 | wxColour temp2 ; | |
6561 | PyObject * obj0 = 0 ; | |
6562 | PyObject * obj1 = 0 ; | |
6563 | char * kwnames[] = { | |
6564 | (char *) "self",(char *) "colour", NULL | |
6565 | }; | |
6566 | ||
6567 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
6568 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6569 | if (!SWIG_IsOK(res1)) { | |
6570 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6571 | } | |
6572 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6573 | { | |
6574 | arg2 = &temp2; | |
6575 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6576 | } | |
6577 | { | |
0085ce49 | 6578 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); |
0085ce49 RD |
6579 | if (PyErr_Occurred()) SWIG_fail; |
6580 | } | |
6581 | resultobj = SWIG_Py_Void(); | |
6582 | return resultobj; | |
6583 | fail: | |
6584 | return NULL; | |
6585 | } | |
6586 | ||
6587 | ||
6588 | SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6589 | PyObject *resultobj = 0; | |
6590 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6591 | wxRect *arg2 = 0 ; | |
6592 | SwigValueWrapper<wxBitmap > result; | |
6593 | void *argp1 = 0 ; | |
6594 | int res1 = 0 ; | |
6595 | wxRect temp2 ; | |
6596 | PyObject * obj0 = 0 ; | |
6597 | PyObject * obj1 = 0 ; | |
6598 | char * kwnames[] = { | |
6599 | (char *) "self",(char *) "rect", NULL | |
6600 | }; | |
6601 | ||
6602 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
6603 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6604 | if (!SWIG_IsOK(res1)) { | |
6605 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6606 | } | |
6607 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6608 | { | |
6609 | arg2 = &temp2; | |
6610 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6611 | } | |
6612 | { | |
0085ce49 | 6613 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); |
0085ce49 RD |
6614 | if (PyErr_Occurred()) SWIG_fail; |
6615 | } | |
6616 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6617 | return resultobj; | |
6618 | fail: | |
6619 | return NULL; | |
6620 | } | |
6621 | ||
6622 | ||
6623 | SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6624 | PyObject *resultobj = 0; | |
6625 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6626 | wxString *arg2 = 0 ; | |
6627 | wxBitmapType arg3 ; | |
6628 | wxPalette *arg4 = (wxPalette *) NULL ; | |
6629 | bool result; | |
6630 | void *argp1 = 0 ; | |
6631 | int res1 = 0 ; | |
6632 | bool temp2 = false ; | |
6633 | int val3 ; | |
6634 | int ecode3 = 0 ; | |
6635 | void *argp4 = 0 ; | |
6636 | int res4 = 0 ; | |
6637 | PyObject * obj0 = 0 ; | |
6638 | PyObject * obj1 = 0 ; | |
6639 | PyObject * obj2 = 0 ; | |
6640 | PyObject * obj3 = 0 ; | |
6641 | char * kwnames[] = { | |
6642 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
6643 | }; | |
6644 | ||
6645 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6646 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6647 | if (!SWIG_IsOK(res1)) { | |
6648 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6649 | } | |
6650 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6651 | { | |
6652 | arg2 = wxString_in_helper(obj1); | |
6653 | if (arg2 == NULL) SWIG_fail; | |
6654 | temp2 = true; | |
6655 | } | |
6656 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6657 | if (!SWIG_IsOK(ecode3)) { | |
6658 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6659 | } | |
6660 | arg3 = static_cast< wxBitmapType >(val3); | |
6661 | if (obj3) { | |
6662 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6663 | if (!SWIG_IsOK(res4)) { | |
6664 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'"); | |
d04418a7 | 6665 | } |
0085ce49 RD |
6666 | arg4 = reinterpret_cast< wxPalette * >(argp4); |
6667 | } | |
6668 | { | |
0085ce49 | 6669 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4); |
0085ce49 RD |
6670 | if (PyErr_Occurred()) SWIG_fail; |
6671 | } | |
6672 | { | |
6673 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6674 | } | |
6675 | { | |
6676 | if (temp2) | |
6677 | delete arg2; | |
6678 | } | |
6679 | return resultobj; | |
6680 | fail: | |
6681 | { | |
6682 | if (temp2) | |
6683 | delete arg2; | |
6684 | } | |
6685 | return NULL; | |
6686 | } | |
6687 | ||
6688 | ||
6689 | SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6690 | PyObject *resultobj = 0; | |
6691 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6692 | wxString *arg2 = 0 ; | |
6693 | wxBitmapType arg3 ; | |
6694 | bool result; | |
6695 | void *argp1 = 0 ; | |
6696 | int res1 = 0 ; | |
6697 | bool temp2 = false ; | |
6698 | int val3 ; | |
6699 | int ecode3 = 0 ; | |
6700 | PyObject * obj0 = 0 ; | |
6701 | PyObject * obj1 = 0 ; | |
6702 | PyObject * obj2 = 0 ; | |
6703 | char * kwnames[] = { | |
6704 | (char *) "self",(char *) "name",(char *) "type", NULL | |
6705 | }; | |
6706 | ||
6707 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6708 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6709 | if (!SWIG_IsOK(res1)) { | |
6710 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6711 | } | |
6712 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6713 | { | |
6714 | arg2 = wxString_in_helper(obj1); | |
6715 | if (arg2 == NULL) SWIG_fail; | |
6716 | temp2 = true; | |
6717 | } | |
6718 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6719 | if (!SWIG_IsOK(ecode3)) { | |
6720 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6721 | } | |
6722 | arg3 = static_cast< wxBitmapType >(val3); | |
6723 | { | |
0085ce49 | 6724 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); |
0085ce49 RD |
6725 | if (PyErr_Occurred()) SWIG_fail; |
6726 | } | |
6727 | { | |
6728 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6729 | } | |
6730 | { | |
6731 | if (temp2) | |
6732 | delete arg2; | |
6733 | } | |
6734 | return resultobj; | |
6735 | fail: | |
6736 | { | |
6737 | if (temp2) | |
6738 | delete arg2; | |
6739 | } | |
6740 | return NULL; | |
d04418a7 RD |
6741 | } |
6742 | ||
6743 | ||
0085ce49 RD |
6744 | SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6745 | PyObject *resultobj = 0; | |
6746 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6747 | wxPalette *result = 0 ; | |
6748 | void *argp1 = 0 ; | |
6749 | int res1 = 0 ; | |
6750 | PyObject *swig_obj[1] ; | |
6751 | ||
6752 | if (!args) SWIG_fail; | |
6753 | swig_obj[0] = args; | |
6754 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6755 | if (!SWIG_IsOK(res1)) { | |
6756 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6757 | } | |
6758 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6759 | { | |
0085ce49 | 6760 | result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette(); |
0085ce49 RD |
6761 | if (PyErr_Occurred()) SWIG_fail; |
6762 | } | |
6763 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6764 | return resultobj; | |
6765 | fail: | |
6766 | return NULL; | |
6767 | } | |
6768 | ||
6769 | ||
6770 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6771 | PyObject *resultobj = 0; | |
6772 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6773 | wxIcon *arg2 = 0 ; | |
6774 | bool result; | |
6775 | void *argp1 = 0 ; | |
6776 | int res1 = 0 ; | |
6777 | void *argp2 = 0 ; | |
6778 | int res2 = 0 ; | |
6779 | PyObject * obj0 = 0 ; | |
6780 | PyObject * obj1 = 0 ; | |
6781 | char * kwnames[] = { | |
6782 | (char *) "self",(char *) "icon", NULL | |
6783 | }; | |
6784 | ||
6785 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
6786 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6787 | if (!SWIG_IsOK(res1)) { | |
6788 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6789 | } | |
6790 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6791 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
6792 | if (!SWIG_IsOK(res2)) { | |
6793 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6794 | } | |
6795 | if (!argp2) { | |
6796 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6797 | } | |
6798 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
6799 | { | |
0085ce49 | 6800 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); |
0085ce49 RD |
6801 | if (PyErr_Occurred()) SWIG_fail; |
6802 | } | |
6803 | { | |
6804 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6805 | } | |
6806 | return resultobj; | |
6807 | fail: | |
6808 | return NULL; | |
6809 | } | |
6810 | ||
6811 | ||
6812 | SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6813 | PyObject *resultobj = 0; | |
6814 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6815 | int arg2 ; | |
6816 | void *argp1 = 0 ; | |
6817 | int res1 = 0 ; | |
6818 | int val2 ; | |
6819 | int ecode2 = 0 ; | |
6820 | PyObject * obj0 = 0 ; | |
6821 | PyObject * obj1 = 0 ; | |
6822 | char * kwnames[] = { | |
6823 | (char *) "self",(char *) "height", NULL | |
6824 | }; | |
6825 | ||
6826 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
6827 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6828 | if (!SWIG_IsOK(res1)) { | |
6829 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6830 | } | |
6831 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6832 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6833 | if (!SWIG_IsOK(ecode2)) { | |
6834 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
6835 | } | |
6836 | arg2 = static_cast< int >(val2); | |
6837 | { | |
0085ce49 | 6838 | (arg1)->SetHeight(arg2); |
0085ce49 RD |
6839 | if (PyErr_Occurred()) SWIG_fail; |
6840 | } | |
6841 | resultobj = SWIG_Py_Void(); | |
6842 | return resultobj; | |
6843 | fail: | |
6844 | return NULL; | |
6845 | } | |
6846 | ||
6847 | ||
6848 | SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6849 | PyObject *resultobj = 0; | |
6850 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6851 | int arg2 ; | |
6852 | void *argp1 = 0 ; | |
6853 | int res1 = 0 ; | |
6854 | int val2 ; | |
6855 | int ecode2 = 0 ; | |
6856 | PyObject * obj0 = 0 ; | |
6857 | PyObject * obj1 = 0 ; | |
6858 | char * kwnames[] = { | |
6859 | (char *) "self",(char *) "width", NULL | |
6860 | }; | |
6861 | ||
6862 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
6863 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6864 | if (!SWIG_IsOK(res1)) { | |
6865 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6866 | } | |
6867 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6868 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6869 | if (!SWIG_IsOK(ecode2)) { | |
6870 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
6871 | } | |
6872 | arg2 = static_cast< int >(val2); | |
6873 | { | |
0085ce49 | 6874 | (arg1)->SetWidth(arg2); |
0085ce49 RD |
6875 | if (PyErr_Occurred()) SWIG_fail; |
6876 | } | |
6877 | resultobj = SWIG_Py_Void(); | |
6878 | return resultobj; | |
6879 | fail: | |
6880 | return NULL; | |
6881 | } | |
6882 | ||
6883 | ||
6884 | SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6885 | PyObject *resultobj = 0; | |
6886 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6887 | int arg2 ; | |
6888 | void *argp1 = 0 ; | |
6889 | int res1 = 0 ; | |
6890 | int val2 ; | |
6891 | int ecode2 = 0 ; | |
6892 | PyObject * obj0 = 0 ; | |
6893 | PyObject * obj1 = 0 ; | |
6894 | char * kwnames[] = { | |
6895 | (char *) "self",(char *) "depth", NULL | |
6896 | }; | |
6897 | ||
6898 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
6899 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6900 | if (!SWIG_IsOK(res1)) { | |
6901 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6902 | } | |
6903 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6904 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6905 | if (!SWIG_IsOK(ecode2)) { | |
6906 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
6907 | } | |
6908 | arg2 = static_cast< int >(val2); | |
6909 | { | |
0085ce49 | 6910 | (arg1)->SetDepth(arg2); |
0085ce49 RD |
6911 | if (PyErr_Occurred()) SWIG_fail; |
6912 | } | |
6913 | resultobj = SWIG_Py_Void(); | |
6914 | return resultobj; | |
6915 | fail: | |
6916 | return NULL; | |
6917 | } | |
6918 | ||
6919 | ||
6920 | SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6921 | PyObject *resultobj = 0; | |
6922 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6923 | wxSize *arg2 = 0 ; | |
6924 | void *argp1 = 0 ; | |
6925 | int res1 = 0 ; | |
6926 | wxSize temp2 ; | |
6927 | PyObject * obj0 = 0 ; | |
6928 | PyObject * obj1 = 0 ; | |
6929 | char * kwnames[] = { | |
6930 | (char *) "self",(char *) "size", NULL | |
6931 | }; | |
6932 | ||
6933 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
6934 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6935 | if (!SWIG_IsOK(res1)) { | |
6936 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6937 | } | |
6938 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6939 | { | |
6940 | arg2 = &temp2; | |
6941 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
6942 | } | |
6943 | { | |
0085ce49 | 6944 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); |
0085ce49 RD |
6945 | if (PyErr_Occurred()) SWIG_fail; |
6946 | } | |
6947 | resultobj = SWIG_Py_Void(); | |
6948 | return resultobj; | |
6949 | fail: | |
6950 | return NULL; | |
6951 | } | |
6952 | ||
6953 | ||
8f514ab4 RD |
6954 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6955 | PyObject *resultobj = 0; | |
6956 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6957 | buffer arg2 ; | |
6958 | int arg3 ; | |
6959 | void *argp1 = 0 ; | |
6960 | int res1 = 0 ; | |
6961 | Py_ssize_t temp2 ; | |
6962 | PyObject * obj0 = 0 ; | |
6963 | PyObject * obj1 = 0 ; | |
6964 | char * kwnames[] = { | |
6965 | (char *) "self",(char *) "data", NULL | |
6966 | }; | |
6967 | ||
6968 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail; | |
6969 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6970 | if (!SWIG_IsOK(res1)) { | |
6971 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6972 | } | |
6973 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6974 | { | |
6975 | if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail; | |
6976 | arg3 = (int)temp2; | |
6977 | } | |
6978 | { | |
6979 | wxBitmap_CopyFromBuffer(arg1,arg2,arg3); | |
6980 | if (PyErr_Occurred()) SWIG_fail; | |
6981 | } | |
6982 | resultobj = SWIG_Py_Void(); | |
6983 | return resultobj; | |
6984 | fail: | |
6985 | return NULL; | |
6986 | } | |
6987 | ||
6988 | ||
6989 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6990 | PyObject *resultobj = 0; | |
6991 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6992 | buffer arg2 ; | |
6993 | int arg3 ; | |
6994 | void *argp1 = 0 ; | |
6995 | int res1 = 0 ; | |
6996 | Py_ssize_t temp2 ; | |
6997 | PyObject * obj0 = 0 ; | |
6998 | PyObject * obj1 = 0 ; | |
6999 | char * kwnames[] = { | |
7000 | (char *) "self",(char *) "data", NULL | |
7001 | }; | |
7002 | ||
7003 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail; | |
7004 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7005 | if (!SWIG_IsOK(res1)) { | |
7006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7007 | } | |
7008 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7009 | { | |
7010 | if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail; | |
7011 | arg3 = (int)temp2; | |
7012 | } | |
7013 | { | |
7014 | wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3); | |
7015 | if (PyErr_Occurred()) SWIG_fail; | |
7016 | } | |
7017 | resultobj = SWIG_Py_Void(); | |
7018 | return resultobj; | |
7019 | fail: | |
7020 | return NULL; | |
7021 | } | |
7022 | ||
7023 | ||
0085ce49 RD |
7024 | SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7025 | PyObject *resultobj = 0; | |
7026 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7027 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
7028 | bool result; | |
7029 | void *argp1 = 0 ; | |
7030 | int res1 = 0 ; | |
7031 | void *argp2 = 0 ; | |
7032 | int res2 = 0 ; | |
7033 | PyObject * obj0 = 0 ; | |
7034 | PyObject * obj1 = 0 ; | |
7035 | char * kwnames[] = { | |
7036 | (char *) "self",(char *) "other", NULL | |
7037 | }; | |
7038 | ||
7039 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
7040 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7041 | if (!SWIG_IsOK(res1)) { | |
7042 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7043 | } | |
7044 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7045 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7046 | if (!SWIG_IsOK(res2)) { | |
7047 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
7048 | } | |
7049 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
7050 | { | |
0085ce49 | 7051 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); |
0085ce49 RD |
7052 | if (PyErr_Occurred()) SWIG_fail; |
7053 | } | |
7054 | { | |
fc46b7f3 RD |
7055 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
7056 | } | |
7057 | return resultobj; | |
7058 | fail: | |
7059 | return NULL; | |
7060 | } | |
7061 | ||
7062 | ||
7063 | SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7064 | PyObject *resultobj = 0; | |
7065 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7066 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
7067 | bool result; | |
7068 | void *argp1 = 0 ; | |
7069 | int res1 = 0 ; | |
7070 | void *argp2 = 0 ; | |
7071 | int res2 = 0 ; | |
7072 | PyObject * obj0 = 0 ; | |
7073 | PyObject * obj1 = 0 ; | |
7074 | char * kwnames[] = { | |
7075 | (char *) "self",(char *) "other", NULL | |
7076 | }; | |
7077 | ||
7078 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
7079 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7080 | if (!SWIG_IsOK(res1)) { | |
7081 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7082 | } | |
7083 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7084 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7085 | if (!SWIG_IsOK(res2)) { | |
7086 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
7087 | } | |
7088 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
7089 | { | |
7090 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
7091 | if (PyErr_Occurred()) SWIG_fail; | |
7092 | } | |
7093 | { | |
7094 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7095 | } | |
7096 | return resultobj; | |
7097 | fail: | |
7098 | return NULL; | |
7099 | } | |
7100 | ||
7101 | ||
7102 | SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7103 | PyObject *obj; | |
7104 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7105 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj)); | |
7106 | return SWIG_Py_Void(); | |
7107 | } | |
7108 | ||
7109 | SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7110 | return SWIG_Python_InitShadowInstance(args); | |
7111 | } | |
7112 | ||
7113 | SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7114 | PyObject *resultobj = 0; | |
7115 | int arg1 ; | |
7116 | int arg2 ; | |
7117 | buffer arg3 ; | |
7118 | int arg4 ; | |
7119 | buffer arg5 ; | |
7120 | int arg6 ; | |
7121 | wxBitmap *result = 0 ; | |
7122 | int val1 ; | |
7123 | int ecode1 = 0 ; | |
7124 | int val2 ; | |
7125 | int ecode2 = 0 ; | |
c79fdf86 RD |
7126 | Py_ssize_t temp3 ; |
7127 | Py_ssize_t temp5 ; | |
fc46b7f3 RD |
7128 | PyObject * obj0 = 0 ; |
7129 | PyObject * obj1 = 0 ; | |
7130 | PyObject * obj2 = 0 ; | |
7131 | PyObject * obj3 = 0 ; | |
7132 | char * kwnames[] = { | |
7133 | (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL | |
7134 | }; | |
7135 | ||
7136 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7137 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7138 | if (!SWIG_IsOK(ecode1)) { | |
7139 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'"); | |
7140 | } | |
7141 | arg1 = static_cast< int >(val1); | |
7142 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7143 | if (!SWIG_IsOK(ecode2)) { | |
7144 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'"); | |
7145 | } | |
7146 | arg2 = static_cast< int >(val2); | |
7147 | { | |
c79fdf86 RD |
7148 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7149 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7150 | } |
7151 | { | |
7152 | if (obj3 != Py_None) { | |
c79fdf86 RD |
7153 | if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail; |
7154 | arg6 = (int)temp5; | |
fc46b7f3 RD |
7155 | } |
7156 | } | |
7157 | { | |
7158 | result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6); | |
7159 | if (PyErr_Occurred()) SWIG_fail; | |
7160 | } | |
7161 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7162 | return resultobj; | |
7163 | fail: | |
7164 | return NULL; | |
7165 | } | |
7166 | ||
7167 | ||
7168 | SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7169 | PyObject *resultobj = 0; | |
7170 | int arg1 ; | |
7171 | int arg2 ; | |
7172 | buffer arg3 ; | |
7173 | int arg4 ; | |
7174 | wxBitmap *result = 0 ; | |
7175 | int val1 ; | |
7176 | int ecode1 = 0 ; | |
7177 | int val2 ; | |
7178 | int ecode2 = 0 ; | |
c79fdf86 | 7179 | Py_ssize_t temp3 ; |
fc46b7f3 RD |
7180 | PyObject * obj0 = 0 ; |
7181 | PyObject * obj1 = 0 ; | |
7182 | PyObject * obj2 = 0 ; | |
7183 | char * kwnames[] = { | |
7184 | (char *) "width",(char *) "height",(char *) "data", NULL | |
7185 | }; | |
7186 | ||
7187 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7188 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7189 | if (!SWIG_IsOK(ecode1)) { | |
7190 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'"); | |
7191 | } | |
7192 | arg1 = static_cast< int >(val1); | |
7193 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7194 | if (!SWIG_IsOK(ecode2)) { | |
7195 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'"); | |
7196 | } | |
7197 | arg2 = static_cast< int >(val2); | |
7198 | { | |
c79fdf86 RD |
7199 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7200 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7201 | } |
7202 | { | |
7203 | result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4); | |
7204 | if (PyErr_Occurred()) SWIG_fail; | |
7205 | } | |
7206 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7207 | return resultobj; | |
7208 | fail: | |
7209 | return NULL; | |
7210 | } | |
7211 | ||
7212 | ||
7213 | SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7214 | PyObject *resultobj = 0; | |
7215 | int arg1 ; | |
7216 | int arg2 ; | |
7217 | buffer arg3 ; | |
7218 | int arg4 ; | |
7219 | wxBitmap *result = 0 ; | |
7220 | int val1 ; | |
7221 | int ecode1 = 0 ; | |
7222 | int val2 ; | |
7223 | int ecode2 = 0 ; | |
c79fdf86 | 7224 | Py_ssize_t temp3 ; |
fc46b7f3 RD |
7225 | PyObject * obj0 = 0 ; |
7226 | PyObject * obj1 = 0 ; | |
7227 | PyObject * obj2 = 0 ; | |
7228 | char * kwnames[] = { | |
7229 | (char *) "width",(char *) "height",(char *) "data", NULL | |
7230 | }; | |
7231 | ||
7232 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7233 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7234 | if (!SWIG_IsOK(ecode1)) { | |
7235 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'"); | |
7236 | } | |
7237 | arg1 = static_cast< int >(val1); | |
7238 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7239 | if (!SWIG_IsOK(ecode2)) { | |
7240 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'"); | |
7241 | } | |
7242 | arg2 = static_cast< int >(val2); | |
7243 | { | |
c79fdf86 RD |
7244 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7245 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7246 | } |
7247 | { | |
7248 | result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4); | |
7249 | if (PyErr_Occurred()) SWIG_fail; | |
7250 | } | |
7251 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7252 | return resultobj; | |
7253 | fail: | |
7254 | return NULL; | |
7255 | } | |
7256 | ||
7257 | ||
7258 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7259 | PyObject *resultobj = 0; | |
7260 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7261 | wxPoint result; | |
7262 | void *argp1 = 0 ; | |
7263 | int res1 = 0 ; | |
7264 | PyObject *swig_obj[1] ; | |
7265 | ||
7266 | if (!args) SWIG_fail; | |
7267 | swig_obj[0] = args; | |
7268 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7269 | if (!SWIG_IsOK(res1)) { | |
7270 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7271 | } | |
7272 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7273 | { | |
7274 | result = ((wxPixelDataBase const *)arg1)->GetOrigin(); | |
7275 | if (PyErr_Occurred()) SWIG_fail; | |
7276 | } | |
7277 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
7278 | return resultobj; | |
7279 | fail: | |
7280 | return NULL; | |
7281 | } | |
7282 | ||
7283 | ||
7284 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7285 | PyObject *resultobj = 0; | |
7286 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7287 | int result; | |
7288 | void *argp1 = 0 ; | |
7289 | int res1 = 0 ; | |
7290 | PyObject *swig_obj[1] ; | |
7291 | ||
7292 | if (!args) SWIG_fail; | |
7293 | swig_obj[0] = args; | |
7294 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7295 | if (!SWIG_IsOK(res1)) { | |
7296 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7297 | } | |
7298 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7299 | { | |
7300 | result = (int)((wxPixelDataBase const *)arg1)->GetWidth(); | |
7301 | if (PyErr_Occurred()) SWIG_fail; | |
7302 | } | |
7303 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7304 | return resultobj; | |
7305 | fail: | |
7306 | return NULL; | |
7307 | } | |
7308 | ||
7309 | ||
7310 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7311 | PyObject *resultobj = 0; | |
7312 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7313 | int result; | |
7314 | void *argp1 = 0 ; | |
7315 | int res1 = 0 ; | |
7316 | PyObject *swig_obj[1] ; | |
7317 | ||
7318 | if (!args) SWIG_fail; | |
7319 | swig_obj[0] = args; | |
7320 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7321 | if (!SWIG_IsOK(res1)) { | |
7322 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7323 | } | |
7324 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7325 | { | |
7326 | result = (int)((wxPixelDataBase const *)arg1)->GetHeight(); | |
7327 | if (PyErr_Occurred()) SWIG_fail; | |
7328 | } | |
7329 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7330 | return resultobj; | |
7331 | fail: | |
7332 | return NULL; | |
7333 | } | |
7334 | ||
7335 | ||
7336 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7337 | PyObject *resultobj = 0; | |
7338 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7339 | wxSize result; | |
7340 | void *argp1 = 0 ; | |
7341 | int res1 = 0 ; | |
7342 | PyObject *swig_obj[1] ; | |
7343 | ||
7344 | if (!args) SWIG_fail; | |
7345 | swig_obj[0] = args; | |
7346 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7347 | if (!SWIG_IsOK(res1)) { | |
7348 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7349 | } | |
7350 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7351 | { | |
7352 | result = ((wxPixelDataBase const *)arg1)->GetSize(); | |
7353 | if (PyErr_Occurred()) SWIG_fail; | |
7354 | } | |
7355 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
7356 | return resultobj; | |
7357 | fail: | |
7358 | return NULL; | |
7359 | } | |
7360 | ||
7361 | ||
7362 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7363 | PyObject *resultobj = 0; | |
7364 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7365 | int result; | |
7366 | void *argp1 = 0 ; | |
7367 | int res1 = 0 ; | |
7368 | PyObject *swig_obj[1] ; | |
7369 | ||
7370 | if (!args) SWIG_fail; | |
7371 | swig_obj[0] = args; | |
7372 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7373 | if (!SWIG_IsOK(res1)) { | |
7374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7375 | } | |
7376 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7377 | { | |
7378 | result = (int)((wxPixelDataBase const *)arg1)->GetRowStride(); | |
7379 | if (PyErr_Occurred()) SWIG_fail; | |
7380 | } | |
7381 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7382 | return resultobj; | |
7383 | fail: | |
7384 | return NULL; | |
7385 | } | |
7386 | ||
7387 | ||
7388 | SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7389 | PyObject *obj; | |
7390 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7391 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj)); | |
7392 | return SWIG_Py_Void(); | |
7393 | } | |
7394 | ||
7395 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7396 | PyObject *resultobj = 0; | |
7397 | wxBitmap *arg1 = 0 ; | |
7398 | wxNativePixelData *result = 0 ; | |
7399 | void *argp1 = 0 ; | |
7400 | int res1 = 0 ; | |
7401 | ||
7402 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
7403 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7404 | if (!SWIG_IsOK(res1)) { | |
7405 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7406 | } | |
7407 | if (!argp1) { | |
7408 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7409 | } | |
7410 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7411 | { | |
7412 | result = (wxNativePixelData *)new wxNativePixelData(*arg1); | |
7413 | if (PyErr_Occurred()) SWIG_fail; | |
7414 | } | |
7415 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7416 | return resultobj; | |
7417 | fail: | |
7418 | return NULL; | |
7419 | } | |
7420 | ||
7421 | ||
7422 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7423 | PyObject *resultobj = 0; | |
7424 | wxBitmap *arg1 = 0 ; | |
7425 | wxRect *arg2 = 0 ; | |
7426 | wxNativePixelData *result = 0 ; | |
7427 | void *argp1 = 0 ; | |
7428 | int res1 = 0 ; | |
7429 | wxRect temp2 ; | |
7430 | ||
7431 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
7432 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7433 | if (!SWIG_IsOK(res1)) { | |
7434 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7435 | } | |
7436 | if (!argp1) { | |
7437 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7438 | } | |
7439 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7440 | { | |
7441 | arg2 = &temp2; | |
7442 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
7443 | } | |
7444 | { | |
7445 | result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2); | |
7446 | if (PyErr_Occurred()) SWIG_fail; | |
7447 | } | |
7448 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7449 | return resultobj; | |
7450 | fail: | |
7451 | return NULL; | |
7452 | } | |
7453 | ||
7454 | ||
7455 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7456 | PyObject *resultobj = 0; | |
7457 | wxBitmap *arg1 = 0 ; | |
7458 | wxPoint *arg2 = 0 ; | |
7459 | wxSize *arg3 = 0 ; | |
7460 | wxNativePixelData *result = 0 ; | |
7461 | void *argp1 = 0 ; | |
7462 | int res1 = 0 ; | |
7463 | wxPoint temp2 ; | |
7464 | wxSize temp3 ; | |
7465 | ||
7466 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
7467 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7468 | if (!SWIG_IsOK(res1)) { | |
7469 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7470 | } | |
7471 | if (!argp1) { | |
7472 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7473 | } | |
7474 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7475 | { | |
7476 | arg2 = &temp2; | |
7477 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
7478 | } | |
7479 | { | |
7480 | arg3 = &temp3; | |
7481 | if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail; | |
7482 | } | |
7483 | { | |
7484 | result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3); | |
7485 | if (PyErr_Occurred()) SWIG_fail; | |
7486 | } | |
7487 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7488 | return resultobj; | |
7489 | fail: | |
7490 | return NULL; | |
7491 | } | |
7492 | ||
7493 | ||
7494 | SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) { | |
7495 | int argc; | |
7496 | PyObject *argv[4]; | |
7497 | ||
7498 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail; | |
7499 | --argc; | |
7500 | if (argc == 1) { | |
7501 | return _wrap_new_NativePixelData__SWIG_0(self, argc, argv); | |
7502 | } | |
7503 | if (argc == 2) { | |
7504 | return _wrap_new_NativePixelData__SWIG_1(self, argc, argv); | |
7505 | } | |
7506 | if (argc == 3) { | |
7507 | return _wrap_new_NativePixelData__SWIG_2(self, argc, argv); | |
7508 | } | |
7509 | ||
7510 | fail: | |
7511 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'"); | |
7512 | return NULL; | |
7513 | } | |
7514 | ||
7515 | ||
7516 | SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7517 | PyObject *resultobj = 0; | |
7518 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7519 | void *argp1 = 0 ; | |
7520 | int res1 = 0 ; | |
7521 | PyObject *swig_obj[1] ; | |
7522 | ||
7523 | if (!args) SWIG_fail; | |
7524 | swig_obj[0] = args; | |
7525 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 ); | |
7526 | if (!SWIG_IsOK(res1)) { | |
7527 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7528 | } | |
7529 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7530 | { | |
7531 | delete arg1; | |
7532 | ||
7533 | if (PyErr_Occurred()) SWIG_fail; | |
7534 | } | |
7535 | resultobj = SWIG_Py_Void(); | |
7536 | return resultobj; | |
7537 | fail: | |
7538 | return NULL; | |
7539 | } | |
7540 | ||
7541 | ||
7542 | SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7543 | PyObject *resultobj = 0; | |
7544 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7545 | wxNativePixelData_Accessor result; | |
7546 | void *argp1 = 0 ; | |
7547 | int res1 = 0 ; | |
7548 | PyObject *swig_obj[1] ; | |
7549 | ||
7550 | if (!args) SWIG_fail; | |
7551 | swig_obj[0] = args; | |
7552 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7553 | if (!SWIG_IsOK(res1)) { | |
7554 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'"); | |
7555 | } | |
7556 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7557 | { | |
7558 | result = ((wxNativePixelData const *)arg1)->GetPixels(); | |
7559 | if (PyErr_Occurred()) SWIG_fail; | |
7560 | } | |
7561 | resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 ); | |
7562 | return resultobj; | |
7563 | fail: | |
7564 | return NULL; | |
7565 | } | |
7566 | ||
7567 | ||
7568 | SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7569 | PyObject *resultobj = 0; | |
7570 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7571 | void *argp1 = 0 ; | |
7572 | int res1 = 0 ; | |
7573 | PyObject *swig_obj[1] ; | |
7574 | ||
7575 | if (!args) SWIG_fail; | |
7576 | swig_obj[0] = args; | |
7577 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7578 | if (!SWIG_IsOK(res1)) { | |
7579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7580 | } | |
7581 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7582 | { | |
7583 | (arg1)->UseAlpha(); | |
7584 | if (PyErr_Occurred()) SWIG_fail; | |
7585 | } | |
7586 | resultobj = SWIG_Py_Void(); | |
7587 | return resultobj; | |
7588 | fail: | |
7589 | return NULL; | |
7590 | } | |
7591 | ||
7592 | ||
7593 | SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7594 | PyObject *resultobj = 0; | |
7595 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7596 | bool result; | |
7597 | void *argp1 = 0 ; | |
7598 | int res1 = 0 ; | |
7599 | PyObject *swig_obj[1] ; | |
7600 | ||
7601 | if (!args) SWIG_fail; | |
7602 | swig_obj[0] = args; | |
7603 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7604 | if (!SWIG_IsOK(res1)) { | |
7605 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7606 | } | |
7607 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7608 | { | |
7609 | result = (bool)wxNativePixelData___nonzero__(arg1); | |
7610 | if (PyErr_Occurred()) SWIG_fail; | |
7611 | } | |
7612 | { | |
7613 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7614 | } | |
7615 | return resultobj; | |
7616 | fail: | |
7617 | return NULL; | |
7618 | } | |
7619 | ||
7620 | ||
7621 | SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7622 | PyObject *obj; | |
7623 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7624 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj)); | |
7625 | return SWIG_Py_Void(); | |
7626 | } | |
7627 | ||
7628 | SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7629 | return SWIG_Python_InitShadowInstance(args); | |
7630 | } | |
7631 | ||
7632 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7633 | PyObject *resultobj = 0; | |
7634 | wxNativePixelData *arg1 = 0 ; | |
7635 | wxNativePixelData_Accessor *result = 0 ; | |
7636 | void *argp1 = 0 ; | |
7637 | int res1 = 0 ; | |
7638 | ||
7639 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
7640 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 ); | |
7641 | if (!SWIG_IsOK(res1)) { | |
7642 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'"); | |
7643 | } | |
7644 | if (!argp1) { | |
7645 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'"); | |
7646 | } | |
7647 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7648 | { | |
7649 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1); | |
7650 | if (PyErr_Occurred()) SWIG_fail; | |
7651 | } | |
7652 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7653 | return resultobj; | |
7654 | fail: | |
7655 | return NULL; | |
7656 | } | |
7657 | ||
7658 | ||
7659 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7660 | PyObject *resultobj = 0; | |
7661 | wxBitmap *arg1 = 0 ; | |
7662 | wxNativePixelData *arg2 = 0 ; | |
7663 | wxNativePixelData_Accessor *result = 0 ; | |
7664 | void *argp1 = 0 ; | |
7665 | int res1 = 0 ; | |
7666 | void *argp2 = 0 ; | |
7667 | int res2 = 0 ; | |
7668 | ||
7669 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
7670 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7671 | if (!SWIG_IsOK(res1)) { | |
7672 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7673 | } | |
7674 | if (!argp1) { | |
7675 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7676 | } | |
7677 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7678 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 ); | |
7679 | if (!SWIG_IsOK(res2)) { | |
7680 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'"); | |
7681 | } | |
7682 | if (!argp2) { | |
7683 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'"); | |
7684 | } | |
7685 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7686 | { | |
7687 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2); | |
7688 | if (PyErr_Occurred()) SWIG_fail; | |
7689 | } | |
7690 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7691 | return resultobj; | |
7692 | fail: | |
7693 | return NULL; | |
7694 | } | |
7695 | ||
7696 | ||
7697 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { | |
7698 | PyObject *resultobj = 0; | |
7699 | wxNativePixelData_Accessor *result = 0 ; | |
7700 | ||
7701 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
7702 | { | |
7703 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(); | |
7704 | if (PyErr_Occurred()) SWIG_fail; | |
7705 | } | |
7706 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7707 | return resultobj; | |
7708 | fail: | |
7709 | return NULL; | |
7710 | } | |
7711 | ||
7712 | ||
7713 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) { | |
7714 | int argc; | |
7715 | PyObject *argv[3]; | |
7716 | ||
7717 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail; | |
7718 | --argc; | |
7719 | if (argc == 0) { | |
7720 | return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv); | |
7721 | } | |
7722 | if (argc == 1) { | |
7723 | return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv); | |
7724 | } | |
7725 | if (argc == 2) { | |
7726 | return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv); | |
7727 | } | |
7728 | ||
7729 | fail: | |
7730 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'"); | |
7731 | return NULL; | |
7732 | } | |
7733 | ||
7734 | ||
7735 | SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7736 | PyObject *resultobj = 0; | |
7737 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7738 | void *argp1 = 0 ; | |
7739 | int res1 = 0 ; | |
7740 | PyObject *swig_obj[1] ; | |
7741 | ||
7742 | if (!args) SWIG_fail; | |
7743 | swig_obj[0] = args; | |
7744 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 ); | |
7745 | if (!SWIG_IsOK(res1)) { | |
7746 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7747 | } | |
7748 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7749 | { | |
7750 | delete arg1; | |
7751 | ||
7752 | if (PyErr_Occurred()) SWIG_fail; | |
7753 | } | |
7754 | resultobj = SWIG_Py_Void(); | |
7755 | return resultobj; | |
7756 | fail: | |
7757 | return NULL; | |
7758 | } | |
7759 | ||
7760 | ||
7761 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7762 | PyObject *resultobj = 0; | |
7763 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7764 | wxNativePixelData *arg2 = 0 ; | |
7765 | void *argp1 = 0 ; | |
7766 | int res1 = 0 ; | |
7767 | void *argp2 = 0 ; | |
7768 | int res2 = 0 ; | |
7769 | PyObject * obj0 = 0 ; | |
7770 | PyObject * obj1 = 0 ; | |
7771 | char * kwnames[] = { | |
7772 | (char *) "self",(char *) "data", NULL | |
7773 | }; | |
7774 | ||
7775 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail; | |
7776 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7777 | if (!SWIG_IsOK(res1)) { | |
7778 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7779 | } | |
7780 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7781 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7782 | if (!SWIG_IsOK(res2)) { | |
7783 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7784 | } | |
7785 | if (!argp2) { | |
7786 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7787 | } | |
7788 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7789 | { | |
7790 | (arg1)->Reset((wxNativePixelData const &)*arg2); | |
7791 | if (PyErr_Occurred()) SWIG_fail; | |
7792 | } | |
7793 | resultobj = SWIG_Py_Void(); | |
7794 | return resultobj; | |
7795 | fail: | |
7796 | return NULL; | |
7797 | } | |
7798 | ||
7799 | ||
7800 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7801 | PyObject *resultobj = 0; | |
7802 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7803 | bool result; | |
7804 | void *argp1 = 0 ; | |
7805 | int res1 = 0 ; | |
7806 | PyObject *swig_obj[1] ; | |
7807 | ||
7808 | if (!args) SWIG_fail; | |
7809 | swig_obj[0] = args; | |
7810 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7811 | if (!SWIG_IsOK(res1)) { | |
7812 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'"); | |
7813 | } | |
7814 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7815 | { | |
7816 | result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk(); | |
7817 | if (PyErr_Occurred()) SWIG_fail; | |
7818 | } | |
7819 | { | |
7820 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7821 | } | |
7822 | return resultobj; | |
7823 | fail: | |
7824 | return NULL; | |
7825 | } | |
7826 | ||
7827 | ||
7828 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7829 | PyObject *resultobj = 0; | |
7830 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7831 | void *argp1 = 0 ; | |
7832 | int res1 = 0 ; | |
7833 | PyObject *swig_obj[1] ; | |
7834 | ||
7835 | if (!args) SWIG_fail; | |
7836 | swig_obj[0] = args; | |
7837 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7838 | if (!SWIG_IsOK(res1)) { | |
7839 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7840 | } | |
7841 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7842 | { | |
7843 | wxNativePixelData_Accessor_nextPixel(arg1); | |
7844 | if (PyErr_Occurred()) SWIG_fail; | |
7845 | } | |
7846 | resultobj = SWIG_Py_Void(); | |
7847 | return resultobj; | |
7848 | fail: | |
7849 | return NULL; | |
7850 | } | |
7851 | ||
7852 | ||
7853 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7854 | PyObject *resultobj = 0; | |
7855 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7856 | wxNativePixelData *arg2 = 0 ; | |
7857 | int arg3 ; | |
7858 | int arg4 ; | |
7859 | void *argp1 = 0 ; | |
7860 | int res1 = 0 ; | |
7861 | void *argp2 = 0 ; | |
7862 | int res2 = 0 ; | |
7863 | int val3 ; | |
7864 | int ecode3 = 0 ; | |
7865 | int val4 ; | |
7866 | int ecode4 = 0 ; | |
7867 | PyObject * obj0 = 0 ; | |
7868 | PyObject * obj1 = 0 ; | |
7869 | PyObject * obj2 = 0 ; | |
7870 | PyObject * obj3 = 0 ; | |
7871 | char * kwnames[] = { | |
7872 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
7873 | }; | |
7874 | ||
7875 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7876 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7877 | if (!SWIG_IsOK(res1)) { | |
7878 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7879 | } | |
7880 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7881 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7882 | if (!SWIG_IsOK(res2)) { | |
7883 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7884 | } | |
7885 | if (!argp2) { | |
7886 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7887 | } | |
7888 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7889 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7890 | if (!SWIG_IsOK(ecode3)) { | |
7891 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'"); | |
7892 | } | |
7893 | arg3 = static_cast< int >(val3); | |
7894 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
7895 | if (!SWIG_IsOK(ecode4)) { | |
7896 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'"); | |
7897 | } | |
7898 | arg4 = static_cast< int >(val4); | |
7899 | { | |
7900 | (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4); | |
7901 | if (PyErr_Occurred()) SWIG_fail; | |
7902 | } | |
7903 | resultobj = SWIG_Py_Void(); | |
7904 | return resultobj; | |
7905 | fail: | |
7906 | return NULL; | |
7907 | } | |
7908 | ||
7909 | ||
7910 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7911 | PyObject *resultobj = 0; | |
7912 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7913 | wxNativePixelData *arg2 = 0 ; | |
7914 | int arg3 ; | |
7915 | void *argp1 = 0 ; | |
7916 | int res1 = 0 ; | |
7917 | void *argp2 = 0 ; | |
7918 | int res2 = 0 ; | |
7919 | int val3 ; | |
7920 | int ecode3 = 0 ; | |
7921 | PyObject * obj0 = 0 ; | |
7922 | PyObject * obj1 = 0 ; | |
7923 | PyObject * obj2 = 0 ; | |
7924 | char * kwnames[] = { | |
7925 | (char *) "self",(char *) "data",(char *) "x", NULL | |
7926 | }; | |
7927 | ||
7928 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7929 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7930 | if (!SWIG_IsOK(res1)) { | |
7931 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7932 | } | |
7933 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7934 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7935 | if (!SWIG_IsOK(res2)) { | |
7936 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7937 | } | |
7938 | if (!argp2) { | |
7939 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7940 | } | |
7941 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7942 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7943 | if (!SWIG_IsOK(ecode3)) { | |
7944 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'"); | |
7945 | } | |
7946 | arg3 = static_cast< int >(val3); | |
7947 | { | |
7948 | (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3); | |
7949 | if (PyErr_Occurred()) SWIG_fail; | |
7950 | } | |
7951 | resultobj = SWIG_Py_Void(); | |
7952 | return resultobj; | |
7953 | fail: | |
7954 | return NULL; | |
7955 | } | |
7956 | ||
7957 | ||
7958 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7959 | PyObject *resultobj = 0; | |
7960 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7961 | wxNativePixelData *arg2 = 0 ; | |
7962 | int arg3 ; | |
7963 | void *argp1 = 0 ; | |
7964 | int res1 = 0 ; | |
7965 | void *argp2 = 0 ; | |
7966 | int res2 = 0 ; | |
7967 | int val3 ; | |
7968 | int ecode3 = 0 ; | |
7969 | PyObject * obj0 = 0 ; | |
7970 | PyObject * obj1 = 0 ; | |
7971 | PyObject * obj2 = 0 ; | |
7972 | char * kwnames[] = { | |
7973 | (char *) "self",(char *) "data",(char *) "y", NULL | |
7974 | }; | |
7975 | ||
7976 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7977 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7978 | if (!SWIG_IsOK(res1)) { | |
7979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7980 | } | |
7981 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7982 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7983 | if (!SWIG_IsOK(res2)) { | |
7984 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7985 | } | |
7986 | if (!argp2) { | |
7987 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7988 | } | |
7989 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7990 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7991 | if (!SWIG_IsOK(ecode3)) { | |
7992 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'"); | |
7993 | } | |
7994 | arg3 = static_cast< int >(val3); | |
7995 | { | |
7996 | (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3); | |
7997 | if (PyErr_Occurred()) SWIG_fail; | |
7998 | } | |
7999 | resultobj = SWIG_Py_Void(); | |
8000 | return resultobj; | |
8001 | fail: | |
8002 | return NULL; | |
8003 | } | |
8004 | ||
8005 | ||
8006 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8007 | PyObject *resultobj = 0; | |
8008 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8009 | wxNativePixelData *arg2 = 0 ; | |
8010 | int arg3 ; | |
8011 | int arg4 ; | |
8012 | void *argp1 = 0 ; | |
8013 | int res1 = 0 ; | |
8014 | void *argp2 = 0 ; | |
8015 | int res2 = 0 ; | |
8016 | int val3 ; | |
8017 | int ecode3 = 0 ; | |
8018 | int val4 ; | |
8019 | int ecode4 = 0 ; | |
8020 | PyObject * obj0 = 0 ; | |
8021 | PyObject * obj1 = 0 ; | |
8022 | PyObject * obj2 = 0 ; | |
8023 | PyObject * obj3 = 0 ; | |
8024 | char * kwnames[] = { | |
8025 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8026 | }; | |
8027 | ||
8028 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8029 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8030 | if (!SWIG_IsOK(res1)) { | |
8031 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8032 | } | |
8033 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8034 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
8035 | if (!SWIG_IsOK(res2)) { | |
8036 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8037 | } | |
8038 | if (!argp2) { | |
8039 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8040 | } | |
8041 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
8042 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8043 | if (!SWIG_IsOK(ecode3)) { | |
8044 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'"); | |
8045 | } | |
8046 | arg3 = static_cast< int >(val3); | |
8047 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8048 | if (!SWIG_IsOK(ecode4)) { | |
8049 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'"); | |
8050 | } | |
8051 | arg4 = static_cast< int >(val4); | |
8052 | { | |
8053 | (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4); | |
8054 | if (PyErr_Occurred()) SWIG_fail; | |
8055 | } | |
8056 | resultobj = SWIG_Py_Void(); | |
8057 | return resultobj; | |
8058 | fail: | |
8059 | return NULL; | |
8060 | } | |
8061 | ||
8062 | ||
8063 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8064 | PyObject *resultobj = 0; | |
8065 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8066 | byte arg2 ; | |
8067 | byte arg3 ; | |
8068 | byte arg4 ; | |
8069 | void *argp1 = 0 ; | |
8070 | int res1 = 0 ; | |
8071 | unsigned char val2 ; | |
8072 | int ecode2 = 0 ; | |
8073 | unsigned char val3 ; | |
8074 | int ecode3 = 0 ; | |
8075 | unsigned char val4 ; | |
8076 | int ecode4 = 0 ; | |
8077 | PyObject * obj0 = 0 ; | |
8078 | PyObject * obj1 = 0 ; | |
8079 | PyObject * obj2 = 0 ; | |
8080 | PyObject * obj3 = 0 ; | |
8081 | char * kwnames[] = { | |
8082 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
8083 | }; | |
8084 | ||
8085 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8086 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8087 | if (!SWIG_IsOK(res1)) { | |
8088 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8089 | } | |
8090 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8091 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
8092 | if (!SWIG_IsOK(ecode2)) { | |
8093 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'"); | |
8094 | } | |
8095 | arg2 = static_cast< byte >(val2); | |
8096 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
8097 | if (!SWIG_IsOK(ecode3)) { | |
8098 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'"); | |
8099 | } | |
8100 | arg3 = static_cast< byte >(val3); | |
8101 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
8102 | if (!SWIG_IsOK(ecode4)) { | |
8103 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'"); | |
8104 | } | |
8105 | arg4 = static_cast< byte >(val4); | |
8106 | { | |
8107 | wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4); | |
8108 | if (PyErr_Occurred()) SWIG_fail; | |
8109 | } | |
8110 | resultobj = SWIG_Py_Void(); | |
8111 | return resultobj; | |
8112 | fail: | |
8113 | return NULL; | |
8114 | } | |
8115 | ||
8116 | ||
8117 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8118 | PyObject *resultobj = 0; | |
8119 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8120 | PyObject *result = 0 ; | |
8121 | void *argp1 = 0 ; | |
8122 | int res1 = 0 ; | |
8123 | PyObject *swig_obj[1] ; | |
8124 | ||
8125 | if (!args) SWIG_fail; | |
8126 | swig_obj[0] = args; | |
8127 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8128 | if (!SWIG_IsOK(res1)) { | |
8129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8130 | } | |
8131 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8132 | { | |
8133 | result = (PyObject *)wxNativePixelData_Accessor_Get(arg1); | |
8134 | if (PyErr_Occurred()) SWIG_fail; | |
8135 | } | |
8136 | resultobj = result; | |
8137 | return resultobj; | |
8138 | fail: | |
8139 | return NULL; | |
8140 | } | |
8141 | ||
8142 | ||
8143 | SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8144 | PyObject *obj; | |
8145 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8146 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj)); | |
8147 | return SWIG_Py_Void(); | |
8148 | } | |
8149 | ||
8150 | SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8151 | return SWIG_Python_InitShadowInstance(args); | |
8152 | } | |
8153 | ||
8154 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8155 | PyObject *resultobj = 0; | |
8156 | wxBitmap *arg1 = 0 ; | |
8157 | wxAlphaPixelData *result = 0 ; | |
8158 | void *argp1 = 0 ; | |
8159 | int res1 = 0 ; | |
8160 | ||
8161 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
8162 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8163 | if (!SWIG_IsOK(res1)) { | |
8164 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8165 | } | |
8166 | if (!argp1) { | |
8167 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8168 | } | |
8169 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8170 | { | |
8171 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1); | |
8172 | if (PyErr_Occurred()) SWIG_fail; | |
8173 | } | |
8174 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8175 | return resultobj; | |
8176 | fail: | |
8177 | return NULL; | |
8178 | } | |
8179 | ||
8180 | ||
8181 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8182 | PyObject *resultobj = 0; | |
8183 | wxBitmap *arg1 = 0 ; | |
8184 | wxRect *arg2 = 0 ; | |
8185 | wxAlphaPixelData *result = 0 ; | |
8186 | void *argp1 = 0 ; | |
8187 | int res1 = 0 ; | |
8188 | wxRect temp2 ; | |
8189 | ||
8190 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
8191 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8192 | if (!SWIG_IsOK(res1)) { | |
8193 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8194 | } | |
8195 | if (!argp1) { | |
8196 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8197 | } | |
8198 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8199 | { | |
8200 | arg2 = &temp2; | |
8201 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
8202 | } | |
8203 | { | |
8204 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2); | |
8205 | if (PyErr_Occurred()) SWIG_fail; | |
8206 | } | |
8207 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8208 | return resultobj; | |
8209 | fail: | |
8210 | return NULL; | |
8211 | } | |
8212 | ||
8213 | ||
8214 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8215 | PyObject *resultobj = 0; | |
8216 | wxBitmap *arg1 = 0 ; | |
8217 | wxPoint *arg2 = 0 ; | |
8218 | wxSize *arg3 = 0 ; | |
8219 | wxAlphaPixelData *result = 0 ; | |
8220 | void *argp1 = 0 ; | |
8221 | int res1 = 0 ; | |
8222 | wxPoint temp2 ; | |
8223 | wxSize temp3 ; | |
8224 | ||
8225 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
8226 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8227 | if (!SWIG_IsOK(res1)) { | |
8228 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8229 | } | |
8230 | if (!argp1) { | |
8231 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8232 | } | |
8233 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8234 | { | |
8235 | arg2 = &temp2; | |
8236 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
8237 | } | |
8238 | { | |
8239 | arg3 = &temp3; | |
8240 | if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail; | |
8241 | } | |
8242 | { | |
8243 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3); | |
8244 | if (PyErr_Occurred()) SWIG_fail; | |
8245 | } | |
8246 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8247 | return resultobj; | |
8248 | fail: | |
8249 | return NULL; | |
8250 | } | |
8251 | ||
8252 | ||
8253 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) { | |
8254 | int argc; | |
8255 | PyObject *argv[4]; | |
8256 | ||
8257 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail; | |
8258 | --argc; | |
8259 | if (argc == 1) { | |
8260 | return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv); | |
8261 | } | |
8262 | if (argc == 2) { | |
8263 | return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv); | |
8264 | } | |
8265 | if (argc == 3) { | |
8266 | return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv); | |
8267 | } | |
8268 | ||
8269 | fail: | |
8270 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'"); | |
8271 | return NULL; | |
8272 | } | |
8273 | ||
8274 | ||
8275 | SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8276 | PyObject *resultobj = 0; | |
8277 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8278 | void *argp1 = 0 ; | |
8279 | int res1 = 0 ; | |
8280 | PyObject *swig_obj[1] ; | |
8281 | ||
8282 | if (!args) SWIG_fail; | |
8283 | swig_obj[0] = args; | |
8284 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 ); | |
8285 | if (!SWIG_IsOK(res1)) { | |
8286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8287 | } | |
8288 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8289 | { | |
8290 | delete arg1; | |
8291 | ||
8292 | if (PyErr_Occurred()) SWIG_fail; | |
8293 | } | |
8294 | resultobj = SWIG_Py_Void(); | |
8295 | return resultobj; | |
8296 | fail: | |
8297 | return NULL; | |
8298 | } | |
8299 | ||
8300 | ||
8301 | SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8302 | PyObject *resultobj = 0; | |
8303 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8304 | wxAlphaPixelData_Accessor result; | |
8305 | void *argp1 = 0 ; | |
8306 | int res1 = 0 ; | |
8307 | PyObject *swig_obj[1] ; | |
8308 | ||
8309 | if (!args) SWIG_fail; | |
8310 | swig_obj[0] = args; | |
8311 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8312 | if (!SWIG_IsOK(res1)) { | |
8313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'"); | |
8314 | } | |
8315 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8316 | { | |
8317 | result = ((wxAlphaPixelData const *)arg1)->GetPixels(); | |
8318 | if (PyErr_Occurred()) SWIG_fail; | |
8319 | } | |
8320 | resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 ); | |
8321 | return resultobj; | |
8322 | fail: | |
8323 | return NULL; | |
8324 | } | |
8325 | ||
8326 | ||
8327 | SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8328 | PyObject *resultobj = 0; | |
8329 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8330 | void *argp1 = 0 ; | |
8331 | int res1 = 0 ; | |
8332 | PyObject *swig_obj[1] ; | |
8333 | ||
8334 | if (!args) SWIG_fail; | |
8335 | swig_obj[0] = args; | |
8336 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8337 | if (!SWIG_IsOK(res1)) { | |
8338 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8339 | } | |
8340 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8341 | { | |
8342 | (arg1)->UseAlpha(); | |
8343 | if (PyErr_Occurred()) SWIG_fail; | |
8344 | } | |
8345 | resultobj = SWIG_Py_Void(); | |
8346 | return resultobj; | |
8347 | fail: | |
8348 | return NULL; | |
8349 | } | |
8350 | ||
8351 | ||
8352 | SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8353 | PyObject *resultobj = 0; | |
8354 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8355 | bool result; | |
8356 | void *argp1 = 0 ; | |
8357 | int res1 = 0 ; | |
8358 | PyObject *swig_obj[1] ; | |
8359 | ||
8360 | if (!args) SWIG_fail; | |
8361 | swig_obj[0] = args; | |
8362 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8363 | if (!SWIG_IsOK(res1)) { | |
8364 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8365 | } | |
8366 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8367 | { | |
8368 | result = (bool)wxAlphaPixelData___nonzero__(arg1); | |
8369 | if (PyErr_Occurred()) SWIG_fail; | |
8370 | } | |
8371 | { | |
8372 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8373 | } | |
8374 | return resultobj; | |
8375 | fail: | |
8376 | return NULL; | |
8377 | } | |
8378 | ||
8379 | ||
8380 | SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8381 | PyObject *obj; | |
8382 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8383 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj)); | |
8384 | return SWIG_Py_Void(); | |
8385 | } | |
8386 | ||
8387 | SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8388 | return SWIG_Python_InitShadowInstance(args); | |
8389 | } | |
8390 | ||
8391 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8392 | PyObject *resultobj = 0; | |
8393 | wxAlphaPixelData *arg1 = 0 ; | |
8394 | wxAlphaPixelData_Accessor *result = 0 ; | |
8395 | void *argp1 = 0 ; | |
8396 | int res1 = 0 ; | |
8397 | ||
8398 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
8399 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 ); | |
8400 | if (!SWIG_IsOK(res1)) { | |
8401 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'"); | |
8402 | } | |
8403 | if (!argp1) { | |
8404 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'"); | |
8405 | } | |
8406 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8407 | { | |
8408 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1); | |
8409 | if (PyErr_Occurred()) SWIG_fail; | |
8410 | } | |
8411 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8412 | return resultobj; | |
8413 | fail: | |
8414 | return NULL; | |
8415 | } | |
8416 | ||
8417 | ||
8418 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8419 | PyObject *resultobj = 0; | |
8420 | wxBitmap *arg1 = 0 ; | |
8421 | wxAlphaPixelData *arg2 = 0 ; | |
8422 | wxAlphaPixelData_Accessor *result = 0 ; | |
8423 | void *argp1 = 0 ; | |
8424 | int res1 = 0 ; | |
8425 | void *argp2 = 0 ; | |
8426 | int res2 = 0 ; | |
8427 | ||
8428 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
8429 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8430 | if (!SWIG_IsOK(res1)) { | |
8431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8432 | } | |
8433 | if (!argp1) { | |
8434 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8435 | } | |
8436 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8437 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 ); | |
8438 | if (!SWIG_IsOK(res2)) { | |
8439 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'"); | |
8440 | } | |
8441 | if (!argp2) { | |
8442 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'"); | |
8443 | } | |
8444 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8445 | { | |
8446 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2); | |
8447 | if (PyErr_Occurred()) SWIG_fail; | |
8448 | } | |
8449 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8450 | return resultobj; | |
8451 | fail: | |
8452 | return NULL; | |
8453 | } | |
8454 | ||
8455 | ||
8456 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { | |
8457 | PyObject *resultobj = 0; | |
8458 | wxAlphaPixelData_Accessor *result = 0 ; | |
8459 | ||
8460 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
8461 | { | |
8462 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(); | |
8463 | if (PyErr_Occurred()) SWIG_fail; | |
8464 | } | |
8465 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8466 | return resultobj; | |
8467 | fail: | |
8468 | return NULL; | |
8469 | } | |
8470 | ||
8471 | ||
8472 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) { | |
8473 | int argc; | |
8474 | PyObject *argv[3]; | |
8475 | ||
8476 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail; | |
8477 | --argc; | |
8478 | if (argc == 0) { | |
8479 | return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv); | |
8480 | } | |
8481 | if (argc == 1) { | |
8482 | return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv); | |
8483 | } | |
8484 | if (argc == 2) { | |
8485 | return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv); | |
8486 | } | |
8487 | ||
8488 | fail: | |
8489 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'"); | |
8490 | return NULL; | |
8491 | } | |
8492 | ||
8493 | ||
8494 | SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8495 | PyObject *resultobj = 0; | |
8496 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8497 | void *argp1 = 0 ; | |
8498 | int res1 = 0 ; | |
8499 | PyObject *swig_obj[1] ; | |
8500 | ||
8501 | if (!args) SWIG_fail; | |
8502 | swig_obj[0] = args; | |
8503 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 ); | |
8504 | if (!SWIG_IsOK(res1)) { | |
8505 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8506 | } | |
8507 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8508 | { | |
8509 | delete arg1; | |
8510 | ||
8511 | if (PyErr_Occurred()) SWIG_fail; | |
8512 | } | |
8513 | resultobj = SWIG_Py_Void(); | |
8514 | return resultobj; | |
8515 | fail: | |
8516 | return NULL; | |
8517 | } | |
8518 | ||
8519 | ||
8520 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8521 | PyObject *resultobj = 0; | |
8522 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8523 | wxAlphaPixelData *arg2 = 0 ; | |
8524 | void *argp1 = 0 ; | |
8525 | int res1 = 0 ; | |
8526 | void *argp2 = 0 ; | |
8527 | int res2 = 0 ; | |
8528 | PyObject * obj0 = 0 ; | |
8529 | PyObject * obj1 = 0 ; | |
8530 | char * kwnames[] = { | |
8531 | (char *) "self",(char *) "data", NULL | |
8532 | }; | |
8533 | ||
8534 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail; | |
8535 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8536 | if (!SWIG_IsOK(res1)) { | |
8537 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8538 | } | |
8539 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8540 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8541 | if (!SWIG_IsOK(res2)) { | |
8542 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8543 | } | |
8544 | if (!argp2) { | |
8545 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8546 | } | |
8547 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8548 | { | |
8549 | (arg1)->Reset((wxAlphaPixelData const &)*arg2); | |
8550 | if (PyErr_Occurred()) SWIG_fail; | |
8551 | } | |
8552 | resultobj = SWIG_Py_Void(); | |
8553 | return resultobj; | |
8554 | fail: | |
8555 | return NULL; | |
8556 | } | |
8557 | ||
8558 | ||
8559 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8560 | PyObject *resultobj = 0; | |
8561 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8562 | bool result; | |
8563 | void *argp1 = 0 ; | |
8564 | int res1 = 0 ; | |
8565 | PyObject *swig_obj[1] ; | |
8566 | ||
8567 | if (!args) SWIG_fail; | |
8568 | swig_obj[0] = args; | |
8569 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8570 | if (!SWIG_IsOK(res1)) { | |
8571 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'"); | |
8572 | } | |
8573 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8574 | { | |
8575 | result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk(); | |
8576 | if (PyErr_Occurred()) SWIG_fail; | |
8577 | } | |
8578 | { | |
8579 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8580 | } | |
8581 | return resultobj; | |
8582 | fail: | |
8583 | return NULL; | |
8584 | } | |
8585 | ||
8586 | ||
8587 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8588 | PyObject *resultobj = 0; | |
8589 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8590 | void *argp1 = 0 ; | |
8591 | int res1 = 0 ; | |
8592 | PyObject *swig_obj[1] ; | |
8593 | ||
8594 | if (!args) SWIG_fail; | |
8595 | swig_obj[0] = args; | |
8596 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8597 | if (!SWIG_IsOK(res1)) { | |
8598 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8599 | } | |
8600 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8601 | { | |
8602 | wxAlphaPixelData_Accessor_nextPixel(arg1); | |
8603 | if (PyErr_Occurred()) SWIG_fail; | |
8604 | } | |
8605 | resultobj = SWIG_Py_Void(); | |
8606 | return resultobj; | |
8607 | fail: | |
8608 | return NULL; | |
8609 | } | |
8610 | ||
8611 | ||
8612 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8613 | PyObject *resultobj = 0; | |
8614 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8615 | wxAlphaPixelData *arg2 = 0 ; | |
8616 | int arg3 ; | |
8617 | int arg4 ; | |
8618 | void *argp1 = 0 ; | |
8619 | int res1 = 0 ; | |
8620 | void *argp2 = 0 ; | |
8621 | int res2 = 0 ; | |
8622 | int val3 ; | |
8623 | int ecode3 = 0 ; | |
8624 | int val4 ; | |
8625 | int ecode4 = 0 ; | |
8626 | PyObject * obj0 = 0 ; | |
8627 | PyObject * obj1 = 0 ; | |
8628 | PyObject * obj2 = 0 ; | |
8629 | PyObject * obj3 = 0 ; | |
8630 | char * kwnames[] = { | |
8631 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8632 | }; | |
8633 | ||
8634 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8635 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8636 | if (!SWIG_IsOK(res1)) { | |
8637 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8638 | } | |
8639 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8640 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8641 | if (!SWIG_IsOK(res2)) { | |
8642 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8643 | } | |
8644 | if (!argp2) { | |
8645 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8646 | } | |
8647 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8648 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8649 | if (!SWIG_IsOK(ecode3)) { | |
8650 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'"); | |
8651 | } | |
8652 | arg3 = static_cast< int >(val3); | |
8653 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8654 | if (!SWIG_IsOK(ecode4)) { | |
8655 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'"); | |
8656 | } | |
8657 | arg4 = static_cast< int >(val4); | |
8658 | { | |
8659 | (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4); | |
8660 | if (PyErr_Occurred()) SWIG_fail; | |
8661 | } | |
8662 | resultobj = SWIG_Py_Void(); | |
8663 | return resultobj; | |
8664 | fail: | |
8665 | return NULL; | |
8666 | } | |
8667 | ||
8668 | ||
8669 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8670 | PyObject *resultobj = 0; | |
8671 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8672 | wxAlphaPixelData *arg2 = 0 ; | |
8673 | int arg3 ; | |
8674 | void *argp1 = 0 ; | |
8675 | int res1 = 0 ; | |
8676 | void *argp2 = 0 ; | |
8677 | int res2 = 0 ; | |
8678 | int val3 ; | |
8679 | int ecode3 = 0 ; | |
8680 | PyObject * obj0 = 0 ; | |
8681 | PyObject * obj1 = 0 ; | |
8682 | PyObject * obj2 = 0 ; | |
8683 | char * kwnames[] = { | |
8684 | (char *) "self",(char *) "data",(char *) "x", NULL | |
8685 | }; | |
8686 | ||
8687 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8688 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8689 | if (!SWIG_IsOK(res1)) { | |
8690 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8691 | } | |
8692 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8693 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8694 | if (!SWIG_IsOK(res2)) { | |
8695 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8696 | } | |
8697 | if (!argp2) { | |
8698 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8699 | } | |
8700 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8701 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8702 | if (!SWIG_IsOK(ecode3)) { | |
8703 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'"); | |
8704 | } | |
8705 | arg3 = static_cast< int >(val3); | |
8706 | { | |
8707 | (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3); | |
8708 | if (PyErr_Occurred()) SWIG_fail; | |
8709 | } | |
8710 | resultobj = SWIG_Py_Void(); | |
8711 | return resultobj; | |
8712 | fail: | |
8713 | return NULL; | |
8714 | } | |
8715 | ||
8716 | ||
8717 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8718 | PyObject *resultobj = 0; | |
8719 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8720 | wxAlphaPixelData *arg2 = 0 ; | |
8721 | int arg3 ; | |
8722 | void *argp1 = 0 ; | |
8723 | int res1 = 0 ; | |
8724 | void *argp2 = 0 ; | |
8725 | int res2 = 0 ; | |
8726 | int val3 ; | |
8727 | int ecode3 = 0 ; | |
8728 | PyObject * obj0 = 0 ; | |
8729 | PyObject * obj1 = 0 ; | |
8730 | PyObject * obj2 = 0 ; | |
8731 | char * kwnames[] = { | |
8732 | (char *) "self",(char *) "data",(char *) "y", NULL | |
8733 | }; | |
8734 | ||
8735 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8736 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8737 | if (!SWIG_IsOK(res1)) { | |
8738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8739 | } | |
8740 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8741 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8742 | if (!SWIG_IsOK(res2)) { | |
8743 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8744 | } | |
8745 | if (!argp2) { | |
8746 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8747 | } | |
8748 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8749 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8750 | if (!SWIG_IsOK(ecode3)) { | |
8751 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'"); | |
8752 | } | |
8753 | arg3 = static_cast< int >(val3); | |
8754 | { | |
8755 | (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3); | |
8756 | if (PyErr_Occurred()) SWIG_fail; | |
8757 | } | |
8758 | resultobj = SWIG_Py_Void(); | |
8759 | return resultobj; | |
8760 | fail: | |
8761 | return NULL; | |
8762 | } | |
8763 | ||
8764 | ||
8765 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8766 | PyObject *resultobj = 0; | |
8767 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8768 | wxAlphaPixelData *arg2 = 0 ; | |
8769 | int arg3 ; | |
8770 | int arg4 ; | |
8771 | void *argp1 = 0 ; | |
8772 | int res1 = 0 ; | |
8773 | void *argp2 = 0 ; | |
8774 | int res2 = 0 ; | |
8775 | int val3 ; | |
8776 | int ecode3 = 0 ; | |
8777 | int val4 ; | |
8778 | int ecode4 = 0 ; | |
8779 | PyObject * obj0 = 0 ; | |
8780 | PyObject * obj1 = 0 ; | |
8781 | PyObject * obj2 = 0 ; | |
8782 | PyObject * obj3 = 0 ; | |
8783 | char * kwnames[] = { | |
8784 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8785 | }; | |
8786 | ||
8787 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8788 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8789 | if (!SWIG_IsOK(res1)) { | |
8790 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8791 | } | |
8792 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8793 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8794 | if (!SWIG_IsOK(res2)) { | |
8795 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8796 | } | |
8797 | if (!argp2) { | |
8798 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8799 | } | |
8800 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8801 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8802 | if (!SWIG_IsOK(ecode3)) { | |
8803 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'"); | |
8804 | } | |
8805 | arg3 = static_cast< int >(val3); | |
8806 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8807 | if (!SWIG_IsOK(ecode4)) { | |
8808 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'"); | |
8809 | } | |
8810 | arg4 = static_cast< int >(val4); | |
8811 | { | |
8812 | (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4); | |
8813 | if (PyErr_Occurred()) SWIG_fail; | |
8814 | } | |
8815 | resultobj = SWIG_Py_Void(); | |
8816 | return resultobj; | |
8817 | fail: | |
8818 | return NULL; | |
8819 | } | |
8820 | ||
8821 | ||
8822 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8823 | PyObject *resultobj = 0; | |
8824 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8825 | byte arg2 ; | |
8826 | byte arg3 ; | |
8827 | byte arg4 ; | |
8828 | byte arg5 ; | |
8829 | void *argp1 = 0 ; | |
8830 | int res1 = 0 ; | |
8831 | unsigned char val2 ; | |
8832 | int ecode2 = 0 ; | |
8833 | unsigned char val3 ; | |
8834 | int ecode3 = 0 ; | |
8835 | unsigned char val4 ; | |
8836 | int ecode4 = 0 ; | |
8837 | unsigned char val5 ; | |
8838 | int ecode5 = 0 ; | |
8839 | PyObject * obj0 = 0 ; | |
8840 | PyObject * obj1 = 0 ; | |
8841 | PyObject * obj2 = 0 ; | |
8842 | PyObject * obj3 = 0 ; | |
8843 | PyObject * obj4 = 0 ; | |
8844 | char * kwnames[] = { | |
8845 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL | |
8846 | }; | |
8847 | ||
8848 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
8849 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8850 | if (!SWIG_IsOK(res1)) { | |
8851 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8852 | } | |
8853 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8854 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
8855 | if (!SWIG_IsOK(ecode2)) { | |
8856 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'"); | |
8857 | } | |
8858 | arg2 = static_cast< byte >(val2); | |
8859 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
8860 | if (!SWIG_IsOK(ecode3)) { | |
8861 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'"); | |
8862 | } | |
8863 | arg3 = static_cast< byte >(val3); | |
8864 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
8865 | if (!SWIG_IsOK(ecode4)) { | |
8866 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'"); | |
8867 | } | |
8868 | arg4 = static_cast< byte >(val4); | |
8869 | ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); | |
8870 | if (!SWIG_IsOK(ecode5)) { | |
8871 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'"); | |
8872 | } | |
8873 | arg5 = static_cast< byte >(val5); | |
8874 | { | |
8875 | wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5); | |
8876 | if (PyErr_Occurred()) SWIG_fail; | |
0085ce49 | 8877 | } |
fc46b7f3 | 8878 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
8879 | return resultobj; |
8880 | fail: | |
8881 | return NULL; | |
8882 | } | |
8883 | ||
8884 | ||
fc46b7f3 | 8885 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 8886 | PyObject *resultobj = 0; |
fc46b7f3 RD |
8887 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; |
8888 | PyObject *result = 0 ; | |
0085ce49 RD |
8889 | void *argp1 = 0 ; |
8890 | int res1 = 0 ; | |
fc46b7f3 | 8891 | PyObject *swig_obj[1] ; |
0085ce49 | 8892 | |
fc46b7f3 RD |
8893 | if (!args) SWIG_fail; |
8894 | swig_obj[0] = args; | |
8895 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
0085ce49 | 8896 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 8897 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); |
0085ce49 | 8898 | } |
fc46b7f3 | 8899 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); |
0085ce49 | 8900 | { |
fc46b7f3 | 8901 | result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1); |
0085ce49 RD |
8902 | if (PyErr_Occurred()) SWIG_fail; |
8903 | } | |
fc46b7f3 | 8904 | resultobj = result; |
0085ce49 RD |
8905 | return resultobj; |
8906 | fail: | |
8907 | return NULL; | |
d14a1e28 RD |
8908 | } |
8909 | ||
8910 | ||
fc46b7f3 | 8911 | SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
8912 | PyObject *obj; |
8913 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
fc46b7f3 | 8914 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj)); |
0085ce49 | 8915 | return SWIG_Py_Void(); |
b2df227b RD |
8916 | } |
8917 | ||
fc46b7f3 | 8918 | SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 8919 | return SWIG_Python_InitShadowInstance(args); |
d14a1e28 RD |
8920 | } |
8921 | ||
0085ce49 RD |
8922 | SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
8923 | PyObject *resultobj = 0; | |
8924 | wxBitmap *arg1 = 0 ; | |
8925 | wxColour const &arg2_defvalue = wxNullColour ; | |
8926 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
8927 | wxMask *result = 0 ; | |
8928 | void *argp1 = 0 ; | |
8929 | int res1 = 0 ; | |
8930 | wxColour temp2 ; | |
8931 | PyObject * obj0 = 0 ; | |
8932 | PyObject * obj1 = 0 ; | |
8933 | char * kwnames[] = { | |
8934 | (char *) "bitmap",(char *) "colour", NULL | |
8935 | }; | |
8936 | ||
8937 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail; | |
8938 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8939 | if (!SWIG_IsOK(res1)) { | |
8940 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8941 | } | |
8942 | if (!argp1) { | |
8943 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8944 | } | |
8945 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8946 | if (obj1) { | |
d14a1e28 | 8947 | { |
0085ce49 RD |
8948 | arg2 = &temp2; |
8949 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 | 8950 | } |
0085ce49 RD |
8951 | } |
8952 | { | |
8953 | if (!wxPyCheckForApp()) SWIG_fail; | |
8954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8955 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
8956 | wxPyEndAllowThreads(__tstate); | |
8957 | if (PyErr_Occurred()) SWIG_fail; | |
8958 | } | |
8959 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 ); | |
8960 | return resultobj; | |
8961 | fail: | |
8962 | return NULL; | |
d14a1e28 RD |
8963 | } |
8964 | ||
8965 | ||
0085ce49 RD |
8966 | SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8967 | PyObject *resultobj = 0; | |
8968 | wxMask *arg1 = (wxMask *) 0 ; | |
8969 | void *argp1 = 0 ; | |
8970 | int res1 = 0 ; | |
8971 | PyObject *swig_obj[1] ; | |
8972 | ||
8973 | if (!args) SWIG_fail; | |
8974 | swig_obj[0] = args; | |
8975 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
8976 | if (!SWIG_IsOK(res1)) { | |
8977 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'"); | |
8978 | } | |
8979 | arg1 = reinterpret_cast< wxMask * >(argp1); | |
8980 | { | |
0085ce49 | 8981 | delete arg1; |
d14a1e28 | 8982 | |
0085ce49 RD |
8983 | if (PyErr_Occurred()) SWIG_fail; |
8984 | } | |
8985 | resultobj = SWIG_Py_Void(); | |
8986 | return resultobj; | |
8987 | fail: | |
8988 | return NULL; | |
8989 | } | |
8990 | ||
8991 | ||
8992 | SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8993 | PyObject *obj; | |
8994 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8995 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj)); | |
8996 | return SWIG_Py_Void(); | |
8997 | } | |
8998 | ||
8999 | SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9000 | return SWIG_Python_InitShadowInstance(args); | |
9001 | } | |
9002 | ||
9003 | SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9004 | PyObject *resultobj = 0; | |
9005 | wxString *arg1 = 0 ; | |
9006 | wxBitmapType arg2 ; | |
9007 | int arg3 = (int) -1 ; | |
9008 | int arg4 = (int) -1 ; | |
9009 | wxIcon *result = 0 ; | |
9010 | bool temp1 = false ; | |
9011 | int val2 ; | |
9012 | int ecode2 = 0 ; | |
9013 | int val3 ; | |
9014 | int ecode3 = 0 ; | |
9015 | int val4 ; | |
9016 | int ecode4 = 0 ; | |
9017 | PyObject * obj0 = 0 ; | |
9018 | PyObject * obj1 = 0 ; | |
9019 | PyObject * obj2 = 0 ; | |
9020 | PyObject * obj3 = 0 ; | |
9021 | char * kwnames[] = { | |
9022 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
9023 | }; | |
9024 | ||
9025 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9026 | { | |
9027 | arg1 = wxString_in_helper(obj0); | |
9028 | if (arg1 == NULL) SWIG_fail; | |
9029 | temp1 = true; | |
9030 | } | |
9031 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9032 | if (!SWIG_IsOK(ecode2)) { | |
9033 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
9034 | } | |
9035 | arg2 = static_cast< wxBitmapType >(val2); | |
9036 | if (obj2) { | |
9037 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9038 | if (!SWIG_IsOK(ecode3)) { | |
9039 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'"); | |
9040 | } | |
9041 | arg3 = static_cast< int >(val3); | |
9042 | } | |
9043 | if (obj3) { | |
9044 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9045 | if (!SWIG_IsOK(ecode4)) { | |
9046 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'"); | |
9047 | } | |
9048 | arg4 = static_cast< int >(val4); | |
9049 | } | |
9050 | { | |
9051 | if (!wxPyCheckForApp()) SWIG_fail; | |
9052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9053 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4); | |
9054 | wxPyEndAllowThreads(__tstate); | |
9055 | if (PyErr_Occurred()) SWIG_fail; | |
9056 | } | |
9057 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 ); | |
9058 | { | |
9059 | if (temp1) | |
9060 | delete arg1; | |
9061 | } | |
9062 | return resultobj; | |
9063 | fail: | |
9064 | { | |
9065 | if (temp1) | |
9066 | delete arg1; | |
9067 | } | |
9068 | return NULL; | |
d14a1e28 RD |
9069 | } |
9070 | ||
9071 | ||
0085ce49 RD |
9072 | SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9073 | PyObject *resultobj = 0; | |
9074 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9075 | void *argp1 = 0 ; | |
9076 | int res1 = 0 ; | |
9077 | PyObject *swig_obj[1] ; | |
9078 | ||
9079 | if (!args) SWIG_fail; | |
9080 | swig_obj[0] = args; | |
9081 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 ); | |
9082 | if (!SWIG_IsOK(res1)) { | |
9083 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9084 | } | |
9085 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9086 | { | |
9087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9088 | delete arg1; | |
d14a1e28 | 9089 | |
0085ce49 RD |
9090 | wxPyEndAllowThreads(__tstate); |
9091 | if (PyErr_Occurred()) SWIG_fail; | |
9092 | } | |
9093 | resultobj = SWIG_Py_Void(); | |
9094 | return resultobj; | |
9095 | fail: | |
9096 | return NULL; | |
d14a1e28 RD |
9097 | } |
9098 | ||
9099 | ||
0085ce49 RD |
9100 | SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9101 | PyObject *resultobj = 0; | |
9102 | wxIcon *result = 0 ; | |
9103 | ||
9104 | if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail; | |
9105 | { | |
9106 | if (!wxPyCheckForApp()) SWIG_fail; | |
9107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9108 | result = (wxIcon *)new wxIcon(); | |
9109 | wxPyEndAllowThreads(__tstate); | |
9110 | if (PyErr_Occurred()) SWIG_fail; | |
9111 | } | |
9112 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9113 | return resultobj; | |
9114 | fail: | |
9115 | return NULL; | |
9116 | } | |
9117 | ||
9118 | ||
9119 | SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9120 | PyObject *resultobj = 0; | |
9121 | wxIconLocation *arg1 = 0 ; | |
9122 | wxIcon *result = 0 ; | |
9123 | void *argp1 = 0 ; | |
9124 | int res1 = 0 ; | |
9125 | PyObject * obj0 = 0 ; | |
9126 | char * kwnames[] = { | |
9127 | (char *) "loc", NULL | |
9128 | }; | |
9129 | ||
9130 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail; | |
9131 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0); | |
9132 | if (!SWIG_IsOK(res1)) { | |
9133 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
9134 | } | |
9135 | if (!argp1) { | |
9136 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
9137 | } | |
9138 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9139 | { | |
9140 | if (!wxPyCheckForApp()) SWIG_fail; | |
9141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9142 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
9143 | wxPyEndAllowThreads(__tstate); | |
9144 | if (PyErr_Occurred()) SWIG_fail; | |
9145 | } | |
9146 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9147 | return resultobj; | |
9148 | fail: | |
9149 | return NULL; | |
9150 | } | |
9151 | ||
9152 | ||
9153 | SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9154 | PyObject *resultobj = 0; | |
9155 | wxBitmap *arg1 = 0 ; | |
9156 | wxIcon *result = 0 ; | |
9157 | void *argp1 = 0 ; | |
9158 | int res1 = 0 ; | |
9159 | PyObject * obj0 = 0 ; | |
9160 | char * kwnames[] = { | |
9161 | (char *) "bmp", NULL | |
9162 | }; | |
9163 | ||
9164 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail; | |
9165 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9166 | if (!SWIG_IsOK(res1)) { | |
9167 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9168 | } | |
9169 | if (!argp1) { | |
9170 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9171 | } | |
9172 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
9173 | { | |
9174 | if (!wxPyCheckForApp()) SWIG_fail; | |
9175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9176 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
9177 | wxPyEndAllowThreads(__tstate); | |
9178 | if (PyErr_Occurred()) SWIG_fail; | |
9179 | } | |
9180 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9181 | return resultobj; | |
9182 | fail: | |
9183 | return NULL; | |
d14a1e28 RD |
9184 | } |
9185 | ||
9186 | ||
0085ce49 RD |
9187 | SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9188 | PyObject *resultobj = 0; | |
9189 | PyObject *arg1 = (PyObject *) 0 ; | |
9190 | wxIcon *result = 0 ; | |
9191 | PyObject * obj0 = 0 ; | |
9192 | char * kwnames[] = { | |
9193 | (char *) "listOfStrings", NULL | |
9194 | }; | |
9195 | ||
9196 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail; | |
9197 | arg1 = obj0; | |
9198 | { | |
9199 | if (!wxPyCheckForApp()) SWIG_fail; | |
9200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9201 | result = (wxIcon *)new_wxIcon(arg1); | |
9202 | wxPyEndAllowThreads(__tstate); | |
9203 | if (PyErr_Occurred()) SWIG_fail; | |
9204 | } | |
9205 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9206 | return resultobj; | |
9207 | fail: | |
9208 | return NULL; | |
9209 | } | |
9210 | ||
9211 | ||
9212 | SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9213 | PyObject *resultobj = 0; | |
9214 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9215 | wxString *arg2 = 0 ; | |
9216 | wxBitmapType arg3 ; | |
9217 | bool result; | |
9218 | void *argp1 = 0 ; | |
9219 | int res1 = 0 ; | |
9220 | bool temp2 = false ; | |
9221 | int val3 ; | |
9222 | int ecode3 = 0 ; | |
9223 | PyObject * obj0 = 0 ; | |
9224 | PyObject * obj1 = 0 ; | |
9225 | PyObject * obj2 = 0 ; | |
9226 | char * kwnames[] = { | |
9227 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9228 | }; | |
9229 | ||
9230 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9231 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9232 | if (!SWIG_IsOK(res1)) { | |
9233 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9234 | } | |
9235 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9236 | { | |
9237 | arg2 = wxString_in_helper(obj1); | |
9238 | if (arg2 == NULL) SWIG_fail; | |
9239 | temp2 = true; | |
9240 | } | |
9241 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9242 | if (!SWIG_IsOK(ecode3)) { | |
9243 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
9244 | } | |
9245 | arg3 = static_cast< wxBitmapType >(val3); | |
9246 | { | |
9247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9248 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); | |
9249 | wxPyEndAllowThreads(__tstate); | |
9250 | if (PyErr_Occurred()) SWIG_fail; | |
9251 | } | |
9252 | { | |
9253 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9254 | } | |
9255 | { | |
9256 | if (temp2) | |
9257 | delete arg2; | |
9258 | } | |
9259 | return resultobj; | |
9260 | fail: | |
9261 | { | |
9262 | if (temp2) | |
9263 | delete arg2; | |
9264 | } | |
9265 | return NULL; | |
d14a1e28 RD |
9266 | } |
9267 | ||
9268 | ||
b39fe951 | 9269 | SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
9270 | PyObject *resultobj = 0; |
9271 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9272 | bool result; | |
9273 | void *argp1 = 0 ; | |
9274 | int res1 = 0 ; | |
9275 | PyObject *swig_obj[1] ; | |
9276 | ||
9277 | if (!args) SWIG_fail; | |
9278 | swig_obj[0] = args; | |
9279 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9280 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 9281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'"); |
0085ce49 RD |
9282 | } |
9283 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9284 | { | |
9285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 9286 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
9287 | wxPyEndAllowThreads(__tstate); |
9288 | if (PyErr_Occurred()) SWIG_fail; | |
9289 | } | |
9290 | { | |
9291 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9292 | } | |
9293 | return resultobj; | |
9294 | fail: | |
9295 | return NULL; | |
d14a1e28 RD |
9296 | } |
9297 | ||
9298 | ||
0085ce49 RD |
9299 | SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9300 | PyObject *resultobj = 0; | |
9301 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9302 | int result; | |
9303 | void *argp1 = 0 ; | |
9304 | int res1 = 0 ; | |
9305 | PyObject *swig_obj[1] ; | |
9306 | ||
9307 | if (!args) SWIG_fail; | |
9308 | swig_obj[0] = args; | |
9309 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9310 | if (!SWIG_IsOK(res1)) { | |
9311 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9312 | } | |
9313 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9314 | { | |
9315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9316 | result = (int)(arg1)->GetWidth(); | |
9317 | wxPyEndAllowThreads(__tstate); | |
9318 | if (PyErr_Occurred()) SWIG_fail; | |
9319 | } | |
9320 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9321 | return resultobj; | |
9322 | fail: | |
9323 | return NULL; | |
d3b6e4ff RD |
9324 | } |
9325 | ||
9326 | ||
0085ce49 RD |
9327 | SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9328 | PyObject *resultobj = 0; | |
9329 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9330 | int result; | |
9331 | void *argp1 = 0 ; | |
9332 | int res1 = 0 ; | |
9333 | PyObject *swig_obj[1] ; | |
9334 | ||
9335 | if (!args) SWIG_fail; | |
9336 | swig_obj[0] = args; | |
9337 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9338 | if (!SWIG_IsOK(res1)) { | |
9339 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9340 | } | |
9341 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9342 | { | |
9343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9344 | result = (int)(arg1)->GetHeight(); | |
9345 | wxPyEndAllowThreads(__tstate); | |
9346 | if (PyErr_Occurred()) SWIG_fail; | |
9347 | } | |
9348 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9349 | return resultobj; | |
9350 | fail: | |
9351 | return NULL; | |
d14a1e28 RD |
9352 | } |
9353 | ||
9354 | ||
0085ce49 RD |
9355 | SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9356 | PyObject *resultobj = 0; | |
9357 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9358 | int result; | |
9359 | void *argp1 = 0 ; | |
9360 | int res1 = 0 ; | |
9361 | PyObject *swig_obj[1] ; | |
9362 | ||
9363 | if (!args) SWIG_fail; | |
9364 | swig_obj[0] = args; | |
9365 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9366 | if (!SWIG_IsOK(res1)) { | |
9367 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9368 | } | |
9369 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9370 | { | |
9371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9372 | result = (int)(arg1)->GetDepth(); | |
9373 | wxPyEndAllowThreads(__tstate); | |
9374 | if (PyErr_Occurred()) SWIG_fail; | |
9375 | } | |
9376 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9377 | return resultobj; | |
9378 | fail: | |
9379 | return NULL; | |
9380 | } | |
9381 | ||
9382 | ||
9383 | SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9384 | PyObject *resultobj = 0; | |
9385 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9386 | int arg2 ; | |
9387 | void *argp1 = 0 ; | |
9388 | int res1 = 0 ; | |
9389 | int val2 ; | |
9390 | int ecode2 = 0 ; | |
9391 | PyObject * obj0 = 0 ; | |
9392 | PyObject * obj1 = 0 ; | |
9393 | char * kwnames[] = { | |
9394 | (char *) "self",(char *) "w", NULL | |
9395 | }; | |
9396 | ||
9397 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
9398 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9399 | if (!SWIG_IsOK(res1)) { | |
9400 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9401 | } | |
9402 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9403 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9404 | if (!SWIG_IsOK(ecode2)) { | |
9405 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
9406 | } | |
9407 | arg2 = static_cast< int >(val2); | |
9408 | { | |
9409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9410 | (arg1)->SetWidth(arg2); | |
9411 | wxPyEndAllowThreads(__tstate); | |
9412 | if (PyErr_Occurred()) SWIG_fail; | |
9413 | } | |
9414 | resultobj = SWIG_Py_Void(); | |
9415 | return resultobj; | |
9416 | fail: | |
9417 | return NULL; | |
9418 | } | |
9419 | ||
9420 | ||
9421 | SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9422 | PyObject *resultobj = 0; | |
9423 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9424 | int arg2 ; | |
9425 | void *argp1 = 0 ; | |
9426 | int res1 = 0 ; | |
9427 | int val2 ; | |
9428 | int ecode2 = 0 ; | |
9429 | PyObject * obj0 = 0 ; | |
9430 | PyObject * obj1 = 0 ; | |
9431 | char * kwnames[] = { | |
9432 | (char *) "self",(char *) "h", NULL | |
9433 | }; | |
9434 | ||
9435 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
9436 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9437 | if (!SWIG_IsOK(res1)) { | |
9438 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9439 | } | |
9440 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9441 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9442 | if (!SWIG_IsOK(ecode2)) { | |
9443 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
9444 | } | |
9445 | arg2 = static_cast< int >(val2); | |
9446 | { | |
9447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9448 | (arg1)->SetHeight(arg2); | |
9449 | wxPyEndAllowThreads(__tstate); | |
9450 | if (PyErr_Occurred()) SWIG_fail; | |
9451 | } | |
9452 | resultobj = SWIG_Py_Void(); | |
9453 | return resultobj; | |
9454 | fail: | |
9455 | return NULL; | |
9456 | } | |
9457 | ||
9458 | ||
9459 | SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9460 | PyObject *resultobj = 0; | |
9461 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9462 | int arg2 ; | |
9463 | void *argp1 = 0 ; | |
9464 | int res1 = 0 ; | |
9465 | int val2 ; | |
9466 | int ecode2 = 0 ; | |
9467 | PyObject * obj0 = 0 ; | |
9468 | PyObject * obj1 = 0 ; | |
9469 | char * kwnames[] = { | |
9470 | (char *) "self",(char *) "d", NULL | |
9471 | }; | |
9472 | ||
9473 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
9474 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9475 | if (!SWIG_IsOK(res1)) { | |
9476 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9477 | } | |
9478 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9479 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9480 | if (!SWIG_IsOK(ecode2)) { | |
9481 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
9482 | } | |
9483 | arg2 = static_cast< int >(val2); | |
9484 | { | |
9485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9486 | (arg1)->SetDepth(arg2); | |
9487 | wxPyEndAllowThreads(__tstate); | |
9488 | if (PyErr_Occurred()) SWIG_fail; | |
9489 | } | |
9490 | resultobj = SWIG_Py_Void(); | |
9491 | return resultobj; | |
9492 | fail: | |
9493 | return NULL; | |
9494 | } | |
9495 | ||
9496 | ||
9497 | SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9498 | PyObject *resultobj = 0; | |
9499 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9500 | wxBitmap *arg2 = 0 ; | |
9501 | void *argp1 = 0 ; | |
9502 | int res1 = 0 ; | |
9503 | void *argp2 = 0 ; | |
9504 | int res2 = 0 ; | |
9505 | PyObject * obj0 = 0 ; | |
9506 | PyObject * obj1 = 0 ; | |
9507 | char * kwnames[] = { | |
9508 | (char *) "self",(char *) "bmp", NULL | |
9509 | }; | |
9510 | ||
9511 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
9512 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9513 | if (!SWIG_IsOK(res1)) { | |
9514 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9515 | } | |
9516 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9517 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9518 | if (!SWIG_IsOK(res2)) { | |
9519 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9520 | } | |
9521 | if (!argp2) { | |
9522 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9523 | } | |
9524 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
9525 | { | |
9526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9527 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
9528 | wxPyEndAllowThreads(__tstate); | |
9529 | if (PyErr_Occurred()) SWIG_fail; | |
9530 | } | |
9531 | resultobj = SWIG_Py_Void(); | |
9532 | return resultobj; | |
9533 | fail: | |
9534 | return NULL; | |
d14a1e28 RD |
9535 | } |
9536 | ||
9537 | ||
0085ce49 RD |
9538 | SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9539 | PyObject *obj; | |
9540 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9541 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj)); | |
9542 | return SWIG_Py_Void(); | |
d14a1e28 RD |
9543 | } |
9544 | ||
0085ce49 RD |
9545 | SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9546 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
9547 | } |
9548 | ||
0085ce49 RD |
9549 | SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9550 | PyObject *resultobj = 0; | |
9551 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
9552 | int arg2 = (int) 0 ; | |
9553 | wxIconLocation *result = 0 ; | |
9554 | bool temp1 = false ; | |
9555 | int val2 ; | |
9556 | int ecode2 = 0 ; | |
9557 | PyObject * obj0 = 0 ; | |
9558 | PyObject * obj1 = 0 ; | |
9559 | char * kwnames[] = { | |
9560 | (char *) "filename",(char *) "num", NULL | |
9561 | }; | |
9562 | ||
9563 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail; | |
9564 | if (obj0) { | |
b2df227b | 9565 | { |
0085ce49 RD |
9566 | arg1 = wxString_in_helper(obj0); |
9567 | if (arg1 == NULL) SWIG_fail; | |
9568 | temp1 = true; | |
b2df227b | 9569 | } |
0085ce49 RD |
9570 | } |
9571 | if (obj1) { | |
9572 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9573 | if (!SWIG_IsOK(ecode2)) { | |
9574 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'"); | |
9575 | } | |
9576 | arg2 = static_cast< int >(val2); | |
9577 | } | |
9578 | { | |
9579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9580 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
9581 | wxPyEndAllowThreads(__tstate); | |
9582 | if (PyErr_Occurred()) SWIG_fail; | |
9583 | } | |
9584 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 ); | |
9585 | { | |
9586 | if (temp1) | |
9587 | delete arg1; | |
9588 | } | |
9589 | return resultobj; | |
9590 | fail: | |
9591 | { | |
9592 | if (temp1) | |
9593 | delete arg1; | |
9594 | } | |
9595 | return NULL; | |
b2df227b RD |
9596 | } |
9597 | ||
9598 | ||
0085ce49 RD |
9599 | SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9600 | PyObject *resultobj = 0; | |
9601 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9602 | void *argp1 = 0 ; | |
9603 | int res1 = 0 ; | |
9604 | PyObject *swig_obj[1] ; | |
9605 | ||
9606 | if (!args) SWIG_fail; | |
9607 | swig_obj[0] = args; | |
9608 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 ); | |
9609 | if (!SWIG_IsOK(res1)) { | |
9610 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9611 | } | |
9612 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9613 | { | |
9614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9615 | delete arg1; | |
4276dc52 | 9616 | |
0085ce49 RD |
9617 | wxPyEndAllowThreads(__tstate); |
9618 | if (PyErr_Occurred()) SWIG_fail; | |
9619 | } | |
9620 | resultobj = SWIG_Py_Void(); | |
9621 | return resultobj; | |
9622 | fail: | |
9623 | return NULL; | |
4276dc52 RD |
9624 | } |
9625 | ||
9626 | ||
0085ce49 RD |
9627 | SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9628 | PyObject *resultobj = 0; | |
9629 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9630 | bool result; | |
9631 | void *argp1 = 0 ; | |
9632 | int res1 = 0 ; | |
9633 | PyObject *swig_obj[1] ; | |
9634 | ||
9635 | if (!args) SWIG_fail; | |
9636 | swig_obj[0] = args; | |
9637 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9638 | if (!SWIG_IsOK(res1)) { | |
9639 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
9640 | } | |
9641 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9642 | { | |
9643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9644 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
9645 | wxPyEndAllowThreads(__tstate); | |
9646 | if (PyErr_Occurred()) SWIG_fail; | |
9647 | } | |
9648 | { | |
9649 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9650 | } | |
9651 | return resultobj; | |
9652 | fail: | |
9653 | return NULL; | |
9654 | } | |
9655 | ||
9656 | ||
9657 | SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9658 | PyObject *resultobj = 0; | |
9659 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9660 | wxString *arg2 = 0 ; | |
9661 | void *argp1 = 0 ; | |
9662 | int res1 = 0 ; | |
9663 | bool temp2 = false ; | |
9664 | PyObject * obj0 = 0 ; | |
9665 | PyObject * obj1 = 0 ; | |
9666 | char * kwnames[] = { | |
9667 | (char *) "self",(char *) "filename", NULL | |
9668 | }; | |
9669 | ||
9670 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail; | |
9671 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9672 | if (!SWIG_IsOK(res1)) { | |
9673 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9674 | } | |
9675 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9676 | { | |
9677 | arg2 = wxString_in_helper(obj1); | |
9678 | if (arg2 == NULL) SWIG_fail; | |
9679 | temp2 = true; | |
9680 | } | |
9681 | { | |
9682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9683 | (arg1)->SetFileName((wxString const &)*arg2); | |
9684 | wxPyEndAllowThreads(__tstate); | |
9685 | if (PyErr_Occurred()) SWIG_fail; | |
9686 | } | |
9687 | resultobj = SWIG_Py_Void(); | |
9688 | { | |
9689 | if (temp2) | |
9690 | delete arg2; | |
9691 | } | |
9692 | return resultobj; | |
9693 | fail: | |
9694 | { | |
9695 | if (temp2) | |
9696 | delete arg2; | |
9697 | } | |
9698 | return NULL; | |
4276dc52 RD |
9699 | } |
9700 | ||
9701 | ||
0085ce49 RD |
9702 | SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9703 | PyObject *resultobj = 0; | |
9704 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9705 | wxString *result = 0 ; | |
9706 | void *argp1 = 0 ; | |
9707 | int res1 = 0 ; | |
9708 | PyObject *swig_obj[1] ; | |
9709 | ||
9710 | if (!args) SWIG_fail; | |
9711 | swig_obj[0] = args; | |
9712 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9713 | if (!SWIG_IsOK(res1)) { | |
9714 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
9715 | } | |
9716 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9717 | { | |
9718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9719 | { |
0085ce49 RD |
9720 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); |
9721 | result = (wxString *) &_result_ref; | |
093d3ff1 | 9722 | } |
0085ce49 RD |
9723 | wxPyEndAllowThreads(__tstate); |
9724 | if (PyErr_Occurred()) SWIG_fail; | |
9725 | } | |
9726 | { | |
9727 | #if wxUSE_UNICODE | |
9728 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9729 | #else | |
9730 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9731 | #endif | |
9732 | } | |
9733 | return resultobj; | |
9734 | fail: | |
9735 | return NULL; | |
9736 | } | |
9737 | ||
9738 | ||
9739 | SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9740 | PyObject *resultobj = 0; | |
9741 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9742 | int arg2 ; | |
9743 | void *argp1 = 0 ; | |
9744 | int res1 = 0 ; | |
9745 | int val2 ; | |
9746 | int ecode2 = 0 ; | |
9747 | PyObject * obj0 = 0 ; | |
9748 | PyObject * obj1 = 0 ; | |
9749 | char * kwnames[] = { | |
9750 | (char *) "self",(char *) "num", NULL | |
9751 | }; | |
9752 | ||
9753 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
9754 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9755 | if (!SWIG_IsOK(res1)) { | |
9756 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9757 | } | |
9758 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9759 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9760 | if (!SWIG_IsOK(ecode2)) { | |
9761 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'"); | |
9762 | } | |
9763 | arg2 = static_cast< int >(val2); | |
9764 | { | |
9765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9766 | wxIconLocation_SetIndex(arg1,arg2); | |
9767 | wxPyEndAllowThreads(__tstate); | |
9768 | if (PyErr_Occurred()) SWIG_fail; | |
9769 | } | |
9770 | resultobj = SWIG_Py_Void(); | |
9771 | return resultobj; | |
9772 | fail: | |
9773 | return NULL; | |
d14a1e28 RD |
9774 | } |
9775 | ||
9776 | ||
0085ce49 RD |
9777 | SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9778 | PyObject *resultobj = 0; | |
9779 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9780 | int result; | |
9781 | void *argp1 = 0 ; | |
9782 | int res1 = 0 ; | |
9783 | PyObject *swig_obj[1] ; | |
9784 | ||
9785 | if (!args) SWIG_fail; | |
9786 | swig_obj[0] = args; | |
9787 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9788 | if (!SWIG_IsOK(res1)) { | |
9789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9790 | } | |
9791 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9792 | { | |
9793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9794 | result = (int)wxIconLocation_GetIndex(arg1); | |
9795 | wxPyEndAllowThreads(__tstate); | |
9796 | if (PyErr_Occurred()) SWIG_fail; | |
9797 | } | |
9798 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9799 | return resultobj; | |
9800 | fail: | |
9801 | return NULL; | |
d14a1e28 RD |
9802 | } |
9803 | ||
9804 | ||
0085ce49 RD |
9805 | SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9806 | PyObject *obj; | |
9807 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9808 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj)); | |
9809 | return SWIG_Py_Void(); | |
d14a1e28 RD |
9810 | } |
9811 | ||
0085ce49 RD |
9812 | SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9813 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
9814 | } |
9815 | ||
0085ce49 RD |
9816 | SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9817 | PyObject *resultobj = 0; | |
9818 | wxIconBundle *result = 0 ; | |
9819 | ||
9820 | if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail; | |
9821 | { | |
9822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9823 | result = (wxIconBundle *)new wxIconBundle(); | |
9824 | wxPyEndAllowThreads(__tstate); | |
9825 | if (PyErr_Occurred()) SWIG_fail; | |
9826 | } | |
9827 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 ); | |
9828 | return resultobj; | |
9829 | fail: | |
9830 | return NULL; | |
9831 | } | |
9832 | ||
9833 | ||
9834 | SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9835 | PyObject *resultobj = 0; | |
9836 | wxString *arg1 = 0 ; | |
9837 | long arg2 ; | |
9838 | wxIconBundle *result = 0 ; | |
9839 | bool temp1 = false ; | |
9840 | long val2 ; | |
9841 | int ecode2 = 0 ; | |
9842 | PyObject * obj0 = 0 ; | |
9843 | PyObject * obj1 = 0 ; | |
9844 | char * kwnames[] = { | |
9845 | (char *) "file",(char *) "type", NULL | |
9846 | }; | |
9847 | ||
9848 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
9849 | { | |
9850 | arg1 = wxString_in_helper(obj0); | |
9851 | if (arg1 == NULL) SWIG_fail; | |
9852 | temp1 = true; | |
9853 | } | |
9854 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
9855 | if (!SWIG_IsOK(ecode2)) { | |
9856 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'"); | |
9857 | } | |
9858 | arg2 = static_cast< long >(val2); | |
9859 | { | |
9860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9861 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
9862 | wxPyEndAllowThreads(__tstate); | |
9863 | if (PyErr_Occurred()) SWIG_fail; | |
9864 | } | |
9865 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
9866 | { | |
9867 | if (temp1) | |
9868 | delete arg1; | |
9869 | } | |
9870 | return resultobj; | |
9871 | fail: | |
9872 | { | |
9873 | if (temp1) | |
9874 | delete arg1; | |
9875 | } | |
9876 | return NULL; | |
d14a1e28 RD |
9877 | } |
9878 | ||
9879 | ||
0085ce49 RD |
9880 | SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9881 | PyObject *resultobj = 0; | |
9882 | wxIcon *arg1 = 0 ; | |
9883 | wxIconBundle *result = 0 ; | |
9884 | void *argp1 = 0 ; | |
9885 | int res1 = 0 ; | |
9886 | PyObject * obj0 = 0 ; | |
9887 | char * kwnames[] = { | |
9888 | (char *) "icon", NULL | |
9889 | }; | |
9890 | ||
9891 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail; | |
9892 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
9893 | if (!SWIG_IsOK(res1)) { | |
9894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
9895 | } | |
9896 | if (!argp1) { | |
9897 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
9898 | } | |
9899 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9900 | { | |
9901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9902 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
9903 | wxPyEndAllowThreads(__tstate); | |
9904 | if (PyErr_Occurred()) SWIG_fail; | |
9905 | } | |
9906 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
9907 | return resultobj; | |
9908 | fail: | |
9909 | return NULL; | |
d14a1e28 RD |
9910 | } |
9911 | ||
9912 | ||
0085ce49 RD |
9913 | SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9914 | PyObject *resultobj = 0; | |
9915 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
9916 | void *argp1 = 0 ; | |
9917 | int res1 = 0 ; | |
9918 | PyObject *swig_obj[1] ; | |
9919 | ||
9920 | if (!args) SWIG_fail; | |
9921 | swig_obj[0] = args; | |
9922 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 ); | |
9923 | if (!SWIG_IsOK(res1)) { | |
9924 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
9925 | } | |
9926 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
9927 | { | |
9928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9929 | delete arg1; | |
d14a1e28 | 9930 | |
0085ce49 RD |
9931 | wxPyEndAllowThreads(__tstate); |
9932 | if (PyErr_Occurred()) SWIG_fail; | |
9933 | } | |
9934 | resultobj = SWIG_Py_Void(); | |
9935 | return resultobj; | |
9936 | fail: | |
9937 | return NULL; | |
9938 | } | |
9939 | ||
9940 | ||
9941 | SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9942 | PyObject *resultobj = 0; | |
9943 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
9944 | wxIcon *arg2 = 0 ; | |
9945 | void *argp1 = 0 ; | |
9946 | int res1 = 0 ; | |
9947 | void *argp2 = 0 ; | |
9948 | int res2 = 0 ; | |
9949 | PyObject * obj0 = 0 ; | |
9950 | PyObject * obj1 = 0 ; | |
9951 | char * kwnames[] = { | |
9952 | (char *) "self",(char *) "icon", NULL | |
9953 | }; | |
9954 | ||
9955 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
9956 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
9957 | if (!SWIG_IsOK(res1)) { | |
9958 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
9959 | } | |
9960 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
9961 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
9962 | if (!SWIG_IsOK(res2)) { | |
9963 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
9964 | } | |
9965 | if (!argp2) { | |
9966 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
9967 | } | |
9968 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
9969 | { | |
9970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9971 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
9972 | wxPyEndAllowThreads(__tstate); | |
9973 | if (PyErr_Occurred()) SWIG_fail; | |
9974 | } | |
9975 | resultobj = SWIG_Py_Void(); | |
9976 | return resultobj; | |
9977 | fail: | |
9978 | return NULL; | |
9979 | } | |
9980 | ||
9981 | ||
9982 | SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9983 | PyObject *resultobj = 0; | |
9984 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
9985 | wxString *arg2 = 0 ; | |
9986 | long arg3 ; | |
9987 | void *argp1 = 0 ; | |
9988 | int res1 = 0 ; | |
9989 | bool temp2 = false ; | |
9990 | long val3 ; | |
9991 | int ecode3 = 0 ; | |
9992 | PyObject * obj0 = 0 ; | |
9993 | PyObject * obj1 = 0 ; | |
9994 | PyObject * obj2 = 0 ; | |
9995 | char * kwnames[] = { | |
9996 | (char *) "self",(char *) "file",(char *) "type", NULL | |
9997 | }; | |
9998 | ||
9999 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10000 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10001 | if (!SWIG_IsOK(res1)) { | |
10002 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
10003 | } | |
10004 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10005 | { | |
10006 | arg2 = wxString_in_helper(obj1); | |
10007 | if (arg2 == NULL) SWIG_fail; | |
10008 | temp2 = true; | |
10009 | } | |
10010 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
10011 | if (!SWIG_IsOK(ecode3)) { | |
10012 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'"); | |
10013 | } | |
10014 | arg3 = static_cast< long >(val3); | |
10015 | { | |
10016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10017 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
10018 | wxPyEndAllowThreads(__tstate); | |
10019 | if (PyErr_Occurred()) SWIG_fail; | |
10020 | } | |
10021 | resultobj = SWIG_Py_Void(); | |
10022 | { | |
10023 | if (temp2) | |
10024 | delete arg2; | |
10025 | } | |
10026 | return resultobj; | |
10027 | fail: | |
10028 | { | |
10029 | if (temp2) | |
10030 | delete arg2; | |
10031 | } | |
10032 | return NULL; | |
10033 | } | |
10034 | ||
10035 | ||
10036 | SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10037 | PyObject *resultobj = 0; | |
10038 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10039 | wxSize *arg2 = 0 ; | |
10040 | wxIcon *result = 0 ; | |
10041 | void *argp1 = 0 ; | |
10042 | int res1 = 0 ; | |
10043 | wxSize temp2 ; | |
10044 | PyObject * obj0 = 0 ; | |
10045 | PyObject * obj1 = 0 ; | |
10046 | char * kwnames[] = { | |
10047 | (char *) "self",(char *) "size", NULL | |
10048 | }; | |
10049 | ||
10050 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
10051 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10052 | if (!SWIG_IsOK(res1)) { | |
10053 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'"); | |
10054 | } | |
10055 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10056 | { | |
10057 | arg2 = &temp2; | |
10058 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
10059 | } | |
10060 | { | |
10061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 10062 | { |
0085ce49 RD |
10063 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); |
10064 | result = (wxIcon *) &_result_ref; | |
d14a1e28 | 10065 | } |
0085ce49 RD |
10066 | wxPyEndAllowThreads(__tstate); |
10067 | if (PyErr_Occurred()) SWIG_fail; | |
10068 | } | |
10069 | { | |
10070 | wxIcon* resultptr = new wxIcon(*result); | |
10071 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
10072 | } | |
10073 | return resultobj; | |
10074 | fail: | |
10075 | return NULL; | |
10076 | } | |
10077 | ||
10078 | ||
10079 | SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10080 | PyObject *obj; | |
10081 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10082 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj)); | |
10083 | return SWIG_Py_Void(); | |
10084 | } | |
10085 | ||
10086 | SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10087 | return SWIG_Python_InitShadowInstance(args); | |
10088 | } | |
10089 | ||
10090 | SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10091 | PyObject *resultobj = 0; | |
10092 | wxString *arg1 = 0 ; | |
10093 | long arg2 ; | |
10094 | int arg3 = (int) 0 ; | |
10095 | int arg4 = (int) 0 ; | |
10096 | wxCursor *result = 0 ; | |
10097 | bool temp1 = false ; | |
10098 | long val2 ; | |
10099 | int ecode2 = 0 ; | |
10100 | int val3 ; | |
10101 | int ecode3 = 0 ; | |
10102 | int val4 ; | |
10103 | int ecode4 = 0 ; | |
10104 | PyObject * obj0 = 0 ; | |
10105 | PyObject * obj1 = 0 ; | |
10106 | PyObject * obj2 = 0 ; | |
10107 | PyObject * obj3 = 0 ; | |
10108 | char * kwnames[] = { | |
10109 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
10110 | }; | |
10111 | ||
10112 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10113 | { | |
10114 | arg1 = wxString_in_helper(obj0); | |
10115 | if (arg1 == NULL) SWIG_fail; | |
10116 | temp1 = true; | |
10117 | } | |
10118 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10119 | if (!SWIG_IsOK(ecode2)) { | |
10120 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'"); | |
10121 | } | |
10122 | arg2 = static_cast< long >(val2); | |
10123 | if (obj2) { | |
10124 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10125 | if (!SWIG_IsOK(ecode3)) { | |
10126 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'"); | |
10127 | } | |
10128 | arg3 = static_cast< int >(val3); | |
10129 | } | |
10130 | if (obj3) { | |
10131 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10132 | if (!SWIG_IsOK(ecode4)) { | |
10133 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'"); | |
10134 | } | |
10135 | arg4 = static_cast< int >(val4); | |
10136 | } | |
10137 | { | |
10138 | if (!wxPyCheckForApp()) SWIG_fail; | |
10139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10140 | result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4); | |
10141 | wxPyEndAllowThreads(__tstate); | |
10142 | if (PyErr_Occurred()) SWIG_fail; | |
10143 | } | |
10144 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 ); | |
10145 | { | |
10146 | if (temp1) | |
10147 | delete arg1; | |
10148 | } | |
10149 | return resultobj; | |
10150 | fail: | |
10151 | { | |
10152 | if (temp1) | |
10153 | delete arg1; | |
10154 | } | |
10155 | return NULL; | |
d14a1e28 RD |
10156 | } |
10157 | ||
10158 | ||
0085ce49 RD |
10159 | SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10160 | PyObject *resultobj = 0; | |
10161 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10162 | void *argp1 = 0 ; | |
10163 | int res1 = 0 ; | |
10164 | PyObject *swig_obj[1] ; | |
10165 | ||
10166 | if (!args) SWIG_fail; | |
10167 | swig_obj[0] = args; | |
10168 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 ); | |
10169 | if (!SWIG_IsOK(res1)) { | |
10170 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10171 | } | |
10172 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10173 | { | |
10174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10175 | delete arg1; | |
093d3ff1 | 10176 | |
0085ce49 RD |
10177 | wxPyEndAllowThreads(__tstate); |
10178 | if (PyErr_Occurred()) SWIG_fail; | |
10179 | } | |
10180 | resultobj = SWIG_Py_Void(); | |
10181 | return resultobj; | |
10182 | fail: | |
10183 | return NULL; | |
10184 | } | |
10185 | ||
10186 | ||
10187 | SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10188 | PyObject *resultobj = 0; | |
10189 | int arg1 ; | |
10190 | wxCursor *result = 0 ; | |
10191 | int val1 ; | |
10192 | int ecode1 = 0 ; | |
10193 | PyObject * obj0 = 0 ; | |
10194 | char * kwnames[] = { | |
10195 | (char *) "id", NULL | |
10196 | }; | |
10197 | ||
10198 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail; | |
10199 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10200 | if (!SWIG_IsOK(ecode1)) { | |
10201 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'"); | |
10202 | } | |
10203 | arg1 = static_cast< int >(val1); | |
10204 | { | |
10205 | if (!wxPyCheckForApp()) SWIG_fail; | |
10206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10207 | result = (wxCursor *)new wxCursor(arg1); | |
10208 | wxPyEndAllowThreads(__tstate); | |
10209 | if (PyErr_Occurred()) SWIG_fail; | |
10210 | } | |
10211 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
10212 | return resultobj; | |
10213 | fail: | |
10214 | return NULL; | |
10215 | } | |
10216 | ||
10217 | ||
10218 | SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10219 | PyObject *resultobj = 0; | |
10220 | wxImage *arg1 = 0 ; | |
10221 | wxCursor *result = 0 ; | |
10222 | void *argp1 = 0 ; | |
10223 | int res1 = 0 ; | |
10224 | PyObject * obj0 = 0 ; | |
10225 | char * kwnames[] = { | |
10226 | (char *) "image", NULL | |
10227 | }; | |
10228 | ||
10229 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail; | |
10230 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
10231 | if (!SWIG_IsOK(res1)) { | |
10232 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
10233 | } | |
10234 | if (!argp1) { | |
10235 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
10236 | } | |
10237 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
10238 | { | |
10239 | if (!wxPyCheckForApp()) SWIG_fail; | |
10240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10241 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
10242 | wxPyEndAllowThreads(__tstate); | |
10243 | if (PyErr_Occurred()) SWIG_fail; | |
10244 | } | |
10245 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
10246 | return resultobj; | |
10247 | fail: | |
10248 | return NULL; | |
093d3ff1 RD |
10249 | } |
10250 | ||
10251 | ||
b39fe951 | 10252 | SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
10253 | PyObject *resultobj = 0; |
10254 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10255 | bool result; | |
10256 | void *argp1 = 0 ; | |
10257 | int res1 = 0 ; | |
10258 | PyObject *swig_obj[1] ; | |
10259 | ||
10260 | if (!args) SWIG_fail; | |
10261 | swig_obj[0] = args; | |
10262 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10263 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 10264 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'"); |
0085ce49 RD |
10265 | } |
10266 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10267 | { | |
10268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 10269 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
10270 | wxPyEndAllowThreads(__tstate); |
10271 | if (PyErr_Occurred()) SWIG_fail; | |
10272 | } | |
10273 | { | |
10274 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10275 | } | |
10276 | return resultobj; | |
10277 | fail: | |
10278 | return NULL; | |
10279 | } | |
10280 | ||
10281 | ||
10282 | SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10283 | PyObject *obj; | |
10284 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10285 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj)); | |
10286 | return SWIG_Py_Void(); | |
10287 | } | |
10288 | ||
10289 | SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10290 | return SWIG_Python_InitShadowInstance(args); | |
10291 | } | |
10292 | ||
10293 | SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10294 | PyObject *resultobj = 0; | |
10295 | int arg1 = (int) 0 ; | |
10296 | int arg2 = (int) 0 ; | |
10297 | int arg3 = (int) 0 ; | |
10298 | int arg4 = (int) 0 ; | |
10299 | wxRegion *result = 0 ; | |
10300 | int val1 ; | |
10301 | int ecode1 = 0 ; | |
10302 | int val2 ; | |
10303 | int ecode2 = 0 ; | |
10304 | int val3 ; | |
10305 | int ecode3 = 0 ; | |
10306 | int val4 ; | |
10307 | int ecode4 = 0 ; | |
10308 | PyObject * obj0 = 0 ; | |
10309 | PyObject * obj1 = 0 ; | |
10310 | PyObject * obj2 = 0 ; | |
10311 | PyObject * obj3 = 0 ; | |
10312 | char * kwnames[] = { | |
10313 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10314 | }; | |
10315 | ||
10316 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10317 | if (obj0) { | |
10318 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10319 | if (!SWIG_IsOK(ecode1)) { | |
10320 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'"); | |
10321 | } | |
10322 | arg1 = static_cast< int >(val1); | |
10323 | } | |
10324 | if (obj1) { | |
10325 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10326 | if (!SWIG_IsOK(ecode2)) { | |
10327 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'"); | |
10328 | } | |
10329 | arg2 = static_cast< int >(val2); | |
10330 | } | |
10331 | if (obj2) { | |
10332 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10333 | if (!SWIG_IsOK(ecode3)) { | |
10334 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'"); | |
10335 | } | |
10336 | arg3 = static_cast< int >(val3); | |
10337 | } | |
10338 | if (obj3) { | |
10339 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10340 | if (!SWIG_IsOK(ecode4)) { | |
10341 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'"); | |
10342 | } | |
10343 | arg4 = static_cast< int >(val4); | |
10344 | } | |
10345 | { | |
10346 | if (!wxPyCheckForApp()) SWIG_fail; | |
10347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10348 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
10349 | wxPyEndAllowThreads(__tstate); | |
10350 | if (PyErr_Occurred()) SWIG_fail; | |
10351 | } | |
10352 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 ); | |
10353 | return resultobj; | |
10354 | fail: | |
10355 | return NULL; | |
10356 | } | |
10357 | ||
10358 | ||
10359 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10360 | PyObject *resultobj = 0; | |
10361 | wxBitmap *arg1 = 0 ; | |
10362 | wxRegion *result = 0 ; | |
10363 | void *argp1 = 0 ; | |
10364 | int res1 = 0 ; | |
10365 | PyObject * obj0 = 0 ; | |
10366 | char * kwnames[] = { | |
10367 | (char *) "bmp", NULL | |
10368 | }; | |
10369 | ||
10370 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail; | |
10371 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
10372 | if (!SWIG_IsOK(res1)) { | |
10373 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10374 | } | |
10375 | if (!argp1) { | |
10376 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10377 | } | |
10378 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
10379 | { | |
10380 | if (!wxPyCheckForApp()) SWIG_fail; | |
10381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10382 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1); | |
10383 | wxPyEndAllowThreads(__tstate); | |
10384 | if (PyErr_Occurred()) SWIG_fail; | |
10385 | } | |
10386 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
10387 | return resultobj; | |
10388 | fail: | |
10389 | return NULL; | |
10390 | } | |
10391 | ||
10392 | ||
10393 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10394 | PyObject *resultobj = 0; | |
10395 | wxBitmap *arg1 = 0 ; | |
10396 | wxColour *arg2 = 0 ; | |
10397 | int arg3 = (int) 0 ; | |
10398 | wxRegion *result = 0 ; | |
10399 | void *argp1 = 0 ; | |
10400 | int res1 = 0 ; | |
10401 | wxColour temp2 ; | |
10402 | int val3 ; | |
10403 | int ecode3 = 0 ; | |
10404 | PyObject * obj0 = 0 ; | |
10405 | PyObject * obj1 = 0 ; | |
10406 | PyObject * obj2 = 0 ; | |
10407 | char * kwnames[] = { | |
10408 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
10409 | }; | |
10410 | ||
10411 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10412 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
10413 | if (!SWIG_IsOK(res1)) { | |
10414 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10415 | } | |
10416 | if (!argp1) { | |
10417 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10418 | } | |
10419 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
10420 | { | |
10421 | arg2 = &temp2; | |
10422 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10423 | } | |
10424 | if (obj2) { | |
10425 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10426 | if (!SWIG_IsOK(ecode3)) { | |
10427 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'"); | |
10428 | } | |
10429 | arg3 = static_cast< int >(val3); | |
10430 | } | |
10431 | { | |
10432 | if (!wxPyCheckForApp()) SWIG_fail; | |
10433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10434 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
10435 | wxPyEndAllowThreads(__tstate); | |
10436 | if (PyErr_Occurred()) SWIG_fail; | |
10437 | } | |
10438 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
10439 | return resultobj; | |
10440 | fail: | |
10441 | return NULL; | |
10442 | } | |
10443 | ||
10444 | ||
10445 | SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10446 | PyObject *resultobj = 0; | |
10447 | int arg1 ; | |
10448 | wxPoint *arg2 = (wxPoint *) 0 ; | |
10449 | int arg3 = (int) wxWINDING_RULE ; | |
10450 | wxRegion *result = 0 ; | |
10451 | int val3 ; | |
10452 | int ecode3 = 0 ; | |
10453 | PyObject * obj0 = 0 ; | |
10454 | PyObject * obj1 = 0 ; | |
10455 | char * kwnames[] = { | |
10456 | (char *) "points",(char *) "fillStyle", NULL | |
10457 | }; | |
10458 | ||
10459 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail; | |
10460 | { | |
10461 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
10462 | if (arg2 == NULL) SWIG_fail; | |
10463 | } | |
10464 | if (obj1) { | |
10465 | ecode3 = SWIG_AsVal_int(obj1, &val3); | |
10466 | if (!SWIG_IsOK(ecode3)) { | |
10467 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'"); | |
10468 | } | |
10469 | arg3 = static_cast< int >(val3); | |
10470 | } | |
10471 | { | |
10472 | if (!wxPyCheckForApp()) SWIG_fail; | |
10473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10474 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
10475 | wxPyEndAllowThreads(__tstate); | |
10476 | if (PyErr_Occurred()) SWIG_fail; | |
10477 | } | |
10478 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
10479 | { | |
10480 | if (arg2) delete [] arg2; | |
10481 | } | |
10482 | return resultobj; | |
10483 | fail: | |
10484 | { | |
10485 | if (arg2) delete [] arg2; | |
10486 | } | |
10487 | return NULL; | |
d14a1e28 RD |
10488 | } |
10489 | ||
10490 | ||
0085ce49 RD |
10491 | SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10492 | PyObject *resultobj = 0; | |
10493 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10494 | void *argp1 = 0 ; | |
10495 | int res1 = 0 ; | |
10496 | PyObject *swig_obj[1] ; | |
10497 | ||
10498 | if (!args) SWIG_fail; | |
10499 | swig_obj[0] = args; | |
10500 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 ); | |
10501 | if (!SWIG_IsOK(res1)) { | |
10502 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10503 | } | |
10504 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10505 | { | |
10506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10507 | delete arg1; | |
d14a1e28 | 10508 | |
0085ce49 RD |
10509 | wxPyEndAllowThreads(__tstate); |
10510 | if (PyErr_Occurred()) SWIG_fail; | |
10511 | } | |
10512 | resultobj = SWIG_Py_Void(); | |
10513 | return resultobj; | |
10514 | fail: | |
10515 | return NULL; | |
d14a1e28 RD |
10516 | } |
10517 | ||
10518 | ||
0085ce49 RD |
10519 | SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10520 | PyObject *resultobj = 0; | |
10521 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10522 | void *argp1 = 0 ; | |
10523 | int res1 = 0 ; | |
10524 | PyObject *swig_obj[1] ; | |
10525 | ||
10526 | if (!args) SWIG_fail; | |
10527 | swig_obj[0] = args; | |
10528 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10529 | if (!SWIG_IsOK(res1)) { | |
10530 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10531 | } | |
10532 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10533 | { | |
10534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10535 | (arg1)->Clear(); | |
10536 | wxPyEndAllowThreads(__tstate); | |
10537 | if (PyErr_Occurred()) SWIG_fail; | |
10538 | } | |
10539 | resultobj = SWIG_Py_Void(); | |
10540 | return resultobj; | |
10541 | fail: | |
10542 | return NULL; | |
10543 | } | |
10544 | ||
10545 | ||
10546 | SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10547 | PyObject *resultobj = 0; | |
10548 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10549 | int arg2 ; | |
10550 | int arg3 ; | |
10551 | bool result; | |
10552 | void *argp1 = 0 ; | |
10553 | int res1 = 0 ; | |
10554 | int val2 ; | |
10555 | int ecode2 = 0 ; | |
10556 | int val3 ; | |
10557 | int ecode3 = 0 ; | |
10558 | PyObject * obj0 = 0 ; | |
10559 | PyObject * obj1 = 0 ; | |
10560 | PyObject * obj2 = 0 ; | |
10561 | char * kwnames[] = { | |
10562 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10563 | }; | |
10564 | ||
10565 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10566 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10567 | if (!SWIG_IsOK(res1)) { | |
10568 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10569 | } | |
10570 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10571 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10572 | if (!SWIG_IsOK(ecode2)) { | |
10573 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'"); | |
10574 | } | |
10575 | arg2 = static_cast< int >(val2); | |
10576 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10577 | if (!SWIG_IsOK(ecode3)) { | |
10578 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'"); | |
10579 | } | |
10580 | arg3 = static_cast< int >(val3); | |
10581 | { | |
10582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10583 | result = (bool)(arg1)->Offset(arg2,arg3); | |
10584 | wxPyEndAllowThreads(__tstate); | |
10585 | if (PyErr_Occurred()) SWIG_fail; | |
10586 | } | |
10587 | { | |
10588 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10589 | } | |
10590 | return resultobj; | |
10591 | fail: | |
10592 | return NULL; | |
10593 | } | |
10594 | ||
10595 | ||
10596 | SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10597 | PyObject *resultobj = 0; | |
10598 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10599 | int arg2 ; | |
10600 | int arg3 ; | |
10601 | wxRegionContain result; | |
10602 | void *argp1 = 0 ; | |
10603 | int res1 = 0 ; | |
10604 | int val2 ; | |
10605 | int ecode2 = 0 ; | |
10606 | int val3 ; | |
10607 | int ecode3 = 0 ; | |
10608 | PyObject * obj0 = 0 ; | |
10609 | PyObject * obj1 = 0 ; | |
10610 | PyObject * obj2 = 0 ; | |
10611 | char * kwnames[] = { | |
10612 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10613 | }; | |
10614 | ||
10615 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10616 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10617 | if (!SWIG_IsOK(res1)) { | |
10618 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10619 | } | |
10620 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10621 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10622 | if (!SWIG_IsOK(ecode2)) { | |
10623 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'"); | |
10624 | } | |
10625 | arg2 = static_cast< int >(val2); | |
10626 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10627 | if (!SWIG_IsOK(ecode3)) { | |
10628 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'"); | |
10629 | } | |
10630 | arg3 = static_cast< int >(val3); | |
10631 | { | |
10632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10633 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3); | |
10634 | wxPyEndAllowThreads(__tstate); | |
10635 | if (PyErr_Occurred()) SWIG_fail; | |
10636 | } | |
10637 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10638 | return resultobj; | |
10639 | fail: | |
10640 | return NULL; | |
10641 | } | |
10642 | ||
10643 | ||
10644 | SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10645 | PyObject *resultobj = 0; | |
10646 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10647 | wxPoint *arg2 = 0 ; | |
10648 | wxRegionContain result; | |
10649 | void *argp1 = 0 ; | |
10650 | int res1 = 0 ; | |
10651 | wxPoint temp2 ; | |
10652 | PyObject * obj0 = 0 ; | |
10653 | PyObject * obj1 = 0 ; | |
10654 | char * kwnames[] = { | |
10655 | (char *) "self",(char *) "pt", NULL | |
10656 | }; | |
10657 | ||
10658 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
10659 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10660 | if (!SWIG_IsOK(res1)) { | |
10661 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10662 | } | |
10663 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10664 | { | |
10665 | arg2 = &temp2; | |
10666 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10667 | } | |
10668 | { | |
10669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10670 | result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2); | |
10671 | wxPyEndAllowThreads(__tstate); | |
10672 | if (PyErr_Occurred()) SWIG_fail; | |
10673 | } | |
10674 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10675 | return resultobj; | |
10676 | fail: | |
10677 | return NULL; | |
10678 | } | |
10679 | ||
10680 | ||
10681 | SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10682 | PyObject *resultobj = 0; | |
10683 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10684 | wxRect *arg2 = 0 ; | |
10685 | wxRegionContain result; | |
10686 | void *argp1 = 0 ; | |
10687 | int res1 = 0 ; | |
10688 | wxRect temp2 ; | |
10689 | PyObject * obj0 = 0 ; | |
10690 | PyObject * obj1 = 0 ; | |
10691 | char * kwnames[] = { | |
10692 | (char *) "self",(char *) "rect", NULL | |
10693 | }; | |
10694 | ||
10695 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
10696 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10697 | if (!SWIG_IsOK(res1)) { | |
10698 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10699 | } | |
10700 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10701 | { | |
10702 | arg2 = &temp2; | |
10703 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10704 | } | |
10705 | { | |
10706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10707 | result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2); | |
10708 | wxPyEndAllowThreads(__tstate); | |
10709 | if (PyErr_Occurred()) SWIG_fail; | |
10710 | } | |
10711 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10712 | return resultobj; | |
10713 | fail: | |
10714 | return NULL; | |
10715 | } | |
10716 | ||
10717 | ||
10718 | SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10719 | PyObject *resultobj = 0; | |
10720 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10721 | int arg2 ; | |
10722 | int arg3 ; | |
10723 | int arg4 ; | |
10724 | int arg5 ; | |
10725 | wxRegionContain result; | |
10726 | void *argp1 = 0 ; | |
10727 | int res1 = 0 ; | |
10728 | int val2 ; | |
10729 | int ecode2 = 0 ; | |
10730 | int val3 ; | |
10731 | int ecode3 = 0 ; | |
10732 | int val4 ; | |
10733 | int ecode4 = 0 ; | |
10734 | int val5 ; | |
10735 | int ecode5 = 0 ; | |
10736 | PyObject * obj0 = 0 ; | |
10737 | PyObject * obj1 = 0 ; | |
10738 | PyObject * obj2 = 0 ; | |
10739 | PyObject * obj3 = 0 ; | |
10740 | PyObject * obj4 = 0 ; | |
10741 | char * kwnames[] = { | |
10742 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
10743 | }; | |
10744 | ||
10745 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
10746 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10747 | if (!SWIG_IsOK(res1)) { | |
10748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10749 | } | |
10750 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10751 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10752 | if (!SWIG_IsOK(ecode2)) { | |
10753 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'"); | |
10754 | } | |
10755 | arg2 = static_cast< int >(val2); | |
10756 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10757 | if (!SWIG_IsOK(ecode3)) { | |
10758 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'"); | |
10759 | } | |
10760 | arg3 = static_cast< int >(val3); | |
10761 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10762 | if (!SWIG_IsOK(ecode4)) { | |
10763 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'"); | |
10764 | } | |
10765 | arg4 = static_cast< int >(val4); | |
10766 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
10767 | if (!SWIG_IsOK(ecode5)) { | |
10768 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'"); | |
10769 | } | |
10770 | arg5 = static_cast< int >(val5); | |
10771 | { | |
10772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10773 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
10774 | wxPyEndAllowThreads(__tstate); | |
10775 | if (PyErr_Occurred()) SWIG_fail; | |
10776 | } | |
10777 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10778 | return resultobj; | |
10779 | fail: | |
10780 | return NULL; | |
d14a1e28 RD |
10781 | } |
10782 | ||
10783 | ||
0085ce49 RD |
10784 | SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10785 | PyObject *resultobj = 0; | |
10786 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10787 | wxRect result; | |
10788 | void *argp1 = 0 ; | |
10789 | int res1 = 0 ; | |
10790 | PyObject *swig_obj[1] ; | |
10791 | ||
10792 | if (!args) SWIG_fail; | |
10793 | swig_obj[0] = args; | |
10794 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10795 | if (!SWIG_IsOK(res1)) { | |
10796 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10797 | } | |
10798 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10799 | { | |
10800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10801 | result = (arg1)->GetBox(); | |
10802 | wxPyEndAllowThreads(__tstate); | |
10803 | if (PyErr_Occurred()) SWIG_fail; | |
10804 | } | |
10805 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
10806 | return resultobj; | |
10807 | fail: | |
10808 | return NULL; | |
10809 | } | |
10810 | ||
10811 | ||
10812 | SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10813 | PyObject *resultobj = 0; | |
10814 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10815 | int arg2 ; | |
10816 | int arg3 ; | |
10817 | int arg4 ; | |
10818 | int arg5 ; | |
10819 | bool result; | |
10820 | void *argp1 = 0 ; | |
10821 | int res1 = 0 ; | |
10822 | int val2 ; | |
10823 | int ecode2 = 0 ; | |
10824 | int val3 ; | |
10825 | int ecode3 = 0 ; | |
10826 | int val4 ; | |
10827 | int ecode4 = 0 ; | |
10828 | int val5 ; | |
10829 | int ecode5 = 0 ; | |
10830 | PyObject * obj0 = 0 ; | |
10831 | PyObject * obj1 = 0 ; | |
10832 | PyObject * obj2 = 0 ; | |
10833 | PyObject * obj3 = 0 ; | |
10834 | PyObject * obj4 = 0 ; | |
10835 | char * kwnames[] = { | |
10836 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10837 | }; | |
10838 | ||
10839 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
10840 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10841 | if (!SWIG_IsOK(res1)) { | |
10842 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10843 | } | |
10844 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10845 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10846 | if (!SWIG_IsOK(ecode2)) { | |
10847 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'"); | |
10848 | } | |
10849 | arg2 = static_cast< int >(val2); | |
10850 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10851 | if (!SWIG_IsOK(ecode3)) { | |
10852 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'"); | |
10853 | } | |
10854 | arg3 = static_cast< int >(val3); | |
10855 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10856 | if (!SWIG_IsOK(ecode4)) { | |
10857 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'"); | |
10858 | } | |
10859 | arg4 = static_cast< int >(val4); | |
10860 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
10861 | if (!SWIG_IsOK(ecode5)) { | |
10862 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'"); | |
10863 | } | |
10864 | arg5 = static_cast< int >(val5); | |
10865 | { | |
10866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10867 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
10868 | wxPyEndAllowThreads(__tstate); | |
10869 | if (PyErr_Occurred()) SWIG_fail; | |
10870 | } | |
10871 | { | |
10872 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10873 | } | |
10874 | return resultobj; | |
10875 | fail: | |
10876 | return NULL; | |
10877 | } | |
10878 | ||
10879 | ||
10880 | SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10881 | PyObject *resultobj = 0; | |
10882 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10883 | wxRect *arg2 = 0 ; | |
10884 | bool result; | |
10885 | void *argp1 = 0 ; | |
10886 | int res1 = 0 ; | |
10887 | wxRect temp2 ; | |
10888 | PyObject * obj0 = 0 ; | |
10889 | PyObject * obj1 = 0 ; | |
10890 | char * kwnames[] = { | |
10891 | (char *) "self",(char *) "rect", NULL | |
10892 | }; | |
10893 | ||
10894 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
10895 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10896 | if (!SWIG_IsOK(res1)) { | |
10897 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10898 | } | |
10899 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10900 | { | |
10901 | arg2 = &temp2; | |
10902 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10903 | } | |
10904 | { | |
10905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10906 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
10907 | wxPyEndAllowThreads(__tstate); | |
10908 | if (PyErr_Occurred()) SWIG_fail; | |
10909 | } | |
10910 | { | |
10911 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10912 | } | |
10913 | return resultobj; | |
10914 | fail: | |
10915 | return NULL; | |
10916 | } | |
10917 | ||
10918 | ||
10919 | SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10920 | PyObject *resultobj = 0; | |
10921 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10922 | wxRegion *arg2 = 0 ; | |
10923 | bool result; | |
10924 | void *argp1 = 0 ; | |
10925 | int res1 = 0 ; | |
10926 | void *argp2 = 0 ; | |
10927 | int res2 = 0 ; | |
10928 | PyObject * obj0 = 0 ; | |
10929 | PyObject * obj1 = 0 ; | |
10930 | char * kwnames[] = { | |
10931 | (char *) "self",(char *) "region", NULL | |
10932 | }; | |
10933 | ||
10934 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
10935 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10936 | if (!SWIG_IsOK(res1)) { | |
10937 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10938 | } | |
10939 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10940 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
10941 | if (!SWIG_IsOK(res2)) { | |
10942 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
10943 | } | |
10944 | if (!argp2) { | |
10945 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
10946 | } | |
10947 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
10948 | { | |
10949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10950 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
10951 | wxPyEndAllowThreads(__tstate); | |
10952 | if (PyErr_Occurred()) SWIG_fail; | |
10953 | } | |
10954 | { | |
10955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10956 | } | |
10957 | return resultobj; | |
10958 | fail: | |
10959 | return NULL; | |
d14a1e28 RD |
10960 | } |
10961 | ||
10962 | ||
0085ce49 RD |
10963 | SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10964 | PyObject *resultobj = 0; | |
10965 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10966 | bool result; | |
10967 | void *argp1 = 0 ; | |
10968 | int res1 = 0 ; | |
10969 | PyObject *swig_obj[1] ; | |
10970 | ||
10971 | if (!args) SWIG_fail; | |
10972 | swig_obj[0] = args; | |
10973 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10974 | if (!SWIG_IsOK(res1)) { | |
10975 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10976 | } | |
10977 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10978 | { | |
10979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10980 | result = (bool)(arg1)->IsEmpty(); | |
10981 | wxPyEndAllowThreads(__tstate); | |
10982 | if (PyErr_Occurred()) SWIG_fail; | |
10983 | } | |
10984 | { | |
10985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10986 | } | |
10987 | return resultobj; | |
10988 | fail: | |
10989 | return NULL; | |
10990 | } | |
10991 | ||
10992 | ||
f5263701 RD |
10993 | SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10994 | PyObject *resultobj = 0; | |
10995 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10996 | wxRegion *arg2 = 0 ; | |
10997 | bool result; | |
10998 | void *argp1 = 0 ; | |
10999 | int res1 = 0 ; | |
11000 | void *argp2 = 0 ; | |
11001 | int res2 = 0 ; | |
11002 | PyObject * obj0 = 0 ; | |
11003 | PyObject * obj1 = 0 ; | |
11004 | char * kwnames[] = { | |
11005 | (char *) "self",(char *) "region", NULL | |
11006 | }; | |
11007 | ||
11008 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail; | |
11009 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11010 | if (!SWIG_IsOK(res1)) { | |
11011 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'"); | |
11012 | } | |
11013 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11014 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11015 | if (!SWIG_IsOK(res2)) { | |
11016 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11017 | } | |
11018 | if (!argp2) { | |
11019 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11020 | } | |
11021 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11022 | { | |
11023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11024 | result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2); | |
11025 | wxPyEndAllowThreads(__tstate); | |
11026 | if (PyErr_Occurred()) SWIG_fail; | |
11027 | } | |
11028 | { | |
11029 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11030 | } | |
11031 | return resultobj; | |
11032 | fail: | |
11033 | return NULL; | |
11034 | } | |
11035 | ||
11036 | ||
0085ce49 RD |
11037 | SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11038 | PyObject *resultobj = 0; | |
11039 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11040 | int arg2 ; | |
11041 | int arg3 ; | |
11042 | int arg4 ; | |
11043 | int arg5 ; | |
11044 | bool result; | |
11045 | void *argp1 = 0 ; | |
11046 | int res1 = 0 ; | |
11047 | int val2 ; | |
11048 | int ecode2 = 0 ; | |
11049 | int val3 ; | |
11050 | int ecode3 = 0 ; | |
11051 | int val4 ; | |
11052 | int ecode4 = 0 ; | |
11053 | int val5 ; | |
11054 | int ecode5 = 0 ; | |
11055 | PyObject * obj0 = 0 ; | |
11056 | PyObject * obj1 = 0 ; | |
11057 | PyObject * obj2 = 0 ; | |
11058 | PyObject * obj3 = 0 ; | |
11059 | PyObject * obj4 = 0 ; | |
11060 | char * kwnames[] = { | |
11061 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11062 | }; | |
11063 | ||
11064 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11065 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11066 | if (!SWIG_IsOK(res1)) { | |
11067 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11068 | } | |
11069 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11070 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11071 | if (!SWIG_IsOK(ecode2)) { | |
11072 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'"); | |
11073 | } | |
11074 | arg2 = static_cast< int >(val2); | |
11075 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11076 | if (!SWIG_IsOK(ecode3)) { | |
11077 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'"); | |
11078 | } | |
11079 | arg3 = static_cast< int >(val3); | |
11080 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11081 | if (!SWIG_IsOK(ecode4)) { | |
11082 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'"); | |
11083 | } | |
11084 | arg4 = static_cast< int >(val4); | |
11085 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11086 | if (!SWIG_IsOK(ecode5)) { | |
11087 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'"); | |
11088 | } | |
11089 | arg5 = static_cast< int >(val5); | |
11090 | { | |
11091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11092 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
11093 | wxPyEndAllowThreads(__tstate); | |
11094 | if (PyErr_Occurred()) SWIG_fail; | |
11095 | } | |
11096 | { | |
11097 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11098 | } | |
11099 | return resultobj; | |
11100 | fail: | |
11101 | return NULL; | |
11102 | } | |
11103 | ||
11104 | ||
11105 | SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11106 | PyObject *resultobj = 0; | |
11107 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11108 | wxRect *arg2 = 0 ; | |
11109 | bool result; | |
11110 | void *argp1 = 0 ; | |
11111 | int res1 = 0 ; | |
11112 | wxRect temp2 ; | |
11113 | PyObject * obj0 = 0 ; | |
11114 | PyObject * obj1 = 0 ; | |
11115 | char * kwnames[] = { | |
11116 | (char *) "self",(char *) "rect", NULL | |
11117 | }; | |
11118 | ||
11119 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11120 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11121 | if (!SWIG_IsOK(res1)) { | |
11122 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11123 | } | |
11124 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11125 | { | |
11126 | arg2 = &temp2; | |
11127 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11128 | } | |
11129 | { | |
11130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11131 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
11132 | wxPyEndAllowThreads(__tstate); | |
11133 | if (PyErr_Occurred()) SWIG_fail; | |
11134 | } | |
11135 | { | |
11136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11137 | } | |
11138 | return resultobj; | |
11139 | fail: | |
11140 | return NULL; | |
11141 | } | |
11142 | ||
11143 | ||
11144 | SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11145 | PyObject *resultobj = 0; | |
11146 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11147 | wxRegion *arg2 = 0 ; | |
11148 | bool result; | |
11149 | void *argp1 = 0 ; | |
11150 | int res1 = 0 ; | |
11151 | void *argp2 = 0 ; | |
11152 | int res2 = 0 ; | |
11153 | PyObject * obj0 = 0 ; | |
11154 | PyObject * obj1 = 0 ; | |
11155 | char * kwnames[] = { | |
11156 | (char *) "self",(char *) "region", NULL | |
11157 | }; | |
11158 | ||
11159 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11160 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11161 | if (!SWIG_IsOK(res1)) { | |
11162 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11163 | } | |
11164 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11165 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11166 | if (!SWIG_IsOK(res2)) { | |
11167 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11168 | } | |
11169 | if (!argp2) { | |
11170 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11171 | } | |
11172 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11173 | { | |
11174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11175 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
11176 | wxPyEndAllowThreads(__tstate); | |
11177 | if (PyErr_Occurred()) SWIG_fail; | |
11178 | } | |
11179 | { | |
11180 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11181 | } | |
11182 | return resultobj; | |
11183 | fail: | |
11184 | return NULL; | |
11185 | } | |
11186 | ||
11187 | ||
11188 | SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11189 | PyObject *resultobj = 0; | |
11190 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11191 | int arg2 ; | |
11192 | int arg3 ; | |
11193 | int arg4 ; | |
11194 | int arg5 ; | |
11195 | bool result; | |
11196 | void *argp1 = 0 ; | |
11197 | int res1 = 0 ; | |
11198 | int val2 ; | |
11199 | int ecode2 = 0 ; | |
11200 | int val3 ; | |
11201 | int ecode3 = 0 ; | |
11202 | int val4 ; | |
11203 | int ecode4 = 0 ; | |
11204 | int val5 ; | |
11205 | int ecode5 = 0 ; | |
11206 | PyObject * obj0 = 0 ; | |
11207 | PyObject * obj1 = 0 ; | |
11208 | PyObject * obj2 = 0 ; | |
11209 | PyObject * obj3 = 0 ; | |
11210 | PyObject * obj4 = 0 ; | |
11211 | char * kwnames[] = { | |
11212 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11213 | }; | |
11214 | ||
11215 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11216 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11217 | if (!SWIG_IsOK(res1)) { | |
11218 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11219 | } | |
11220 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11221 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11222 | if (!SWIG_IsOK(ecode2)) { | |
11223 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'"); | |
11224 | } | |
11225 | arg2 = static_cast< int >(val2); | |
11226 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11227 | if (!SWIG_IsOK(ecode3)) { | |
11228 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'"); | |
11229 | } | |
11230 | arg3 = static_cast< int >(val3); | |
11231 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11232 | if (!SWIG_IsOK(ecode4)) { | |
11233 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'"); | |
11234 | } | |
11235 | arg4 = static_cast< int >(val4); | |
11236 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11237 | if (!SWIG_IsOK(ecode5)) { | |
11238 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'"); | |
11239 | } | |
11240 | arg5 = static_cast< int >(val5); | |
11241 | { | |
11242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11243 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
11244 | wxPyEndAllowThreads(__tstate); | |
11245 | if (PyErr_Occurred()) SWIG_fail; | |
11246 | } | |
11247 | { | |
11248 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11249 | } | |
11250 | return resultobj; | |
11251 | fail: | |
11252 | return NULL; | |
11253 | } | |
11254 | ||
11255 | ||
11256 | SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11257 | PyObject *resultobj = 0; | |
11258 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11259 | wxRect *arg2 = 0 ; | |
11260 | bool result; | |
11261 | void *argp1 = 0 ; | |
11262 | int res1 = 0 ; | |
11263 | wxRect temp2 ; | |
11264 | PyObject * obj0 = 0 ; | |
11265 | PyObject * obj1 = 0 ; | |
11266 | char * kwnames[] = { | |
11267 | (char *) "self",(char *) "rect", NULL | |
11268 | }; | |
11269 | ||
11270 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11271 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11272 | if (!SWIG_IsOK(res1)) { | |
11273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11274 | } | |
11275 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11276 | { | |
11277 | arg2 = &temp2; | |
11278 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11279 | } | |
11280 | { | |
11281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11282 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
11283 | wxPyEndAllowThreads(__tstate); | |
11284 | if (PyErr_Occurred()) SWIG_fail; | |
11285 | } | |
11286 | { | |
11287 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11288 | } | |
11289 | return resultobj; | |
11290 | fail: | |
11291 | return NULL; | |
11292 | } | |
11293 | ||
11294 | ||
11295 | SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11296 | PyObject *resultobj = 0; | |
11297 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11298 | wxRegion *arg2 = 0 ; | |
11299 | bool result; | |
11300 | void *argp1 = 0 ; | |
11301 | int res1 = 0 ; | |
11302 | void *argp2 = 0 ; | |
11303 | int res2 = 0 ; | |
11304 | PyObject * obj0 = 0 ; | |
11305 | PyObject * obj1 = 0 ; | |
11306 | char * kwnames[] = { | |
11307 | (char *) "self",(char *) "region", NULL | |
11308 | }; | |
11309 | ||
11310 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11311 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11312 | if (!SWIG_IsOK(res1)) { | |
11313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11314 | } | |
11315 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11316 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11317 | if (!SWIG_IsOK(res2)) { | |
11318 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11319 | } | |
11320 | if (!argp2) { | |
11321 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11322 | } | |
11323 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11324 | { | |
11325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11326 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
11327 | wxPyEndAllowThreads(__tstate); | |
11328 | if (PyErr_Occurred()) SWIG_fail; | |
11329 | } | |
11330 | { | |
11331 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11332 | } | |
11333 | return resultobj; | |
11334 | fail: | |
11335 | return NULL; | |
11336 | } | |
11337 | ||
11338 | ||
11339 | SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11340 | PyObject *resultobj = 0; | |
11341 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11342 | int arg2 ; | |
11343 | int arg3 ; | |
11344 | int arg4 ; | |
11345 | int arg5 ; | |
11346 | bool result; | |
11347 | void *argp1 = 0 ; | |
11348 | int res1 = 0 ; | |
11349 | int val2 ; | |
11350 | int ecode2 = 0 ; | |
11351 | int val3 ; | |
11352 | int ecode3 = 0 ; | |
11353 | int val4 ; | |
11354 | int ecode4 = 0 ; | |
11355 | int val5 ; | |
11356 | int ecode5 = 0 ; | |
11357 | PyObject * obj0 = 0 ; | |
11358 | PyObject * obj1 = 0 ; | |
11359 | PyObject * obj2 = 0 ; | |
11360 | PyObject * obj3 = 0 ; | |
11361 | PyObject * obj4 = 0 ; | |
11362 | char * kwnames[] = { | |
11363 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11364 | }; | |
11365 | ||
11366 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11367 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11368 | if (!SWIG_IsOK(res1)) { | |
11369 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11370 | } | |
11371 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11372 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11373 | if (!SWIG_IsOK(ecode2)) { | |
11374 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'"); | |
11375 | } | |
11376 | arg2 = static_cast< int >(val2); | |
11377 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11378 | if (!SWIG_IsOK(ecode3)) { | |
11379 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'"); | |
11380 | } | |
11381 | arg3 = static_cast< int >(val3); | |
11382 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11383 | if (!SWIG_IsOK(ecode4)) { | |
11384 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'"); | |
11385 | } | |
11386 | arg4 = static_cast< int >(val4); | |
11387 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11388 | if (!SWIG_IsOK(ecode5)) { | |
11389 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'"); | |
11390 | } | |
11391 | arg5 = static_cast< int >(val5); | |
11392 | { | |
11393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11394 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
11395 | wxPyEndAllowThreads(__tstate); | |
11396 | if (PyErr_Occurred()) SWIG_fail; | |
11397 | } | |
11398 | { | |
11399 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11400 | } | |
11401 | return resultobj; | |
11402 | fail: | |
11403 | return NULL; | |
11404 | } | |
11405 | ||
11406 | ||
11407 | SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11408 | PyObject *resultobj = 0; | |
11409 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11410 | wxRect *arg2 = 0 ; | |
11411 | bool result; | |
11412 | void *argp1 = 0 ; | |
11413 | int res1 = 0 ; | |
11414 | wxRect temp2 ; | |
11415 | PyObject * obj0 = 0 ; | |
11416 | PyObject * obj1 = 0 ; | |
11417 | char * kwnames[] = { | |
11418 | (char *) "self",(char *) "rect", NULL | |
11419 | }; | |
11420 | ||
11421 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11422 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11423 | if (!SWIG_IsOK(res1)) { | |
11424 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11425 | } | |
11426 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11427 | { | |
11428 | arg2 = &temp2; | |
11429 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11430 | } | |
11431 | { | |
11432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11433 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
11434 | wxPyEndAllowThreads(__tstate); | |
11435 | if (PyErr_Occurred()) SWIG_fail; | |
11436 | } | |
11437 | { | |
11438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11439 | } | |
11440 | return resultobj; | |
11441 | fail: | |
11442 | return NULL; | |
11443 | } | |
11444 | ||
11445 | ||
11446 | SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11447 | PyObject *resultobj = 0; | |
11448 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11449 | wxRegion *arg2 = 0 ; | |
11450 | bool result; | |
11451 | void *argp1 = 0 ; | |
11452 | int res1 = 0 ; | |
11453 | void *argp2 = 0 ; | |
11454 | int res2 = 0 ; | |
11455 | PyObject * obj0 = 0 ; | |
11456 | PyObject * obj1 = 0 ; | |
11457 | char * kwnames[] = { | |
11458 | (char *) "self",(char *) "region", NULL | |
11459 | }; | |
11460 | ||
11461 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11462 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11463 | if (!SWIG_IsOK(res1)) { | |
11464 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11465 | } | |
11466 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11467 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11468 | if (!SWIG_IsOK(res2)) { | |
11469 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11470 | } | |
11471 | if (!argp2) { | |
11472 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11473 | } | |
11474 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11475 | { | |
11476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11477 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
11478 | wxPyEndAllowThreads(__tstate); | |
11479 | if (PyErr_Occurred()) SWIG_fail; | |
11480 | } | |
11481 | { | |
11482 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11483 | } | |
11484 | return resultobj; | |
11485 | fail: | |
11486 | return NULL; | |
d14a1e28 RD |
11487 | } |
11488 | ||
11489 | ||
0085ce49 RD |
11490 | SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11491 | PyObject *resultobj = 0; | |
11492 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11493 | SwigValueWrapper<wxBitmap > result; | |
11494 | void *argp1 = 0 ; | |
11495 | int res1 = 0 ; | |
11496 | PyObject *swig_obj[1] ; | |
11497 | ||
11498 | if (!args) SWIG_fail; | |
11499 | swig_obj[0] = args; | |
11500 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11501 | if (!SWIG_IsOK(res1)) { | |
11502 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11503 | } | |
11504 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11505 | { | |
11506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11507 | result = (arg1)->ConvertToBitmap(); | |
11508 | wxPyEndAllowThreads(__tstate); | |
11509 | if (PyErr_Occurred()) SWIG_fail; | |
11510 | } | |
11511 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
11512 | return resultobj; | |
11513 | fail: | |
11514 | return NULL; | |
11515 | } | |
11516 | ||
11517 | ||
11518 | SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11519 | PyObject *resultobj = 0; | |
11520 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11521 | wxBitmap *arg2 = 0 ; | |
11522 | bool result; | |
11523 | void *argp1 = 0 ; | |
11524 | int res1 = 0 ; | |
11525 | void *argp2 = 0 ; | |
11526 | int res2 = 0 ; | |
11527 | PyObject * obj0 = 0 ; | |
11528 | PyObject * obj1 = 0 ; | |
11529 | char * kwnames[] = { | |
11530 | (char *) "self",(char *) "bmp", NULL | |
11531 | }; | |
11532 | ||
11533 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
11534 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11535 | if (!SWIG_IsOK(res1)) { | |
11536 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11537 | } | |
11538 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11539 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
11540 | if (!SWIG_IsOK(res2)) { | |
11541 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11542 | } | |
11543 | if (!argp2) { | |
11544 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11545 | } | |
11546 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
11547 | { | |
11548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11549 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2); | |
11550 | wxPyEndAllowThreads(__tstate); | |
11551 | if (PyErr_Occurred()) SWIG_fail; | |
11552 | } | |
11553 | { | |
11554 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11555 | } | |
11556 | return resultobj; | |
11557 | fail: | |
11558 | return NULL; | |
11559 | } | |
11560 | ||
11561 | ||
11562 | SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11563 | PyObject *resultobj = 0; | |
11564 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11565 | wxBitmap *arg2 = 0 ; | |
11566 | wxColour *arg3 = 0 ; | |
11567 | int arg4 = (int) 0 ; | |
11568 | bool result; | |
11569 | void *argp1 = 0 ; | |
11570 | int res1 = 0 ; | |
11571 | void *argp2 = 0 ; | |
11572 | int res2 = 0 ; | |
11573 | wxColour temp3 ; | |
11574 | int val4 ; | |
11575 | int ecode4 = 0 ; | |
11576 | PyObject * obj0 = 0 ; | |
11577 | PyObject * obj1 = 0 ; | |
11578 | PyObject * obj2 = 0 ; | |
11579 | PyObject * obj3 = 0 ; | |
11580 | char * kwnames[] = { | |
11581 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
11582 | }; | |
11583 | ||
11584 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
11585 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11586 | if (!SWIG_IsOK(res1)) { | |
11587 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11588 | } | |
11589 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11590 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
11591 | if (!SWIG_IsOK(res2)) { | |
11592 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11593 | } | |
11594 | if (!argp2) { | |
11595 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11596 | } | |
11597 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
11598 | { | |
11599 | arg3 = &temp3; | |
11600 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
11601 | } | |
11602 | if (obj3) { | |
11603 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11604 | if (!SWIG_IsOK(ecode4)) { | |
11605 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'"); | |
11606 | } | |
11607 | arg4 = static_cast< int >(val4); | |
11608 | } | |
11609 | { | |
11610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11611 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
11612 | wxPyEndAllowThreads(__tstate); | |
11613 | if (PyErr_Occurred()) SWIG_fail; | |
11614 | } | |
11615 | { | |
11616 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11617 | } | |
11618 | return resultobj; | |
11619 | fail: | |
11620 | return NULL; | |
d14a1e28 RD |
11621 | } |
11622 | ||
11623 | ||
0085ce49 RD |
11624 | SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11625 | PyObject *obj; | |
11626 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11627 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj)); | |
11628 | return SWIG_Py_Void(); | |
d14a1e28 RD |
11629 | } |
11630 | ||
0085ce49 RD |
11631 | SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11632 | return SWIG_Python_InitShadowInstance(args); | |
11633 | } | |
d14a1e28 | 11634 | |
0085ce49 RD |
11635 | SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11636 | PyObject *resultobj = 0; | |
11637 | wxRegion *arg1 = 0 ; | |
11638 | wxRegionIterator *result = 0 ; | |
11639 | void *argp1 = 0 ; | |
11640 | int res1 = 0 ; | |
11641 | PyObject * obj0 = 0 ; | |
11642 | char * kwnames[] = { | |
11643 | (char *) "region", NULL | |
11644 | }; | |
11645 | ||
11646 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail; | |
11647 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0); | |
11648 | if (!SWIG_IsOK(res1)) { | |
11649 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
11650 | } | |
11651 | if (!argp1) { | |
11652 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
11653 | } | |
11654 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11655 | { | |
11656 | if (!wxPyCheckForApp()) SWIG_fail; | |
11657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11658 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
11659 | wxPyEndAllowThreads(__tstate); | |
11660 | if (PyErr_Occurred()) SWIG_fail; | |
11661 | } | |
11662 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 ); | |
11663 | return resultobj; | |
11664 | fail: | |
11665 | return NULL; | |
d14a1e28 RD |
11666 | } |
11667 | ||
11668 | ||
0085ce49 RD |
11669 | SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11670 | PyObject *resultobj = 0; | |
11671 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11672 | void *argp1 = 0 ; | |
11673 | int res1 = 0 ; | |
11674 | PyObject *swig_obj[1] ; | |
11675 | ||
11676 | if (!args) SWIG_fail; | |
11677 | swig_obj[0] = args; | |
11678 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 ); | |
11679 | if (!SWIG_IsOK(res1)) { | |
11680 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11681 | } | |
11682 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11683 | { | |
11684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11685 | delete arg1; | |
d14a1e28 | 11686 | |
0085ce49 RD |
11687 | wxPyEndAllowThreads(__tstate); |
11688 | if (PyErr_Occurred()) SWIG_fail; | |
11689 | } | |
11690 | resultobj = SWIG_Py_Void(); | |
11691 | return resultobj; | |
11692 | fail: | |
11693 | return NULL; | |
d14a1e28 RD |
11694 | } |
11695 | ||
11696 | ||
0085ce49 RD |
11697 | SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11698 | PyObject *resultobj = 0; | |
11699 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11700 | int result; | |
11701 | void *argp1 = 0 ; | |
11702 | int res1 = 0 ; | |
11703 | PyObject *swig_obj[1] ; | |
11704 | ||
11705 | if (!args) SWIG_fail; | |
11706 | swig_obj[0] = args; | |
11707 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11708 | if (!SWIG_IsOK(res1)) { | |
11709 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11710 | } | |
11711 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11712 | { | |
11713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11714 | result = (int)(arg1)->GetX(); | |
11715 | wxPyEndAllowThreads(__tstate); | |
11716 | if (PyErr_Occurred()) SWIG_fail; | |
11717 | } | |
11718 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11719 | return resultobj; | |
11720 | fail: | |
11721 | return NULL; | |
d14a1e28 RD |
11722 | } |
11723 | ||
11724 | ||
0085ce49 RD |
11725 | SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11726 | PyObject *resultobj = 0; | |
11727 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11728 | int result; | |
11729 | void *argp1 = 0 ; | |
11730 | int res1 = 0 ; | |
11731 | PyObject *swig_obj[1] ; | |
11732 | ||
11733 | if (!args) SWIG_fail; | |
11734 | swig_obj[0] = args; | |
11735 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11736 | if (!SWIG_IsOK(res1)) { | |
11737 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11738 | } | |
11739 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11740 | { | |
11741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11742 | result = (int)(arg1)->GetY(); | |
11743 | wxPyEndAllowThreads(__tstate); | |
11744 | if (PyErr_Occurred()) SWIG_fail; | |
11745 | } | |
11746 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11747 | return resultobj; | |
11748 | fail: | |
11749 | return NULL; | |
d14a1e28 RD |
11750 | } |
11751 | ||
11752 | ||
0085ce49 RD |
11753 | SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11754 | PyObject *resultobj = 0; | |
11755 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11756 | int result; | |
11757 | void *argp1 = 0 ; | |
11758 | int res1 = 0 ; | |
11759 | PyObject *swig_obj[1] ; | |
11760 | ||
11761 | if (!args) SWIG_fail; | |
11762 | swig_obj[0] = args; | |
11763 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11764 | if (!SWIG_IsOK(res1)) { | |
11765 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11766 | } | |
11767 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11768 | { | |
11769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11770 | result = (int)(arg1)->GetW(); | |
11771 | wxPyEndAllowThreads(__tstate); | |
11772 | if (PyErr_Occurred()) SWIG_fail; | |
11773 | } | |
11774 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11775 | return resultobj; | |
11776 | fail: | |
11777 | return NULL; | |
d14a1e28 RD |
11778 | } |
11779 | ||
11780 | ||
0085ce49 RD |
11781 | SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11782 | PyObject *resultobj = 0; | |
11783 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11784 | int result; | |
11785 | void *argp1 = 0 ; | |
11786 | int res1 = 0 ; | |
11787 | PyObject *swig_obj[1] ; | |
11788 | ||
11789 | if (!args) SWIG_fail; | |
11790 | swig_obj[0] = args; | |
11791 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11792 | if (!SWIG_IsOK(res1)) { | |
11793 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11794 | } | |
11795 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11796 | { | |
11797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11798 | result = (int)(arg1)->GetWidth(); | |
11799 | wxPyEndAllowThreads(__tstate); | |
11800 | if (PyErr_Occurred()) SWIG_fail; | |
11801 | } | |
11802 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11803 | return resultobj; | |
11804 | fail: | |
11805 | return NULL; | |
093d3ff1 RD |
11806 | } |
11807 | ||
11808 | ||
0085ce49 RD |
11809 | SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11810 | PyObject *resultobj = 0; | |
11811 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11812 | int result; | |
11813 | void *argp1 = 0 ; | |
11814 | int res1 = 0 ; | |
11815 | PyObject *swig_obj[1] ; | |
11816 | ||
11817 | if (!args) SWIG_fail; | |
11818 | swig_obj[0] = args; | |
11819 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11820 | if (!SWIG_IsOK(res1)) { | |
11821 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11822 | } | |
11823 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11824 | { | |
11825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11826 | result = (int)(arg1)->GetH(); | |
11827 | wxPyEndAllowThreads(__tstate); | |
11828 | if (PyErr_Occurred()) SWIG_fail; | |
11829 | } | |
11830 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11831 | return resultobj; | |
11832 | fail: | |
11833 | return NULL; | |
d14a1e28 RD |
11834 | } |
11835 | ||
11836 | ||
0085ce49 RD |
11837 | SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11838 | PyObject *resultobj = 0; | |
11839 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11840 | int result; | |
11841 | void *argp1 = 0 ; | |
11842 | int res1 = 0 ; | |
11843 | PyObject *swig_obj[1] ; | |
11844 | ||
11845 | if (!args) SWIG_fail; | |
11846 | swig_obj[0] = args; | |
11847 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11848 | if (!SWIG_IsOK(res1)) { | |
11849 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11850 | } | |
11851 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11852 | { | |
11853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11854 | result = (int)(arg1)->GetHeight(); | |
11855 | wxPyEndAllowThreads(__tstate); | |
11856 | if (PyErr_Occurred()) SWIG_fail; | |
11857 | } | |
11858 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11859 | return resultobj; | |
11860 | fail: | |
11861 | return NULL; | |
093d3ff1 RD |
11862 | } |
11863 | ||
11864 | ||
0085ce49 RD |
11865 | SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11866 | PyObject *resultobj = 0; | |
11867 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11868 | wxRect result; | |
11869 | void *argp1 = 0 ; | |
11870 | int res1 = 0 ; | |
11871 | PyObject *swig_obj[1] ; | |
11872 | ||
11873 | if (!args) SWIG_fail; | |
11874 | swig_obj[0] = args; | |
11875 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11876 | if (!SWIG_IsOK(res1)) { | |
11877 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11878 | } | |
11879 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11880 | { | |
11881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11882 | result = (arg1)->GetRect(); | |
11883 | wxPyEndAllowThreads(__tstate); | |
11884 | if (PyErr_Occurred()) SWIG_fail; | |
11885 | } | |
11886 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
11887 | return resultobj; | |
11888 | fail: | |
11889 | return NULL; | |
d14a1e28 RD |
11890 | } |
11891 | ||
11892 | ||
0085ce49 RD |
11893 | SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11894 | PyObject *resultobj = 0; | |
11895 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11896 | bool result; | |
11897 | void *argp1 = 0 ; | |
11898 | int res1 = 0 ; | |
11899 | PyObject *swig_obj[1] ; | |
11900 | ||
11901 | if (!args) SWIG_fail; | |
11902 | swig_obj[0] = args; | |
11903 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11904 | if (!SWIG_IsOK(res1)) { | |
11905 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11906 | } | |
11907 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11908 | { | |
11909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11910 | result = (bool)(arg1)->HaveRects(); | |
11911 | wxPyEndAllowThreads(__tstate); | |
11912 | if (PyErr_Occurred()) SWIG_fail; | |
11913 | } | |
11914 | { | |
11915 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11916 | } | |
11917 | return resultobj; | |
11918 | fail: | |
11919 | return NULL; | |
093d3ff1 RD |
11920 | } |
11921 | ||
11922 | ||
0085ce49 RD |
11923 | SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11924 | PyObject *resultobj = 0; | |
11925 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11926 | void *argp1 = 0 ; | |
11927 | int res1 = 0 ; | |
11928 | PyObject *swig_obj[1] ; | |
11929 | ||
11930 | if (!args) SWIG_fail; | |
11931 | swig_obj[0] = args; | |
11932 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11933 | if (!SWIG_IsOK(res1)) { | |
11934 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11935 | } | |
11936 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11937 | { | |
11938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11939 | (arg1)->Reset(); | |
11940 | wxPyEndAllowThreads(__tstate); | |
11941 | if (PyErr_Occurred()) SWIG_fail; | |
11942 | } | |
11943 | resultobj = SWIG_Py_Void(); | |
11944 | return resultobj; | |
11945 | fail: | |
11946 | return NULL; | |
d14a1e28 RD |
11947 | } |
11948 | ||
11949 | ||
0085ce49 RD |
11950 | SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11951 | PyObject *resultobj = 0; | |
11952 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11953 | void *argp1 = 0 ; | |
11954 | int res1 = 0 ; | |
11955 | PyObject *swig_obj[1] ; | |
11956 | ||
11957 | if (!args) SWIG_fail; | |
11958 | swig_obj[0] = args; | |
11959 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11960 | if (!SWIG_IsOK(res1)) { | |
11961 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11962 | } | |
11963 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11964 | { | |
11965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11966 | wxRegionIterator_Next(arg1); | |
11967 | wxPyEndAllowThreads(__tstate); | |
11968 | if (PyErr_Occurred()) SWIG_fail; | |
11969 | } | |
11970 | resultobj = SWIG_Py_Void(); | |
11971 | return resultobj; | |
11972 | fail: | |
11973 | return NULL; | |
d14a1e28 RD |
11974 | } |
11975 | ||
11976 | ||
0085ce49 RD |
11977 | SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11978 | PyObject *resultobj = 0; | |
11979 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11980 | bool result; | |
11981 | void *argp1 = 0 ; | |
11982 | int res1 = 0 ; | |
11983 | PyObject *swig_obj[1] ; | |
11984 | ||
11985 | if (!args) SWIG_fail; | |
11986 | swig_obj[0] = args; | |
11987 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11988 | if (!SWIG_IsOK(res1)) { | |
11989 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11990 | } | |
11991 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11992 | { | |
11993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11994 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
11995 | wxPyEndAllowThreads(__tstate); | |
11996 | if (PyErr_Occurred()) SWIG_fail; | |
11997 | } | |
11998 | { | |
11999 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12000 | } | |
12001 | return resultobj; | |
12002 | fail: | |
12003 | return NULL; | |
d14a1e28 RD |
12004 | } |
12005 | ||
12006 | ||
0085ce49 RD |
12007 | SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12008 | PyObject *obj; | |
12009 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12010 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj)); | |
12011 | return SWIG_Py_Void(); | |
d14a1e28 RD |
12012 | } |
12013 | ||
0085ce49 RD |
12014 | SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12015 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
12016 | } |
12017 | ||
0085ce49 RD |
12018 | SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12019 | PyObject *resultobj = 0; | |
12020 | wxNativeFontInfo *result = 0 ; | |
12021 | ||
12022 | if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail; | |
12023 | { | |
12024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12025 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
12026 | wxPyEndAllowThreads(__tstate); | |
12027 | if (PyErr_Occurred()) SWIG_fail; | |
12028 | } | |
12029 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 ); | |
12030 | return resultobj; | |
12031 | fail: | |
12032 | return NULL; | |
d14a1e28 RD |
12033 | } |
12034 | ||
12035 | ||
0085ce49 RD |
12036 | SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12037 | PyObject *resultobj = 0; | |
12038 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12039 | void *argp1 = 0 ; | |
12040 | int res1 = 0 ; | |
12041 | PyObject *swig_obj[1] ; | |
12042 | ||
12043 | if (!args) SWIG_fail; | |
12044 | swig_obj[0] = args; | |
12045 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 ); | |
12046 | if (!SWIG_IsOK(res1)) { | |
12047 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12048 | } | |
12049 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12050 | { | |
12051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12052 | delete arg1; | |
d14a1e28 | 12053 | |
0085ce49 RD |
12054 | wxPyEndAllowThreads(__tstate); |
12055 | if (PyErr_Occurred()) SWIG_fail; | |
12056 | } | |
12057 | resultobj = SWIG_Py_Void(); | |
12058 | return resultobj; | |
12059 | fail: | |
12060 | return NULL; | |
d14a1e28 RD |
12061 | } |
12062 | ||
12063 | ||
0085ce49 RD |
12064 | SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12065 | PyObject *resultobj = 0; | |
12066 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12067 | void *argp1 = 0 ; | |
12068 | int res1 = 0 ; | |
12069 | PyObject *swig_obj[1] ; | |
12070 | ||
12071 | if (!args) SWIG_fail; | |
12072 | swig_obj[0] = args; | |
12073 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12074 | if (!SWIG_IsOK(res1)) { | |
12075 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12076 | } | |
12077 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12078 | { | |
12079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12080 | (arg1)->Init(); | |
12081 | wxPyEndAllowThreads(__tstate); | |
12082 | if (PyErr_Occurred()) SWIG_fail; | |
12083 | } | |
12084 | resultobj = SWIG_Py_Void(); | |
12085 | return resultobj; | |
12086 | fail: | |
12087 | return NULL; | |
12088 | } | |
12089 | ||
12090 | ||
12091 | SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12092 | PyObject *resultobj = 0; | |
12093 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12094 | wxFont *arg2 = 0 ; | |
12095 | void *argp1 = 0 ; | |
12096 | int res1 = 0 ; | |
12097 | void *argp2 = 0 ; | |
12098 | int res2 = 0 ; | |
12099 | PyObject * obj0 = 0 ; | |
12100 | PyObject * obj1 = 0 ; | |
12101 | char * kwnames[] = { | |
12102 | (char *) "self",(char *) "font", NULL | |
12103 | }; | |
12104 | ||
12105 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
12106 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12107 | if (!SWIG_IsOK(res1)) { | |
12108 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12109 | } | |
12110 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12111 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
12112 | if (!SWIG_IsOK(res2)) { | |
12113 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
12114 | } | |
12115 | if (!argp2) { | |
12116 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
12117 | } | |
12118 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
12119 | { | |
12120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12121 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
12122 | wxPyEndAllowThreads(__tstate); | |
12123 | if (PyErr_Occurred()) SWIG_fail; | |
12124 | } | |
12125 | resultobj = SWIG_Py_Void(); | |
12126 | return resultobj; | |
12127 | fail: | |
12128 | return NULL; | |
e6ffcedd RD |
12129 | } |
12130 | ||
12131 | ||
0085ce49 RD |
12132 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12133 | PyObject *resultobj = 0; | |
12134 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12135 | int result; | |
12136 | void *argp1 = 0 ; | |
12137 | int res1 = 0 ; | |
12138 | PyObject *swig_obj[1] ; | |
12139 | ||
12140 | if (!args) SWIG_fail; | |
12141 | swig_obj[0] = args; | |
12142 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12143 | if (!SWIG_IsOK(res1)) { | |
12144 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12145 | } | |
12146 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12147 | { | |
12148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12149 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
12150 | wxPyEndAllowThreads(__tstate); | |
12151 | if (PyErr_Occurred()) SWIG_fail; | |
12152 | } | |
12153 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12154 | return resultobj; | |
12155 | fail: | |
12156 | return NULL; | |
d14a1e28 RD |
12157 | } |
12158 | ||
12159 | ||
0085ce49 RD |
12160 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12161 | PyObject *resultobj = 0; | |
12162 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12163 | wxFontStyle result; | |
12164 | void *argp1 = 0 ; | |
12165 | int res1 = 0 ; | |
12166 | PyObject *swig_obj[1] ; | |
12167 | ||
12168 | if (!args) SWIG_fail; | |
12169 | swig_obj[0] = args; | |
12170 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12171 | if (!SWIG_IsOK(res1)) { | |
12172 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12173 | } | |
12174 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12175 | { | |
12176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12177 | result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
12178 | wxPyEndAllowThreads(__tstate); | |
12179 | if (PyErr_Occurred()) SWIG_fail; | |
12180 | } | |
12181 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12182 | return resultobj; | |
12183 | fail: | |
12184 | return NULL; | |
d14a1e28 RD |
12185 | } |
12186 | ||
12187 | ||
0085ce49 RD |
12188 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12189 | PyObject *resultobj = 0; | |
12190 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12191 | wxFontWeight result; | |
12192 | void *argp1 = 0 ; | |
12193 | int res1 = 0 ; | |
12194 | PyObject *swig_obj[1] ; | |
12195 | ||
12196 | if (!args) SWIG_fail; | |
12197 | swig_obj[0] = args; | |
12198 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12199 | if (!SWIG_IsOK(res1)) { | |
12200 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12201 | } | |
12202 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12203 | { | |
12204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12205 | result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
12206 | wxPyEndAllowThreads(__tstate); | |
12207 | if (PyErr_Occurred()) SWIG_fail; | |
12208 | } | |
12209 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12210 | return resultobj; | |
12211 | fail: | |
12212 | return NULL; | |
d14a1e28 RD |
12213 | } |
12214 | ||
12215 | ||
0085ce49 RD |
12216 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12217 | PyObject *resultobj = 0; | |
12218 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12219 | bool result; | |
12220 | void *argp1 = 0 ; | |
12221 | int res1 = 0 ; | |
12222 | PyObject *swig_obj[1] ; | |
12223 | ||
12224 | if (!args) SWIG_fail; | |
12225 | swig_obj[0] = args; | |
12226 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12227 | if (!SWIG_IsOK(res1)) { | |
12228 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12229 | } | |
12230 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12231 | { | |
12232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12233 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
12234 | wxPyEndAllowThreads(__tstate); | |
12235 | if (PyErr_Occurred()) SWIG_fail; | |
12236 | } | |
12237 | { | |
12238 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12239 | } | |
12240 | return resultobj; | |
12241 | fail: | |
12242 | return NULL; | |
d14a1e28 RD |
12243 | } |
12244 | ||
12245 | ||
0085ce49 RD |
12246 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12247 | PyObject *resultobj = 0; | |
12248 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12249 | wxString result; | |
12250 | void *argp1 = 0 ; | |
12251 | int res1 = 0 ; | |
12252 | PyObject *swig_obj[1] ; | |
12253 | ||
12254 | if (!args) SWIG_fail; | |
12255 | swig_obj[0] = args; | |
12256 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12257 | if (!SWIG_IsOK(res1)) { | |
12258 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12259 | } | |
12260 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12261 | { | |
12262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12263 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
12264 | wxPyEndAllowThreads(__tstate); | |
12265 | if (PyErr_Occurred()) SWIG_fail; | |
12266 | } | |
12267 | { | |
12268 | #if wxUSE_UNICODE | |
12269 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12270 | #else | |
12271 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12272 | #endif | |
12273 | } | |
12274 | return resultobj; | |
12275 | fail: | |
12276 | return NULL; | |
d14a1e28 RD |
12277 | } |
12278 | ||
12279 | ||
0085ce49 RD |
12280 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12281 | PyObject *resultobj = 0; | |
12282 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12283 | wxFontFamily result; | |
12284 | void *argp1 = 0 ; | |
12285 | int res1 = 0 ; | |
12286 | PyObject *swig_obj[1] ; | |
12287 | ||
12288 | if (!args) SWIG_fail; | |
12289 | swig_obj[0] = args; | |
12290 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12291 | if (!SWIG_IsOK(res1)) { | |
12292 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12293 | } | |
12294 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12295 | { | |
12296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12297 | result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
12298 | wxPyEndAllowThreads(__tstate); | |
12299 | if (PyErr_Occurred()) SWIG_fail; | |
12300 | } | |
12301 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12302 | return resultobj; | |
12303 | fail: | |
12304 | return NULL; | |
d14a1e28 RD |
12305 | } |
12306 | ||
12307 | ||
0085ce49 RD |
12308 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12309 | PyObject *resultobj = 0; | |
12310 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12311 | wxFontEncoding result; | |
12312 | void *argp1 = 0 ; | |
12313 | int res1 = 0 ; | |
12314 | PyObject *swig_obj[1] ; | |
12315 | ||
12316 | if (!args) SWIG_fail; | |
12317 | swig_obj[0] = args; | |
12318 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12319 | if (!SWIG_IsOK(res1)) { | |
12320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12321 | } | |
12322 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12323 | { | |
12324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12325 | result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
12326 | wxPyEndAllowThreads(__tstate); | |
12327 | if (PyErr_Occurred()) SWIG_fail; | |
12328 | } | |
12329 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12330 | return resultobj; | |
12331 | fail: | |
12332 | return NULL; | |
12333 | } | |
12334 | ||
12335 | ||
12336 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12337 | PyObject *resultobj = 0; | |
12338 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12339 | int arg2 ; | |
12340 | void *argp1 = 0 ; | |
12341 | int res1 = 0 ; | |
12342 | int val2 ; | |
12343 | int ecode2 = 0 ; | |
12344 | PyObject * obj0 = 0 ; | |
12345 | PyObject * obj1 = 0 ; | |
12346 | char * kwnames[] = { | |
12347 | (char *) "self",(char *) "pointsize", NULL | |
12348 | }; | |
12349 | ||
12350 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12351 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12352 | if (!SWIG_IsOK(res1)) { | |
12353 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12354 | } | |
12355 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12356 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12357 | if (!SWIG_IsOK(ecode2)) { | |
12358 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
12359 | } | |
12360 | arg2 = static_cast< int >(val2); | |
12361 | { | |
12362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12363 | (arg1)->SetPointSize(arg2); | |
12364 | wxPyEndAllowThreads(__tstate); | |
12365 | if (PyErr_Occurred()) SWIG_fail; | |
12366 | } | |
12367 | resultobj = SWIG_Py_Void(); | |
12368 | return resultobj; | |
12369 | fail: | |
12370 | return NULL; | |
12371 | } | |
12372 | ||
12373 | ||
12374 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12375 | PyObject *resultobj = 0; | |
12376 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12377 | wxFontStyle arg2 ; | |
12378 | void *argp1 = 0 ; | |
12379 | int res1 = 0 ; | |
12380 | int val2 ; | |
12381 | int ecode2 = 0 ; | |
12382 | PyObject * obj0 = 0 ; | |
12383 | PyObject * obj1 = 0 ; | |
12384 | char * kwnames[] = { | |
12385 | (char *) "self",(char *) "style", NULL | |
12386 | }; | |
12387 | ||
12388 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
12389 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12390 | if (!SWIG_IsOK(res1)) { | |
12391 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12392 | } | |
12393 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12394 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12395 | if (!SWIG_IsOK(ecode2)) { | |
12396 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'"); | |
12397 | } | |
12398 | arg2 = static_cast< wxFontStyle >(val2); | |
12399 | { | |
12400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12401 | (arg1)->SetStyle(arg2); | |
12402 | wxPyEndAllowThreads(__tstate); | |
12403 | if (PyErr_Occurred()) SWIG_fail; | |
12404 | } | |
12405 | resultobj = SWIG_Py_Void(); | |
12406 | return resultobj; | |
12407 | fail: | |
12408 | return NULL; | |
12409 | } | |
12410 | ||
12411 | ||
12412 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12413 | PyObject *resultobj = 0; | |
12414 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12415 | wxFontWeight arg2 ; | |
12416 | void *argp1 = 0 ; | |
12417 | int res1 = 0 ; | |
12418 | int val2 ; | |
12419 | int ecode2 = 0 ; | |
12420 | PyObject * obj0 = 0 ; | |
12421 | PyObject * obj1 = 0 ; | |
12422 | char * kwnames[] = { | |
12423 | (char *) "self",(char *) "weight", NULL | |
12424 | }; | |
12425 | ||
12426 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
12427 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12428 | if (!SWIG_IsOK(res1)) { | |
12429 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12430 | } | |
12431 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12432 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12433 | if (!SWIG_IsOK(ecode2)) { | |
12434 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'"); | |
12435 | } | |
12436 | arg2 = static_cast< wxFontWeight >(val2); | |
12437 | { | |
12438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12439 | (arg1)->SetWeight(arg2); | |
12440 | wxPyEndAllowThreads(__tstate); | |
12441 | if (PyErr_Occurred()) SWIG_fail; | |
12442 | } | |
12443 | resultobj = SWIG_Py_Void(); | |
12444 | return resultobj; | |
12445 | fail: | |
12446 | return NULL; | |
12447 | } | |
12448 | ||
12449 | ||
12450 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12451 | PyObject *resultobj = 0; | |
12452 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12453 | bool arg2 ; | |
12454 | void *argp1 = 0 ; | |
12455 | int res1 = 0 ; | |
12456 | bool val2 ; | |
12457 | int ecode2 = 0 ; | |
12458 | PyObject * obj0 = 0 ; | |
12459 | PyObject * obj1 = 0 ; | |
12460 | char * kwnames[] = { | |
12461 | (char *) "self",(char *) "underlined", NULL | |
12462 | }; | |
12463 | ||
12464 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
12465 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12466 | if (!SWIG_IsOK(res1)) { | |
12467 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12468 | } | |
12469 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12470 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
12471 | if (!SWIG_IsOK(ecode2)) { | |
12472 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
12473 | } | |
12474 | arg2 = static_cast< bool >(val2); | |
12475 | { | |
12476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12477 | (arg1)->SetUnderlined(arg2); | |
12478 | wxPyEndAllowThreads(__tstate); | |
12479 | if (PyErr_Occurred()) SWIG_fail; | |
12480 | } | |
12481 | resultobj = SWIG_Py_Void(); | |
12482 | return resultobj; | |
12483 | fail: | |
12484 | return NULL; | |
12485 | } | |
12486 | ||
12487 | ||
12488 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12489 | PyObject *resultobj = 0; | |
12490 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12491 | wxString arg2 ; | |
704eda0c | 12492 | bool result; |
0085ce49 RD |
12493 | void *argp1 = 0 ; |
12494 | int res1 = 0 ; | |
12495 | PyObject * obj0 = 0 ; | |
12496 | PyObject * obj1 = 0 ; | |
12497 | char * kwnames[] = { | |
12498 | (char *) "self",(char *) "facename", NULL | |
12499 | }; | |
12500 | ||
12501 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
12502 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12503 | if (!SWIG_IsOK(res1)) { | |
12504 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12505 | } | |
12506 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12507 | { | |
12508 | wxString* sptr = wxString_in_helper(obj1); | |
12509 | if (sptr == NULL) SWIG_fail; | |
12510 | arg2 = *sptr; | |
12511 | delete sptr; | |
12512 | } | |
12513 | { | |
12514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 12515 | result = (bool)(arg1)->SetFaceName(arg2); |
0085ce49 RD |
12516 | wxPyEndAllowThreads(__tstate); |
12517 | if (PyErr_Occurred()) SWIG_fail; | |
12518 | } | |
704eda0c RD |
12519 | { |
12520 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12521 | } | |
0085ce49 RD |
12522 | return resultobj; |
12523 | fail: | |
12524 | return NULL; | |
12525 | } | |
12526 | ||
12527 | ||
12528 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12529 | PyObject *resultobj = 0; | |
12530 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12531 | wxFontFamily arg2 ; | |
12532 | void *argp1 = 0 ; | |
12533 | int res1 = 0 ; | |
12534 | int val2 ; | |
12535 | int ecode2 = 0 ; | |
12536 | PyObject * obj0 = 0 ; | |
12537 | PyObject * obj1 = 0 ; | |
12538 | char * kwnames[] = { | |
12539 | (char *) "self",(char *) "family", NULL | |
12540 | }; | |
12541 | ||
12542 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
12543 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12544 | if (!SWIG_IsOK(res1)) { | |
12545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12546 | } | |
12547 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12548 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12549 | if (!SWIG_IsOK(ecode2)) { | |
12550 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
12551 | } | |
12552 | arg2 = static_cast< wxFontFamily >(val2); | |
12553 | { | |
12554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12555 | (arg1)->SetFamily(arg2); | |
12556 | wxPyEndAllowThreads(__tstate); | |
12557 | if (PyErr_Occurred()) SWIG_fail; | |
12558 | } | |
12559 | resultobj = SWIG_Py_Void(); | |
12560 | return resultobj; | |
12561 | fail: | |
12562 | return NULL; | |
12563 | } | |
12564 | ||
12565 | ||
12566 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12567 | PyObject *resultobj = 0; | |
12568 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12569 | wxFontEncoding arg2 ; | |
12570 | void *argp1 = 0 ; | |
12571 | int res1 = 0 ; | |
12572 | int val2 ; | |
12573 | int ecode2 = 0 ; | |
12574 | PyObject * obj0 = 0 ; | |
12575 | PyObject * obj1 = 0 ; | |
12576 | char * kwnames[] = { | |
12577 | (char *) "self",(char *) "encoding", NULL | |
12578 | }; | |
12579 | ||
12580 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
12581 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12582 | if (!SWIG_IsOK(res1)) { | |
12583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12584 | } | |
12585 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12586 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12587 | if (!SWIG_IsOK(ecode2)) { | |
12588 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
12589 | } | |
12590 | arg2 = static_cast< wxFontEncoding >(val2); | |
12591 | { | |
12592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12593 | (arg1)->SetEncoding(arg2); | |
12594 | wxPyEndAllowThreads(__tstate); | |
12595 | if (PyErr_Occurred()) SWIG_fail; | |
12596 | } | |
12597 | resultobj = SWIG_Py_Void(); | |
12598 | return resultobj; | |
12599 | fail: | |
12600 | return NULL; | |
12601 | } | |
12602 | ||
12603 | ||
12604 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12605 | PyObject *resultobj = 0; | |
12606 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12607 | wxString *arg2 = 0 ; | |
12608 | bool result; | |
12609 | void *argp1 = 0 ; | |
12610 | int res1 = 0 ; | |
12611 | bool temp2 = false ; | |
12612 | PyObject * obj0 = 0 ; | |
12613 | PyObject * obj1 = 0 ; | |
12614 | char * kwnames[] = { | |
12615 | (char *) "self",(char *) "s", NULL | |
12616 | }; | |
12617 | ||
12618 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
12619 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12620 | if (!SWIG_IsOK(res1)) { | |
12621 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12622 | } | |
12623 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12624 | { | |
12625 | arg2 = wxString_in_helper(obj1); | |
12626 | if (arg2 == NULL) SWIG_fail; | |
12627 | temp2 = true; | |
12628 | } | |
12629 | { | |
12630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12631 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
12632 | wxPyEndAllowThreads(__tstate); | |
12633 | if (PyErr_Occurred()) SWIG_fail; | |
12634 | } | |
12635 | { | |
12636 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12637 | } | |
12638 | { | |
12639 | if (temp2) | |
12640 | delete arg2; | |
12641 | } | |
12642 | return resultobj; | |
12643 | fail: | |
12644 | { | |
12645 | if (temp2) | |
12646 | delete arg2; | |
12647 | } | |
12648 | return NULL; | |
d14a1e28 RD |
12649 | } |
12650 | ||
12651 | ||
0085ce49 RD |
12652 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12653 | PyObject *resultobj = 0; | |
12654 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12655 | wxString result; | |
12656 | void *argp1 = 0 ; | |
12657 | int res1 = 0 ; | |
12658 | PyObject *swig_obj[1] ; | |
12659 | ||
12660 | if (!args) SWIG_fail; | |
12661 | swig_obj[0] = args; | |
12662 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12663 | if (!SWIG_IsOK(res1)) { | |
12664 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12665 | } | |
12666 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12667 | { | |
12668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12669 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
12670 | wxPyEndAllowThreads(__tstate); | |
12671 | if (PyErr_Occurred()) SWIG_fail; | |
12672 | } | |
12673 | { | |
12674 | #if wxUSE_UNICODE | |
12675 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12676 | #else | |
12677 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12678 | #endif | |
12679 | } | |
12680 | return resultobj; | |
12681 | fail: | |
12682 | return NULL; | |
d14a1e28 RD |
12683 | } |
12684 | ||
12685 | ||
0085ce49 RD |
12686 | SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12687 | PyObject *resultobj = 0; | |
12688 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12689 | wxString result; | |
12690 | void *argp1 = 0 ; | |
12691 | int res1 = 0 ; | |
12692 | PyObject *swig_obj[1] ; | |
12693 | ||
12694 | if (!args) SWIG_fail; | |
12695 | swig_obj[0] = args; | |
12696 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12697 | if (!SWIG_IsOK(res1)) { | |
12698 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12699 | } | |
12700 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12701 | { | |
12702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12703 | result = wxNativeFontInfo___str__(arg1); | |
12704 | wxPyEndAllowThreads(__tstate); | |
12705 | if (PyErr_Occurred()) SWIG_fail; | |
12706 | } | |
12707 | { | |
12708 | #if wxUSE_UNICODE | |
12709 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12710 | #else | |
12711 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12712 | #endif | |
12713 | } | |
12714 | return resultobj; | |
12715 | fail: | |
12716 | return NULL; | |
12717 | } | |
12718 | ||
12719 | ||
12720 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12721 | PyObject *resultobj = 0; | |
12722 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12723 | wxString *arg2 = 0 ; | |
12724 | bool result; | |
12725 | void *argp1 = 0 ; | |
12726 | int res1 = 0 ; | |
12727 | bool temp2 = false ; | |
12728 | PyObject * obj0 = 0 ; | |
12729 | PyObject * obj1 = 0 ; | |
12730 | char * kwnames[] = { | |
12731 | (char *) "self",(char *) "s", NULL | |
12732 | }; | |
12733 | ||
12734 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail; | |
12735 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12736 | if (!SWIG_IsOK(res1)) { | |
12737 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12738 | } | |
12739 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12740 | { | |
12741 | arg2 = wxString_in_helper(obj1); | |
12742 | if (arg2 == NULL) SWIG_fail; | |
12743 | temp2 = true; | |
12744 | } | |
12745 | { | |
12746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12747 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
12748 | wxPyEndAllowThreads(__tstate); | |
12749 | if (PyErr_Occurred()) SWIG_fail; | |
12750 | } | |
12751 | { | |
12752 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12753 | } | |
12754 | { | |
12755 | if (temp2) | |
12756 | delete arg2; | |
12757 | } | |
12758 | return resultobj; | |
12759 | fail: | |
12760 | { | |
12761 | if (temp2) | |
12762 | delete arg2; | |
12763 | } | |
12764 | return NULL; | |
d14a1e28 RD |
12765 | } |
12766 | ||
12767 | ||
0085ce49 RD |
12768 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12769 | PyObject *resultobj = 0; | |
12770 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12771 | wxString result; | |
12772 | void *argp1 = 0 ; | |
12773 | int res1 = 0 ; | |
12774 | PyObject *swig_obj[1] ; | |
12775 | ||
12776 | if (!args) SWIG_fail; | |
12777 | swig_obj[0] = args; | |
12778 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12779 | if (!SWIG_IsOK(res1)) { | |
12780 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12781 | } | |
12782 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12783 | { | |
12784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12785 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
12786 | wxPyEndAllowThreads(__tstate); | |
12787 | if (PyErr_Occurred()) SWIG_fail; | |
12788 | } | |
12789 | { | |
12790 | #if wxUSE_UNICODE | |
12791 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12792 | #else | |
12793 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12794 | #endif | |
12795 | } | |
12796 | return resultobj; | |
12797 | fail: | |
12798 | return NULL; | |
d14a1e28 RD |
12799 | } |
12800 | ||
12801 | ||
0085ce49 RD |
12802 | SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12803 | PyObject *obj; | |
12804 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12805 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj)); | |
12806 | return SWIG_Py_Void(); | |
d14a1e28 RD |
12807 | } |
12808 | ||
0085ce49 RD |
12809 | SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12810 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
12811 | } |
12812 | ||
0085ce49 RD |
12813 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12814 | PyObject *resultobj = 0; | |
12815 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12816 | wxString *arg2 = (wxString *) 0 ; | |
12817 | void *argp1 = 0 ; | |
12818 | int res1 = 0 ; | |
12819 | bool temp2 = false ; | |
12820 | PyObject *swig_obj[2] ; | |
12821 | ||
12822 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail; | |
12823 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12824 | if (!SWIG_IsOK(res1)) { | |
12825 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12826 | } | |
12827 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12828 | { | |
12829 | arg2 = wxString_in_helper(swig_obj[1]); | |
12830 | if (arg2 == NULL) SWIG_fail; | |
12831 | temp2 = true; | |
12832 | } | |
12833 | if (arg1) (arg1)->facename = *arg2; | |
12834 | ||
12835 | resultobj = SWIG_Py_Void(); | |
12836 | { | |
12837 | if (temp2) | |
12838 | delete arg2; | |
12839 | } | |
12840 | return resultobj; | |
12841 | fail: | |
12842 | { | |
12843 | if (temp2) | |
12844 | delete arg2; | |
12845 | } | |
12846 | return NULL; | |
d14a1e28 RD |
12847 | } |
12848 | ||
12849 | ||
0085ce49 RD |
12850 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12851 | PyObject *resultobj = 0; | |
12852 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12853 | wxString *result = 0 ; | |
12854 | void *argp1 = 0 ; | |
12855 | int res1 = 0 ; | |
12856 | PyObject *swig_obj[1] ; | |
12857 | ||
12858 | if (!args) SWIG_fail; | |
12859 | swig_obj[0] = args; | |
12860 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12861 | if (!SWIG_IsOK(res1)) { | |
12862 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12863 | } | |
12864 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12865 | result = (wxString *)& ((arg1)->facename); | |
12866 | { | |
12867 | #if wxUSE_UNICODE | |
12868 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12869 | #else | |
12870 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12871 | #endif | |
12872 | } | |
12873 | return resultobj; | |
12874 | fail: | |
12875 | return NULL; | |
d14a1e28 RD |
12876 | } |
12877 | ||
12878 | ||
0085ce49 RD |
12879 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12880 | PyObject *resultobj = 0; | |
12881 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12882 | wxFontEncoding arg2 ; | |
12883 | void *argp1 = 0 ; | |
12884 | int res1 = 0 ; | |
12885 | int val2 ; | |
12886 | int ecode2 = 0 ; | |
12887 | PyObject *swig_obj[2] ; | |
12888 | ||
12889 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail; | |
12890 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12891 | if (!SWIG_IsOK(res1)) { | |
12892 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12893 | } | |
12894 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12895 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
12896 | if (!SWIG_IsOK(ecode2)) { | |
12897 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
12898 | } | |
12899 | arg2 = static_cast< wxFontEncoding >(val2); | |
12900 | if (arg1) (arg1)->encoding = arg2; | |
12901 | ||
12902 | resultobj = SWIG_Py_Void(); | |
12903 | return resultobj; | |
12904 | fail: | |
12905 | return NULL; | |
d14a1e28 RD |
12906 | } |
12907 | ||
12908 | ||
0085ce49 RD |
12909 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12910 | PyObject *resultobj = 0; | |
12911 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12912 | wxFontEncoding result; | |
12913 | void *argp1 = 0 ; | |
12914 | int res1 = 0 ; | |
12915 | PyObject *swig_obj[1] ; | |
12916 | ||
12917 | if (!args) SWIG_fail; | |
12918 | swig_obj[0] = args; | |
12919 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12920 | if (!SWIG_IsOK(res1)) { | |
12921 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12922 | } | |
12923 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12924 | result = (wxFontEncoding) ((arg1)->encoding); | |
12925 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12926 | return resultobj; | |
12927 | fail: | |
12928 | return NULL; | |
d14a1e28 RD |
12929 | } |
12930 | ||
12931 | ||
0085ce49 RD |
12932 | SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12933 | PyObject *resultobj = 0; | |
12934 | wxNativeEncodingInfo *result = 0 ; | |
12935 | ||
12936 | if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail; | |
12937 | { | |
12938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12939 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
12940 | wxPyEndAllowThreads(__tstate); | |
12941 | if (PyErr_Occurred()) SWIG_fail; | |
12942 | } | |
12943 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 ); | |
12944 | return resultobj; | |
12945 | fail: | |
12946 | return NULL; | |
d14a1e28 RD |
12947 | } |
12948 | ||
12949 | ||
0085ce49 RD |
12950 | SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12951 | PyObject *resultobj = 0; | |
12952 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12953 | void *argp1 = 0 ; | |
12954 | int res1 = 0 ; | |
12955 | PyObject *swig_obj[1] ; | |
12956 | ||
12957 | if (!args) SWIG_fail; | |
12958 | swig_obj[0] = args; | |
12959 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 ); | |
12960 | if (!SWIG_IsOK(res1)) { | |
12961 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12962 | } | |
12963 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12964 | { | |
12965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12966 | delete arg1; | |
d14a1e28 | 12967 | |
0085ce49 RD |
12968 | wxPyEndAllowThreads(__tstate); |
12969 | if (PyErr_Occurred()) SWIG_fail; | |
12970 | } | |
12971 | resultobj = SWIG_Py_Void(); | |
12972 | return resultobj; | |
12973 | fail: | |
12974 | return NULL; | |
12975 | } | |
12976 | ||
12977 | ||
12978 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12979 | PyObject *resultobj = 0; | |
12980 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12981 | wxString *arg2 = 0 ; | |
12982 | bool result; | |
12983 | void *argp1 = 0 ; | |
12984 | int res1 = 0 ; | |
12985 | bool temp2 = false ; | |
12986 | PyObject * obj0 = 0 ; | |
12987 | PyObject * obj1 = 0 ; | |
12988 | char * kwnames[] = { | |
12989 | (char *) "self",(char *) "s", NULL | |
12990 | }; | |
12991 | ||
12992 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
12993 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12994 | if (!SWIG_IsOK(res1)) { | |
12995 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12996 | } | |
12997 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12998 | { | |
12999 | arg2 = wxString_in_helper(obj1); | |
13000 | if (arg2 == NULL) SWIG_fail; | |
13001 | temp2 = true; | |
13002 | } | |
13003 | { | |
13004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13005 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
13006 | wxPyEndAllowThreads(__tstate); | |
13007 | if (PyErr_Occurred()) SWIG_fail; | |
13008 | } | |
13009 | { | |
13010 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13011 | } | |
13012 | { | |
13013 | if (temp2) | |
13014 | delete arg2; | |
13015 | } | |
13016 | return resultobj; | |
13017 | fail: | |
13018 | { | |
13019 | if (temp2) | |
13020 | delete arg2; | |
13021 | } | |
13022 | return NULL; | |
d14a1e28 RD |
13023 | } |
13024 | ||
13025 | ||
0085ce49 RD |
13026 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13027 | PyObject *resultobj = 0; | |
13028 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13029 | wxString result; | |
13030 | void *argp1 = 0 ; | |
13031 | int res1 = 0 ; | |
13032 | PyObject *swig_obj[1] ; | |
13033 | ||
13034 | if (!args) SWIG_fail; | |
13035 | swig_obj[0] = args; | |
13036 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13037 | if (!SWIG_IsOK(res1)) { | |
13038 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'"); | |
13039 | } | |
13040 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13041 | { | |
13042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13043 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
13044 | wxPyEndAllowThreads(__tstate); | |
13045 | if (PyErr_Occurred()) SWIG_fail; | |
13046 | } | |
13047 | { | |
13048 | #if wxUSE_UNICODE | |
13049 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13050 | #else | |
13051 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13052 | #endif | |
13053 | } | |
13054 | return resultobj; | |
13055 | fail: | |
13056 | return NULL; | |
d14a1e28 RD |
13057 | } |
13058 | ||
13059 | ||
0085ce49 RD |
13060 | SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13061 | PyObject *obj; | |
13062 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13063 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj)); | |
13064 | return SWIG_Py_Void(); | |
d14a1e28 RD |
13065 | } |
13066 | ||
0085ce49 RD |
13067 | SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13068 | return SWIG_Python_InitShadowInstance(args); | |
13069 | } | |
d14a1e28 | 13070 | |
0085ce49 RD |
13071 | SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13072 | PyObject *resultobj = 0; | |
13073 | wxFontEncoding arg1 ; | |
13074 | wxNativeEncodingInfo *result = 0 ; | |
13075 | int val1 ; | |
13076 | int ecode1 = 0 ; | |
13077 | PyObject * obj0 = 0 ; | |
13078 | char * kwnames[] = { | |
13079 | (char *) "encoding", NULL | |
13080 | }; | |
13081 | ||
13082 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail; | |
13083 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13084 | if (!SWIG_IsOK(ecode1)) { | |
13085 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
13086 | } | |
13087 | arg1 = static_cast< wxFontEncoding >(val1); | |
13088 | { | |
13089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13090 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1); | |
13091 | wxPyEndAllowThreads(__tstate); | |
13092 | if (PyErr_Occurred()) SWIG_fail; | |
13093 | } | |
13094 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13095 | return resultobj; | |
13096 | fail: | |
13097 | return NULL; | |
13098 | } | |
13099 | ||
13100 | ||
13101 | SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13102 | PyObject *resultobj = 0; | |
13103 | wxNativeEncodingInfo *arg1 = 0 ; | |
13104 | bool result; | |
13105 | void *argp1 = 0 ; | |
13106 | int res1 = 0 ; | |
13107 | PyObject * obj0 = 0 ; | |
13108 | char * kwnames[] = { | |
13109 | (char *) "info", NULL | |
13110 | }; | |
13111 | ||
13112 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail; | |
13113 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0); | |
13114 | if (!SWIG_IsOK(res1)) { | |
13115 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
13116 | } | |
13117 | if (!argp1) { | |
13118 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
13119 | } | |
13120 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13121 | { | |
13122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13123 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
13124 | wxPyEndAllowThreads(__tstate); | |
13125 | if (PyErr_Occurred()) SWIG_fail; | |
13126 | } | |
13127 | { | |
13128 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13129 | } | |
13130 | return resultobj; | |
13131 | fail: | |
13132 | return NULL; | |
d14a1e28 RD |
13133 | } |
13134 | ||
13135 | ||
0085ce49 RD |
13136 | SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13137 | PyObject *resultobj = 0; | |
13138 | wxFontMapper *result = 0 ; | |
13139 | ||
13140 | if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail; | |
13141 | { | |
13142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13143 | result = (wxFontMapper *)new wxFontMapper(); | |
13144 | wxPyEndAllowThreads(__tstate); | |
13145 | if (PyErr_Occurred()) SWIG_fail; | |
13146 | } | |
13147 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 ); | |
13148 | return resultobj; | |
13149 | fail: | |
13150 | return NULL; | |
d14a1e28 RD |
13151 | } |
13152 | ||
13153 | ||
0085ce49 RD |
13154 | SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13155 | PyObject *resultobj = 0; | |
13156 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13157 | void *argp1 = 0 ; | |
13158 | int res1 = 0 ; | |
13159 | PyObject *swig_obj[1] ; | |
13160 | ||
13161 | if (!args) SWIG_fail; | |
13162 | swig_obj[0] = args; | |
13163 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 ); | |
13164 | if (!SWIG_IsOK(res1)) { | |
13165 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13166 | } | |
13167 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13168 | { | |
13169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13170 | delete arg1; | |
d14a1e28 | 13171 | |
0085ce49 RD |
13172 | wxPyEndAllowThreads(__tstate); |
13173 | if (PyErr_Occurred()) SWIG_fail; | |
13174 | } | |
13175 | resultobj = SWIG_Py_Void(); | |
13176 | return resultobj; | |
13177 | fail: | |
13178 | return NULL; | |
d14a1e28 RD |
13179 | } |
13180 | ||
13181 | ||
0085ce49 RD |
13182 | SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13183 | PyObject *resultobj = 0; | |
13184 | wxFontMapper *result = 0 ; | |
13185 | ||
13186 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail; | |
13187 | { | |
13188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13189 | result = (wxFontMapper *)wxFontMapper::Get(); | |
13190 | wxPyEndAllowThreads(__tstate); | |
13191 | if (PyErr_Occurred()) SWIG_fail; | |
13192 | } | |
13193 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13194 | return resultobj; | |
13195 | fail: | |
13196 | return NULL; | |
13197 | } | |
13198 | ||
13199 | ||
13200 | SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13201 | PyObject *resultobj = 0; | |
13202 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13203 | wxFontMapper *result = 0 ; | |
13204 | void *argp1 = 0 ; | |
13205 | int res1 = 0 ; | |
13206 | PyObject * obj0 = 0 ; | |
13207 | char * kwnames[] = { | |
13208 | (char *) "mapper", NULL | |
13209 | }; | |
13210 | ||
13211 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail; | |
13212 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13213 | if (!SWIG_IsOK(res1)) { | |
13214 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13215 | } | |
13216 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13217 | { | |
13218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13219 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
13220 | wxPyEndAllowThreads(__tstate); | |
13221 | if (PyErr_Occurred()) SWIG_fail; | |
13222 | } | |
13223 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13224 | return resultobj; | |
13225 | fail: | |
13226 | return NULL; | |
13227 | } | |
13228 | ||
13229 | ||
13230 | SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13231 | PyObject *resultobj = 0; | |
13232 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13233 | wxString *arg2 = 0 ; | |
13234 | bool arg3 = (bool) true ; | |
13235 | wxFontEncoding result; | |
13236 | void *argp1 = 0 ; | |
13237 | int res1 = 0 ; | |
13238 | bool temp2 = false ; | |
13239 | bool val3 ; | |
13240 | int ecode3 = 0 ; | |
13241 | PyObject * obj0 = 0 ; | |
13242 | PyObject * obj1 = 0 ; | |
13243 | PyObject * obj2 = 0 ; | |
13244 | char * kwnames[] = { | |
13245 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
13246 | }; | |
13247 | ||
13248 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13249 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13250 | if (!SWIG_IsOK(res1)) { | |
13251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13252 | } | |
13253 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13254 | { | |
13255 | arg2 = wxString_in_helper(obj1); | |
13256 | if (arg2 == NULL) SWIG_fail; | |
13257 | temp2 = true; | |
13258 | } | |
13259 | if (obj2) { | |
13260 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
13261 | if (!SWIG_IsOK(ecode3)) { | |
13262 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'"); | |
13263 | } | |
13264 | arg3 = static_cast< bool >(val3); | |
13265 | } | |
13266 | { | |
13267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13268 | result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
13269 | wxPyEndAllowThreads(__tstate); | |
13270 | if (PyErr_Occurred()) SWIG_fail; | |
13271 | } | |
13272 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13273 | { | |
13274 | if (temp2) | |
13275 | delete arg2; | |
13276 | } | |
13277 | return resultobj; | |
13278 | fail: | |
13279 | { | |
13280 | if (temp2) | |
13281 | delete arg2; | |
13282 | } | |
13283 | return NULL; | |
e6ffcedd RD |
13284 | } |
13285 | ||
13286 | ||
0085ce49 RD |
13287 | SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13288 | PyObject *resultobj = 0; | |
13289 | size_t result; | |
13290 | ||
13291 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail; | |
13292 | { | |
13293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13294 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
13295 | wxPyEndAllowThreads(__tstate); | |
13296 | if (PyErr_Occurred()) SWIG_fail; | |
13297 | } | |
13298 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
13299 | return resultobj; | |
13300 | fail: | |
13301 | return NULL; | |
13302 | } | |
13303 | ||
13304 | ||
13305 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13306 | PyObject *resultobj = 0; | |
13307 | size_t arg1 ; | |
13308 | wxFontEncoding result; | |
13309 | size_t val1 ; | |
13310 | int ecode1 = 0 ; | |
13311 | PyObject * obj0 = 0 ; | |
13312 | char * kwnames[] = { | |
13313 | (char *) "n", NULL | |
13314 | }; | |
13315 | ||
13316 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail; | |
13317 | ecode1 = SWIG_AsVal_size_t(obj0, &val1); | |
13318 | if (!SWIG_IsOK(ecode1)) { | |
13319 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'"); | |
13320 | } | |
13321 | arg1 = static_cast< size_t >(val1); | |
13322 | { | |
13323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13324 | result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1); | |
13325 | wxPyEndAllowThreads(__tstate); | |
13326 | if (PyErr_Occurred()) SWIG_fail; | |
13327 | } | |
13328 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13329 | return resultobj; | |
13330 | fail: | |
13331 | return NULL; | |
13332 | } | |
13333 | ||
13334 | ||
13335 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13336 | PyObject *resultobj = 0; | |
13337 | wxFontEncoding arg1 ; | |
13338 | wxString result; | |
13339 | int val1 ; | |
13340 | int ecode1 = 0 ; | |
13341 | PyObject * obj0 = 0 ; | |
13342 | char * kwnames[] = { | |
13343 | (char *) "encoding", NULL | |
13344 | }; | |
13345 | ||
13346 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail; | |
13347 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13348 | if (!SWIG_IsOK(ecode1)) { | |
13349 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
13350 | } | |
13351 | arg1 = static_cast< wxFontEncoding >(val1); | |
13352 | { | |
13353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13354 | result = wxFontMapper::GetEncodingName(arg1); | |
13355 | wxPyEndAllowThreads(__tstate); | |
13356 | if (PyErr_Occurred()) SWIG_fail; | |
13357 | } | |
13358 | { | |
13359 | #if wxUSE_UNICODE | |
13360 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13361 | #else | |
13362 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13363 | #endif | |
13364 | } | |
13365 | return resultobj; | |
13366 | fail: | |
13367 | return NULL; | |
d14a1e28 RD |
13368 | } |
13369 | ||
13370 | ||
0085ce49 RD |
13371 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13372 | PyObject *resultobj = 0; | |
13373 | wxFontEncoding arg1 ; | |
13374 | wxString result; | |
13375 | int val1 ; | |
13376 | int ecode1 = 0 ; | |
13377 | PyObject * obj0 = 0 ; | |
13378 | char * kwnames[] = { | |
13379 | (char *) "encoding", NULL | |
13380 | }; | |
13381 | ||
13382 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail; | |
13383 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13384 | if (!SWIG_IsOK(ecode1)) { | |
13385 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
13386 | } | |
13387 | arg1 = static_cast< wxFontEncoding >(val1); | |
13388 | { | |
13389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13390 | result = wxFontMapper::GetEncodingDescription(arg1); | |
13391 | wxPyEndAllowThreads(__tstate); | |
13392 | if (PyErr_Occurred()) SWIG_fail; | |
13393 | } | |
13394 | { | |
13395 | #if wxUSE_UNICODE | |
13396 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13397 | #else | |
13398 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13399 | #endif | |
13400 | } | |
13401 | return resultobj; | |
13402 | fail: | |
13403 | return NULL; | |
d14a1e28 RD |
13404 | } |
13405 | ||
13406 | ||
0085ce49 RD |
13407 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13408 | PyObject *resultobj = 0; | |
13409 | wxString *arg1 = 0 ; | |
13410 | wxFontEncoding result; | |
13411 | bool temp1 = false ; | |
13412 | PyObject * obj0 = 0 ; | |
13413 | char * kwnames[] = { | |
13414 | (char *) "name", NULL | |
13415 | }; | |
13416 | ||
13417 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail; | |
13418 | { | |
13419 | arg1 = wxString_in_helper(obj0); | |
13420 | if (arg1 == NULL) SWIG_fail; | |
13421 | temp1 = true; | |
13422 | } | |
13423 | { | |
13424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13425 | result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); | |
13426 | wxPyEndAllowThreads(__tstate); | |
13427 | if (PyErr_Occurred()) SWIG_fail; | |
13428 | } | |
13429 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13430 | { | |
13431 | if (temp1) | |
13432 | delete arg1; | |
13433 | } | |
13434 | return resultobj; | |
13435 | fail: | |
13436 | { | |
13437 | if (temp1) | |
13438 | delete arg1; | |
13439 | } | |
13440 | return NULL; | |
d14a1e28 RD |
13441 | } |
13442 | ||
13443 | ||
0085ce49 RD |
13444 | SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13445 | PyObject *resultobj = 0; | |
13446 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13447 | wxString *arg2 = 0 ; | |
13448 | void *argp1 = 0 ; | |
13449 | int res1 = 0 ; | |
13450 | bool temp2 = false ; | |
13451 | PyObject * obj0 = 0 ; | |
13452 | PyObject * obj1 = 0 ; | |
13453 | char * kwnames[] = { | |
13454 | (char *) "self",(char *) "prefix", NULL | |
13455 | }; | |
13456 | ||
13457 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
13458 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13459 | if (!SWIG_IsOK(res1)) { | |
13460 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13461 | } | |
13462 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13463 | { | |
13464 | arg2 = wxString_in_helper(obj1); | |
13465 | if (arg2 == NULL) SWIG_fail; | |
13466 | temp2 = true; | |
13467 | } | |
13468 | { | |
13469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13470 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
13471 | wxPyEndAllowThreads(__tstate); | |
13472 | if (PyErr_Occurred()) SWIG_fail; | |
13473 | } | |
13474 | resultobj = SWIG_Py_Void(); | |
13475 | { | |
13476 | if (temp2) | |
13477 | delete arg2; | |
13478 | } | |
13479 | return resultobj; | |
13480 | fail: | |
13481 | { | |
13482 | if (temp2) | |
13483 | delete arg2; | |
13484 | } | |
13485 | return NULL; | |
d14a1e28 RD |
13486 | } |
13487 | ||
13488 | ||
0085ce49 RD |
13489 | SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13490 | PyObject *resultobj = 0; | |
13491 | wxString result; | |
13492 | ||
13493 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail; | |
13494 | { | |
13495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13496 | result = wxFontMapper::GetDefaultConfigPath(); | |
13497 | wxPyEndAllowThreads(__tstate); | |
13498 | if (PyErr_Occurred()) SWIG_fail; | |
13499 | } | |
13500 | { | |
13501 | #if wxUSE_UNICODE | |
13502 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13503 | #else | |
13504 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13505 | #endif | |
13506 | } | |
13507 | return resultobj; | |
13508 | fail: | |
13509 | return NULL; | |
13510 | } | |
13511 | ||
13512 | ||
13513 | SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13514 | PyObject *resultobj = 0; | |
13515 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13516 | wxFontEncoding arg2 ; | |
13517 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13518 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13519 | bool arg4 = (bool) true ; | |
13520 | PyObject *result = 0 ; | |
13521 | void *argp1 = 0 ; | |
13522 | int res1 = 0 ; | |
13523 | int val2 ; | |
13524 | int ecode2 = 0 ; | |
13525 | bool temp3 = false ; | |
13526 | bool val4 ; | |
13527 | int ecode4 = 0 ; | |
13528 | PyObject * obj0 = 0 ; | |
13529 | PyObject * obj1 = 0 ; | |
13530 | PyObject * obj2 = 0 ; | |
13531 | PyObject * obj3 = 0 ; | |
13532 | char * kwnames[] = { | |
13533 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
13534 | }; | |
13535 | ||
13536 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
13537 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13538 | if (!SWIG_IsOK(res1)) { | |
13539 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13540 | } | |
13541 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13542 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13543 | if (!SWIG_IsOK(ecode2)) { | |
13544 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13545 | } | |
13546 | arg2 = static_cast< wxFontEncoding >(val2); | |
13547 | if (obj2) { | |
093d3ff1 | 13548 | { |
0085ce49 RD |
13549 | arg3 = wxString_in_helper(obj2); |
13550 | if (arg3 == NULL) SWIG_fail; | |
13551 | temp3 = true; | |
093d3ff1 | 13552 | } |
0085ce49 RD |
13553 | } |
13554 | if (obj3) { | |
13555 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
13556 | if (!SWIG_IsOK(ecode4)) { | |
13557 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'"); | |
13558 | } | |
13559 | arg4 = static_cast< bool >(val4); | |
13560 | } | |
13561 | { | |
13562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13563 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4); | |
13564 | wxPyEndAllowThreads(__tstate); | |
13565 | if (PyErr_Occurred()) SWIG_fail; | |
13566 | } | |
13567 | resultobj = result; | |
13568 | { | |
13569 | if (temp3) | |
13570 | delete arg3; | |
13571 | } | |
13572 | return resultobj; | |
13573 | fail: | |
13574 | { | |
13575 | if (temp3) | |
13576 | delete arg3; | |
13577 | } | |
13578 | return NULL; | |
13579 | } | |
13580 | ||
13581 | ||
13582 | SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13583 | PyObject *resultobj = 0; | |
13584 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13585 | wxFontEncoding arg2 ; | |
13586 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13587 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13588 | bool result; | |
13589 | void *argp1 = 0 ; | |
13590 | int res1 = 0 ; | |
13591 | int val2 ; | |
13592 | int ecode2 = 0 ; | |
13593 | bool temp3 = false ; | |
13594 | PyObject * obj0 = 0 ; | |
13595 | PyObject * obj1 = 0 ; | |
13596 | PyObject * obj2 = 0 ; | |
13597 | char * kwnames[] = { | |
13598 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
13599 | }; | |
13600 | ||
13601 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13602 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13603 | if (!SWIG_IsOK(res1)) { | |
13604 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13605 | } | |
13606 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13607 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13608 | if (!SWIG_IsOK(ecode2)) { | |
13609 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13610 | } | |
13611 | arg2 = static_cast< wxFontEncoding >(val2); | |
13612 | if (obj2) { | |
d14a1e28 | 13613 | { |
0085ce49 RD |
13614 | arg3 = wxString_in_helper(obj2); |
13615 | if (arg3 == NULL) SWIG_fail; | |
13616 | temp3 = true; | |
d14a1e28 | 13617 | } |
0085ce49 RD |
13618 | } |
13619 | { | |
13620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13621 | result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3); | |
13622 | wxPyEndAllowThreads(__tstate); | |
13623 | if (PyErr_Occurred()) SWIG_fail; | |
13624 | } | |
13625 | { | |
13626 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13627 | } | |
13628 | { | |
13629 | if (temp3) | |
13630 | delete arg3; | |
13631 | } | |
13632 | return resultobj; | |
13633 | fail: | |
13634 | { | |
13635 | if (temp3) | |
13636 | delete arg3; | |
13637 | } | |
13638 | return NULL; | |
13639 | } | |
13640 | ||
13641 | ||
13642 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13643 | PyObject *resultobj = 0; | |
13644 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13645 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13646 | void *argp1 = 0 ; | |
13647 | int res1 = 0 ; | |
13648 | void *argp2 = 0 ; | |
13649 | int res2 = 0 ; | |
13650 | PyObject * obj0 = 0 ; | |
13651 | PyObject * obj1 = 0 ; | |
13652 | char * kwnames[] = { | |
13653 | (char *) "self",(char *) "parent", NULL | |
13654 | }; | |
13655 | ||
13656 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
13657 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13658 | if (!SWIG_IsOK(res1)) { | |
13659 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13660 | } | |
13661 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13662 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13663 | if (!SWIG_IsOK(res2)) { | |
13664 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
13665 | } | |
13666 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
13667 | { | |
13668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13669 | (arg1)->SetDialogParent(arg2); | |
13670 | wxPyEndAllowThreads(__tstate); | |
13671 | if (PyErr_Occurred()) SWIG_fail; | |
13672 | } | |
13673 | resultobj = SWIG_Py_Void(); | |
13674 | return resultobj; | |
13675 | fail: | |
13676 | return NULL; | |
13677 | } | |
13678 | ||
13679 | ||
13680 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13681 | PyObject *resultobj = 0; | |
13682 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13683 | wxString *arg2 = 0 ; | |
13684 | void *argp1 = 0 ; | |
13685 | int res1 = 0 ; | |
13686 | bool temp2 = false ; | |
13687 | PyObject * obj0 = 0 ; | |
13688 | PyObject * obj1 = 0 ; | |
13689 | char * kwnames[] = { | |
13690 | (char *) "self",(char *) "title", NULL | |
13691 | }; | |
13692 | ||
13693 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail; | |
13694 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13695 | if (!SWIG_IsOK(res1)) { | |
13696 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13697 | } | |
13698 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13699 | { | |
13700 | arg2 = wxString_in_helper(obj1); | |
13701 | if (arg2 == NULL) SWIG_fail; | |
13702 | temp2 = true; | |
13703 | } | |
13704 | { | |
13705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13706 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
13707 | wxPyEndAllowThreads(__tstate); | |
13708 | if (PyErr_Occurred()) SWIG_fail; | |
13709 | } | |
13710 | resultobj = SWIG_Py_Void(); | |
13711 | { | |
13712 | if (temp2) | |
13713 | delete arg2; | |
13714 | } | |
13715 | return resultobj; | |
13716 | fail: | |
13717 | { | |
13718 | if (temp2) | |
13719 | delete arg2; | |
13720 | } | |
13721 | return NULL; | |
13722 | } | |
13723 | ||
13724 | ||
13725 | SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13726 | PyObject *obj; | |
13727 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13728 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj)); | |
13729 | return SWIG_Py_Void(); | |
13730 | } | |
13731 | ||
13732 | SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13733 | return SWIG_Python_InitShadowInstance(args); | |
13734 | } | |
13735 | ||
13736 | SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13737 | PyObject *resultobj = 0; | |
13738 | int arg1 ; | |
13739 | int arg2 ; | |
13740 | int arg3 ; | |
13741 | int arg4 ; | |
13742 | bool arg5 = (bool) false ; | |
13743 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
13744 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
13745 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
13746 | wxFont *result = 0 ; | |
13747 | int val1 ; | |
13748 | int ecode1 = 0 ; | |
13749 | int val2 ; | |
13750 | int ecode2 = 0 ; | |
13751 | int val3 ; | |
13752 | int ecode3 = 0 ; | |
13753 | int val4 ; | |
13754 | int ecode4 = 0 ; | |
13755 | bool val5 ; | |
13756 | int ecode5 = 0 ; | |
13757 | bool temp6 = false ; | |
13758 | int val7 ; | |
13759 | int ecode7 = 0 ; | |
13760 | PyObject * obj0 = 0 ; | |
13761 | PyObject * obj1 = 0 ; | |
13762 | PyObject * obj2 = 0 ; | |
13763 | PyObject * obj3 = 0 ; | |
13764 | PyObject * obj4 = 0 ; | |
13765 | PyObject * obj5 = 0 ; | |
13766 | PyObject * obj6 = 0 ; | |
13767 | char * kwnames[] = { | |
13768 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
13769 | }; | |
13770 | ||
13771 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
13772 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13773 | if (!SWIG_IsOK(ecode1)) { | |
13774 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'"); | |
13775 | } | |
13776 | arg1 = static_cast< int >(val1); | |
13777 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13778 | if (!SWIG_IsOK(ecode2)) { | |
13779 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'"); | |
13780 | } | |
13781 | arg2 = static_cast< int >(val2); | |
13782 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13783 | if (!SWIG_IsOK(ecode3)) { | |
13784 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'"); | |
13785 | } | |
13786 | arg3 = static_cast< int >(val3); | |
13787 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
13788 | if (!SWIG_IsOK(ecode4)) { | |
13789 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'"); | |
13790 | } | |
13791 | arg4 = static_cast< int >(val4); | |
13792 | if (obj4) { | |
13793 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
13794 | if (!SWIG_IsOK(ecode5)) { | |
13795 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'"); | |
13796 | } | |
13797 | arg5 = static_cast< bool >(val5); | |
13798 | } | |
13799 | if (obj5) { | |
093d3ff1 | 13800 | { |
0085ce49 RD |
13801 | arg6 = wxString_in_helper(obj5); |
13802 | if (arg6 == NULL) SWIG_fail; | |
13803 | temp6 = true; | |
093d3ff1 | 13804 | } |
0085ce49 RD |
13805 | } |
13806 | if (obj6) { | |
13807 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
13808 | if (!SWIG_IsOK(ecode7)) { | |
13809 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
13810 | } | |
13811 | arg7 = static_cast< wxFontEncoding >(val7); | |
13812 | } | |
13813 | { | |
13814 | if (!wxPyCheckForApp()) SWIG_fail; | |
13815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13816 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
13817 | wxPyEndAllowThreads(__tstate); | |
13818 | if (PyErr_Occurred()) SWIG_fail; | |
13819 | } | |
13820 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 ); | |
13821 | { | |
13822 | if (temp6) | |
13823 | delete arg6; | |
13824 | } | |
13825 | return resultobj; | |
13826 | fail: | |
13827 | { | |
13828 | if (temp6) | |
13829 | delete arg6; | |
13830 | } | |
13831 | return NULL; | |
d14a1e28 RD |
13832 | } |
13833 | ||
13834 | ||
0085ce49 RD |
13835 | SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13836 | PyObject *resultobj = 0; | |
13837 | wxFont *arg1 = (wxFont *) 0 ; | |
13838 | void *argp1 = 0 ; | |
13839 | int res1 = 0 ; | |
13840 | PyObject *swig_obj[1] ; | |
13841 | ||
13842 | if (!args) SWIG_fail; | |
13843 | swig_obj[0] = args; | |
13844 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 ); | |
13845 | if (!SWIG_IsOK(res1)) { | |
13846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'"); | |
13847 | } | |
13848 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13849 | { | |
13850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13851 | delete arg1; | |
d14a1e28 | 13852 | |
0085ce49 RD |
13853 | wxPyEndAllowThreads(__tstate); |
13854 | if (PyErr_Occurred()) SWIG_fail; | |
13855 | } | |
13856 | resultobj = SWIG_Py_Void(); | |
13857 | return resultobj; | |
13858 | fail: | |
13859 | return NULL; | |
13860 | } | |
13861 | ||
13862 | ||
13863 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13864 | PyObject *resultobj = 0; | |
13865 | wxNativeFontInfo *arg1 = 0 ; | |
13866 | wxFont *result = 0 ; | |
13867 | void *argp1 = 0 ; | |
13868 | int res1 = 0 ; | |
13869 | PyObject * obj0 = 0 ; | |
13870 | char * kwnames[] = { | |
13871 | (char *) "info", NULL | |
13872 | }; | |
13873 | ||
13874 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail; | |
13875 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
13876 | if (!SWIG_IsOK(res1)) { | |
13877 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
13878 | } | |
13879 | if (!argp1) { | |
13880 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
13881 | } | |
13882 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13883 | { | |
13884 | if (!wxPyCheckForApp()) SWIG_fail; | |
13885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13886 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
13887 | wxPyEndAllowThreads(__tstate); | |
13888 | if (PyErr_Occurred()) SWIG_fail; | |
13889 | } | |
13890 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
13891 | return resultobj; | |
13892 | fail: | |
13893 | return NULL; | |
d14a1e28 RD |
13894 | } |
13895 | ||
13896 | ||
0085ce49 RD |
13897 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13898 | PyObject *resultobj = 0; | |
13899 | wxString *arg1 = 0 ; | |
13900 | wxFont *result = 0 ; | |
13901 | bool temp1 = false ; | |
13902 | PyObject * obj0 = 0 ; | |
13903 | char * kwnames[] = { | |
13904 | (char *) "info", NULL | |
13905 | }; | |
13906 | ||
13907 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail; | |
13908 | { | |
13909 | arg1 = wxString_in_helper(obj0); | |
13910 | if (arg1 == NULL) SWIG_fail; | |
13911 | temp1 = true; | |
13912 | } | |
13913 | { | |
13914 | if (!wxPyCheckForApp()) SWIG_fail; | |
13915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13916 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
13917 | wxPyEndAllowThreads(__tstate); | |
13918 | if (PyErr_Occurred()) SWIG_fail; | |
13919 | } | |
13920 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
13921 | { | |
13922 | if (temp1) | |
13923 | delete arg1; | |
13924 | } | |
13925 | return resultobj; | |
13926 | fail: | |
13927 | { | |
13928 | if (temp1) | |
13929 | delete arg1; | |
13930 | } | |
13931 | return NULL; | |
13932 | } | |
13933 | ||
13934 | ||
13935 | SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13936 | PyObject *resultobj = 0; | |
13937 | int arg1 ; | |
13938 | wxFontFamily arg2 ; | |
13939 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
13940 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13941 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
13942 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
13943 | wxFont *result = 0 ; | |
13944 | int val1 ; | |
13945 | int ecode1 = 0 ; | |
13946 | int val2 ; | |
13947 | int ecode2 = 0 ; | |
13948 | int val3 ; | |
13949 | int ecode3 = 0 ; | |
13950 | bool temp4 = false ; | |
13951 | int val5 ; | |
13952 | int ecode5 = 0 ; | |
13953 | PyObject * obj0 = 0 ; | |
13954 | PyObject * obj1 = 0 ; | |
13955 | PyObject * obj2 = 0 ; | |
13956 | PyObject * obj3 = 0 ; | |
13957 | PyObject * obj4 = 0 ; | |
13958 | char * kwnames[] = { | |
13959 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
13960 | }; | |
13961 | ||
13962 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
13963 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13964 | if (!SWIG_IsOK(ecode1)) { | |
13965 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'"); | |
13966 | } | |
13967 | arg1 = static_cast< int >(val1); | |
13968 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13969 | if (!SWIG_IsOK(ecode2)) { | |
13970 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
13971 | } | |
13972 | arg2 = static_cast< wxFontFamily >(val2); | |
13973 | if (obj2) { | |
13974 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13975 | if (!SWIG_IsOK(ecode3)) { | |
13976 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'"); | |
13977 | } | |
13978 | arg3 = static_cast< int >(val3); | |
13979 | } | |
13980 | if (obj3) { | |
093d3ff1 | 13981 | { |
0085ce49 RD |
13982 | arg4 = wxString_in_helper(obj3); |
13983 | if (arg4 == NULL) SWIG_fail; | |
13984 | temp4 = true; | |
093d3ff1 | 13985 | } |
0085ce49 RD |
13986 | } |
13987 | if (obj4) { | |
13988 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
13989 | if (!SWIG_IsOK(ecode5)) { | |
13990 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
13991 | } | |
13992 | arg5 = static_cast< wxFontEncoding >(val5); | |
13993 | } | |
13994 | { | |
13995 | if (!wxPyCheckForApp()) SWIG_fail; | |
13996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13997 | result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
13998 | wxPyEndAllowThreads(__tstate); | |
13999 | if (PyErr_Occurred()) SWIG_fail; | |
14000 | } | |
14001 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14002 | { | |
14003 | if (temp4) | |
14004 | delete arg4; | |
14005 | } | |
14006 | return resultobj; | |
14007 | fail: | |
14008 | { | |
14009 | if (temp4) | |
14010 | delete arg4; | |
14011 | } | |
14012 | return NULL; | |
14013 | } | |
14014 | ||
14015 | ||
14016 | SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14017 | PyObject *resultobj = 0; | |
14018 | wxSize *arg1 = 0 ; | |
14019 | int arg2 ; | |
14020 | int arg3 ; | |
14021 | int arg4 ; | |
14022 | bool arg5 = (bool) false ; | |
14023 | wxString const &arg6_defvalue = wxEmptyString ; | |
14024 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14025 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14026 | wxFont *result = 0 ; | |
14027 | wxSize temp1 ; | |
14028 | int val2 ; | |
14029 | int ecode2 = 0 ; | |
14030 | int val3 ; | |
14031 | int ecode3 = 0 ; | |
14032 | int val4 ; | |
14033 | int ecode4 = 0 ; | |
14034 | bool val5 ; | |
14035 | int ecode5 = 0 ; | |
14036 | bool temp6 = false ; | |
14037 | int val7 ; | |
14038 | int ecode7 = 0 ; | |
14039 | PyObject * obj0 = 0 ; | |
14040 | PyObject * obj1 = 0 ; | |
14041 | PyObject * obj2 = 0 ; | |
14042 | PyObject * obj3 = 0 ; | |
14043 | PyObject * obj4 = 0 ; | |
14044 | PyObject * obj5 = 0 ; | |
14045 | PyObject * obj6 = 0 ; | |
14046 | char * kwnames[] = { | |
14047 | (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL | |
14048 | }; | |
14049 | ||
14050 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14051 | { | |
14052 | arg1 = &temp1; | |
14053 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
14054 | } | |
14055 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14056 | if (!SWIG_IsOK(ecode2)) { | |
14057 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'"); | |
14058 | } | |
14059 | arg2 = static_cast< int >(val2); | |
14060 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14061 | if (!SWIG_IsOK(ecode3)) { | |
14062 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
14063 | } | |
14064 | arg3 = static_cast< int >(val3); | |
14065 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
14066 | if (!SWIG_IsOK(ecode4)) { | |
14067 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'"); | |
14068 | } | |
14069 | arg4 = static_cast< int >(val4); | |
14070 | if (obj4) { | |
14071 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
14072 | if (!SWIG_IsOK(ecode5)) { | |
14073 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'"); | |
14074 | } | |
14075 | arg5 = static_cast< bool >(val5); | |
14076 | } | |
14077 | if (obj5) { | |
d14a1e28 | 14078 | { |
0085ce49 RD |
14079 | arg6 = wxString_in_helper(obj5); |
14080 | if (arg6 == NULL) SWIG_fail; | |
14081 | temp6 = true; | |
d14a1e28 | 14082 | } |
0085ce49 RD |
14083 | } |
14084 | if (obj6) { | |
14085 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
14086 | if (!SWIG_IsOK(ecode7)) { | |
14087 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
14088 | } | |
14089 | arg7 = static_cast< wxFontEncoding >(val7); | |
14090 | } | |
14091 | { | |
14092 | if (!wxPyCheckForApp()) SWIG_fail; | |
14093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14094 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
14095 | wxPyEndAllowThreads(__tstate); | |
14096 | if (PyErr_Occurred()) SWIG_fail; | |
14097 | } | |
14098 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14099 | { | |
14100 | if (temp6) | |
14101 | delete arg6; | |
14102 | } | |
14103 | return resultobj; | |
14104 | fail: | |
14105 | { | |
14106 | if (temp6) | |
14107 | delete arg6; | |
14108 | } | |
14109 | return NULL; | |
14110 | } | |
14111 | ||
14112 | ||
14113 | SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14114 | PyObject *resultobj = 0; | |
14115 | wxSize *arg1 = 0 ; | |
14116 | wxFontFamily arg2 ; | |
14117 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
14118 | wxString const &arg4_defvalue = wxEmptyString ; | |
14119 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14120 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14121 | wxFont *result = 0 ; | |
14122 | wxSize temp1 ; | |
14123 | int val2 ; | |
14124 | int ecode2 = 0 ; | |
14125 | int val3 ; | |
14126 | int ecode3 = 0 ; | |
14127 | bool temp4 = false ; | |
14128 | int val5 ; | |
14129 | int ecode5 = 0 ; | |
14130 | PyObject * obj0 = 0 ; | |
14131 | PyObject * obj1 = 0 ; | |
14132 | PyObject * obj2 = 0 ; | |
14133 | PyObject * obj3 = 0 ; | |
14134 | PyObject * obj4 = 0 ; | |
14135 | char * kwnames[] = { | |
14136 | (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
14137 | }; | |
14138 | ||
14139 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
14140 | { | |
14141 | arg1 = &temp1; | |
14142 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
14143 | } | |
14144 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14145 | if (!SWIG_IsOK(ecode2)) { | |
14146 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
14147 | } | |
14148 | arg2 = static_cast< wxFontFamily >(val2); | |
14149 | if (obj2) { | |
14150 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14151 | if (!SWIG_IsOK(ecode3)) { | |
14152 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
14153 | } | |
14154 | arg3 = static_cast< int >(val3); | |
14155 | } | |
14156 | if (obj3) { | |
093d3ff1 | 14157 | { |
0085ce49 RD |
14158 | arg4 = wxString_in_helper(obj3); |
14159 | if (arg4 == NULL) SWIG_fail; | |
14160 | temp4 = true; | |
093d3ff1 | 14161 | } |
0085ce49 RD |
14162 | } |
14163 | if (obj4) { | |
14164 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
14165 | if (!SWIG_IsOK(ecode5)) { | |
14166 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
14167 | } | |
14168 | arg5 = static_cast< wxFontEncoding >(val5); | |
14169 | } | |
14170 | { | |
14171 | if (!wxPyCheckForApp()) SWIG_fail; | |
14172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14173 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
14174 | wxPyEndAllowThreads(__tstate); | |
14175 | if (PyErr_Occurred()) SWIG_fail; | |
14176 | } | |
14177 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14178 | { | |
14179 | if (temp4) | |
14180 | delete arg4; | |
14181 | } | |
14182 | return resultobj; | |
14183 | fail: | |
14184 | { | |
14185 | if (temp4) | |
14186 | delete arg4; | |
14187 | } | |
14188 | return NULL; | |
d14a1e28 RD |
14189 | } |
14190 | ||
14191 | ||
b39fe951 | 14192 | SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
14193 | PyObject *resultobj = 0; |
14194 | wxFont *arg1 = (wxFont *) 0 ; | |
14195 | bool result; | |
14196 | void *argp1 = 0 ; | |
14197 | int res1 = 0 ; | |
14198 | PyObject *swig_obj[1] ; | |
14199 | ||
14200 | if (!args) SWIG_fail; | |
14201 | swig_obj[0] = args; | |
14202 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14203 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 14204 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'"); |
0085ce49 RD |
14205 | } |
14206 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14207 | { | |
14208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 14209 | result = (bool)((wxFont const *)arg1)->IsOk(); |
0085ce49 RD |
14210 | wxPyEndAllowThreads(__tstate); |
14211 | if (PyErr_Occurred()) SWIG_fail; | |
14212 | } | |
14213 | { | |
14214 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14215 | } | |
14216 | return resultobj; | |
14217 | fail: | |
14218 | return NULL; | |
14219 | } | |
14220 | ||
14221 | ||
14222 | SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14223 | PyObject *resultobj = 0; | |
14224 | wxFont *arg1 = (wxFont *) 0 ; | |
14225 | wxFont *arg2 = (wxFont *) 0 ; | |
14226 | bool result; | |
14227 | void *argp1 = 0 ; | |
14228 | int res1 = 0 ; | |
14229 | void *argp2 = 0 ; | |
14230 | int res2 = 0 ; | |
14231 | PyObject * obj0 = 0 ; | |
14232 | PyObject * obj1 = 0 ; | |
14233 | char * kwnames[] = { | |
14234 | (char *) "self",(char *) "other", NULL | |
14235 | }; | |
14236 | ||
14237 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
14238 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14239 | if (!SWIG_IsOK(res1)) { | |
14240 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14241 | } | |
14242 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14243 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14244 | if (!SWIG_IsOK(res2)) { | |
14245 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
14246 | } | |
14247 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
14248 | { | |
14249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14250 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); | |
14251 | wxPyEndAllowThreads(__tstate); | |
14252 | if (PyErr_Occurred()) SWIG_fail; | |
14253 | } | |
14254 | { | |
14255 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14256 | } | |
14257 | return resultobj; | |
14258 | fail: | |
14259 | return NULL; | |
14260 | } | |
14261 | ||
14262 | ||
14263 | SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14264 | PyObject *resultobj = 0; | |
14265 | wxFont *arg1 = (wxFont *) 0 ; | |
14266 | wxFont *arg2 = (wxFont *) 0 ; | |
14267 | bool result; | |
14268 | void *argp1 = 0 ; | |
14269 | int res1 = 0 ; | |
14270 | void *argp2 = 0 ; | |
14271 | int res2 = 0 ; | |
14272 | PyObject * obj0 = 0 ; | |
14273 | PyObject * obj1 = 0 ; | |
14274 | char * kwnames[] = { | |
14275 | (char *) "self",(char *) "other", NULL | |
14276 | }; | |
14277 | ||
14278 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
14279 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14280 | if (!SWIG_IsOK(res1)) { | |
14281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14282 | } | |
14283 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14284 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14285 | if (!SWIG_IsOK(res2)) { | |
14286 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
14287 | } | |
14288 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
14289 | { | |
14290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14291 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); | |
14292 | wxPyEndAllowThreads(__tstate); | |
14293 | if (PyErr_Occurred()) SWIG_fail; | |
14294 | } | |
14295 | { | |
14296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14297 | } | |
14298 | return resultobj; | |
14299 | fail: | |
14300 | return NULL; | |
d14a1e28 RD |
14301 | } |
14302 | ||
14303 | ||
0085ce49 RD |
14304 | SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14305 | PyObject *resultobj = 0; | |
14306 | wxFont *arg1 = (wxFont *) 0 ; | |
14307 | int result; | |
14308 | void *argp1 = 0 ; | |
14309 | int res1 = 0 ; | |
14310 | PyObject *swig_obj[1] ; | |
14311 | ||
14312 | if (!args) SWIG_fail; | |
14313 | swig_obj[0] = args; | |
14314 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14315 | if (!SWIG_IsOK(res1)) { | |
14316 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14317 | } | |
14318 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14319 | { | |
14320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14321 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
14322 | wxPyEndAllowThreads(__tstate); | |
14323 | if (PyErr_Occurred()) SWIG_fail; | |
14324 | } | |
14325 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14326 | return resultobj; | |
14327 | fail: | |
14328 | return NULL; | |
d14a1e28 RD |
14329 | } |
14330 | ||
14331 | ||
0085ce49 RD |
14332 | SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14333 | PyObject *resultobj = 0; | |
14334 | wxFont *arg1 = (wxFont *) 0 ; | |
14335 | wxSize result; | |
14336 | void *argp1 = 0 ; | |
14337 | int res1 = 0 ; | |
14338 | PyObject *swig_obj[1] ; | |
14339 | ||
14340 | if (!args) SWIG_fail; | |
14341 | swig_obj[0] = args; | |
14342 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14343 | if (!SWIG_IsOK(res1)) { | |
14344 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14345 | } | |
14346 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14347 | { | |
14348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14349 | result = ((wxFont const *)arg1)->GetPixelSize(); | |
14350 | wxPyEndAllowThreads(__tstate); | |
14351 | if (PyErr_Occurred()) SWIG_fail; | |
14352 | } | |
14353 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
14354 | return resultobj; | |
14355 | fail: | |
14356 | return NULL; | |
d14a1e28 RD |
14357 | } |
14358 | ||
14359 | ||
0085ce49 RD |
14360 | SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14361 | PyObject *resultobj = 0; | |
14362 | wxFont *arg1 = (wxFont *) 0 ; | |
14363 | bool result; | |
14364 | void *argp1 = 0 ; | |
14365 | int res1 = 0 ; | |
14366 | PyObject *swig_obj[1] ; | |
14367 | ||
14368 | if (!args) SWIG_fail; | |
14369 | swig_obj[0] = args; | |
14370 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14371 | if (!SWIG_IsOK(res1)) { | |
14372 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14373 | } | |
14374 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14375 | { | |
14376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14377 | result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels(); | |
14378 | wxPyEndAllowThreads(__tstate); | |
14379 | if (PyErr_Occurred()) SWIG_fail; | |
14380 | } | |
14381 | { | |
14382 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14383 | } | |
14384 | return resultobj; | |
14385 | fail: | |
14386 | return NULL; | |
d14a1e28 RD |
14387 | } |
14388 | ||
14389 | ||
0085ce49 RD |
14390 | SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14391 | PyObject *resultobj = 0; | |
14392 | wxFont *arg1 = (wxFont *) 0 ; | |
14393 | int result; | |
14394 | void *argp1 = 0 ; | |
14395 | int res1 = 0 ; | |
14396 | PyObject *swig_obj[1] ; | |
14397 | ||
14398 | if (!args) SWIG_fail; | |
14399 | swig_obj[0] = args; | |
14400 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14401 | if (!SWIG_IsOK(res1)) { | |
14402 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14403 | } | |
14404 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14405 | { | |
14406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14407 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
14408 | wxPyEndAllowThreads(__tstate); | |
14409 | if (PyErr_Occurred()) SWIG_fail; | |
14410 | } | |
14411 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14412 | return resultobj; | |
14413 | fail: | |
14414 | return NULL; | |
d14a1e28 RD |
14415 | } |
14416 | ||
14417 | ||
0085ce49 RD |
14418 | SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14419 | PyObject *resultobj = 0; | |
14420 | wxFont *arg1 = (wxFont *) 0 ; | |
14421 | int result; | |
14422 | void *argp1 = 0 ; | |
14423 | int res1 = 0 ; | |
14424 | PyObject *swig_obj[1] ; | |
14425 | ||
14426 | if (!args) SWIG_fail; | |
14427 | swig_obj[0] = args; | |
14428 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14429 | if (!SWIG_IsOK(res1)) { | |
14430 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14431 | } | |
14432 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14433 | { | |
14434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14435 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
14436 | wxPyEndAllowThreads(__tstate); | |
14437 | if (PyErr_Occurred()) SWIG_fail; | |
14438 | } | |
14439 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14440 | return resultobj; | |
14441 | fail: | |
14442 | return NULL; | |
d14a1e28 RD |
14443 | } |
14444 | ||
14445 | ||
0085ce49 RD |
14446 | SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14447 | PyObject *resultobj = 0; | |
14448 | wxFont *arg1 = (wxFont *) 0 ; | |
14449 | int result; | |
14450 | void *argp1 = 0 ; | |
14451 | int res1 = 0 ; | |
14452 | PyObject *swig_obj[1] ; | |
14453 | ||
14454 | if (!args) SWIG_fail; | |
14455 | swig_obj[0] = args; | |
14456 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14457 | if (!SWIG_IsOK(res1)) { | |
14458 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14459 | } | |
14460 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14461 | { | |
14462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14463 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
14464 | wxPyEndAllowThreads(__tstate); | |
14465 | if (PyErr_Occurred()) SWIG_fail; | |
14466 | } | |
14467 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14468 | return resultobj; | |
14469 | fail: | |
14470 | return NULL; | |
d14a1e28 RD |
14471 | } |
14472 | ||
14473 | ||
0085ce49 RD |
14474 | SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14475 | PyObject *resultobj = 0; | |
14476 | wxFont *arg1 = (wxFont *) 0 ; | |
14477 | bool result; | |
14478 | void *argp1 = 0 ; | |
14479 | int res1 = 0 ; | |
14480 | PyObject *swig_obj[1] ; | |
14481 | ||
14482 | if (!args) SWIG_fail; | |
14483 | swig_obj[0] = args; | |
14484 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14485 | if (!SWIG_IsOK(res1)) { | |
14486 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14487 | } | |
14488 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14489 | { | |
14490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14491 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
14492 | wxPyEndAllowThreads(__tstate); | |
14493 | if (PyErr_Occurred()) SWIG_fail; | |
14494 | } | |
14495 | { | |
14496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14497 | } | |
14498 | return resultobj; | |
14499 | fail: | |
14500 | return NULL; | |
d14a1e28 RD |
14501 | } |
14502 | ||
14503 | ||
0085ce49 RD |
14504 | SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14505 | PyObject *resultobj = 0; | |
14506 | wxFont *arg1 = (wxFont *) 0 ; | |
14507 | wxString result; | |
14508 | void *argp1 = 0 ; | |
14509 | int res1 = 0 ; | |
14510 | PyObject *swig_obj[1] ; | |
14511 | ||
14512 | if (!args) SWIG_fail; | |
14513 | swig_obj[0] = args; | |
14514 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14515 | if (!SWIG_IsOK(res1)) { | |
14516 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14517 | } | |
14518 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14519 | { | |
14520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14521 | result = ((wxFont const *)arg1)->GetFaceName(); | |
14522 | wxPyEndAllowThreads(__tstate); | |
14523 | if (PyErr_Occurred()) SWIG_fail; | |
14524 | } | |
14525 | { | |
14526 | #if wxUSE_UNICODE | |
14527 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14528 | #else | |
14529 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14530 | #endif | |
14531 | } | |
14532 | return resultobj; | |
14533 | fail: | |
14534 | return NULL; | |
d14a1e28 RD |
14535 | } |
14536 | ||
14537 | ||
0085ce49 RD |
14538 | SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14539 | PyObject *resultobj = 0; | |
14540 | wxFont *arg1 = (wxFont *) 0 ; | |
14541 | wxFontEncoding result; | |
14542 | void *argp1 = 0 ; | |
14543 | int res1 = 0 ; | |
14544 | PyObject *swig_obj[1] ; | |
14545 | ||
14546 | if (!args) SWIG_fail; | |
14547 | swig_obj[0] = args; | |
14548 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14549 | if (!SWIG_IsOK(res1)) { | |
14550 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14551 | } | |
14552 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14553 | { | |
14554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14555 | result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding(); | |
14556 | wxPyEndAllowThreads(__tstate); | |
14557 | if (PyErr_Occurred()) SWIG_fail; | |
14558 | } | |
14559 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14560 | return resultobj; | |
14561 | fail: | |
14562 | return NULL; | |
d14a1e28 RD |
14563 | } |
14564 | ||
14565 | ||
0085ce49 RD |
14566 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14567 | PyObject *resultobj = 0; | |
14568 | wxFont *arg1 = (wxFont *) 0 ; | |
14569 | wxNativeFontInfo *result = 0 ; | |
14570 | void *argp1 = 0 ; | |
14571 | int res1 = 0 ; | |
14572 | PyObject *swig_obj[1] ; | |
14573 | ||
14574 | if (!args) SWIG_fail; | |
14575 | swig_obj[0] = args; | |
14576 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14577 | if (!SWIG_IsOK(res1)) { | |
14578 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14579 | } | |
14580 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14581 | { | |
14582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14583 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
14584 | wxPyEndAllowThreads(__tstate); | |
14585 | if (PyErr_Occurred()) SWIG_fail; | |
14586 | } | |
14587 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
14588 | return resultobj; | |
14589 | fail: | |
14590 | return NULL; | |
d14a1e28 RD |
14591 | } |
14592 | ||
14593 | ||
0085ce49 RD |
14594 | SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14595 | PyObject *resultobj = 0; | |
14596 | wxFont *arg1 = (wxFont *) 0 ; | |
14597 | bool result; | |
14598 | void *argp1 = 0 ; | |
14599 | int res1 = 0 ; | |
14600 | PyObject *swig_obj[1] ; | |
14601 | ||
14602 | if (!args) SWIG_fail; | |
14603 | swig_obj[0] = args; | |
14604 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14605 | if (!SWIG_IsOK(res1)) { | |
14606 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14607 | } | |
14608 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14609 | { | |
14610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14611 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
14612 | wxPyEndAllowThreads(__tstate); | |
14613 | if (PyErr_Occurred()) SWIG_fail; | |
14614 | } | |
14615 | { | |
14616 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14617 | } | |
14618 | return resultobj; | |
14619 | fail: | |
14620 | return NULL; | |
d14a1e28 RD |
14621 | } |
14622 | ||
14623 | ||
0085ce49 RD |
14624 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14625 | PyObject *resultobj = 0; | |
14626 | wxFont *arg1 = (wxFont *) 0 ; | |
14627 | wxString result; | |
14628 | void *argp1 = 0 ; | |
14629 | int res1 = 0 ; | |
14630 | PyObject *swig_obj[1] ; | |
14631 | ||
14632 | if (!args) SWIG_fail; | |
14633 | swig_obj[0] = args; | |
14634 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14635 | if (!SWIG_IsOK(res1)) { | |
14636 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14637 | } | |
14638 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14639 | { | |
14640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14641 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
14642 | wxPyEndAllowThreads(__tstate); | |
14643 | if (PyErr_Occurred()) SWIG_fail; | |
14644 | } | |
14645 | { | |
14646 | #if wxUSE_UNICODE | |
14647 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14648 | #else | |
14649 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14650 | #endif | |
14651 | } | |
14652 | return resultobj; | |
14653 | fail: | |
14654 | return NULL; | |
d14a1e28 RD |
14655 | } |
14656 | ||
14657 | ||
0085ce49 RD |
14658 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14659 | PyObject *resultobj = 0; | |
14660 | wxFont *arg1 = (wxFont *) 0 ; | |
14661 | wxString result; | |
14662 | void *argp1 = 0 ; | |
14663 | int res1 = 0 ; | |
14664 | PyObject *swig_obj[1] ; | |
14665 | ||
14666 | if (!args) SWIG_fail; | |
14667 | swig_obj[0] = args; | |
14668 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14669 | if (!SWIG_IsOK(res1)) { | |
14670 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14671 | } | |
14672 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14673 | { | |
14674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14675 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
14676 | wxPyEndAllowThreads(__tstate); | |
14677 | if (PyErr_Occurred()) SWIG_fail; | |
14678 | } | |
14679 | { | |
14680 | #if wxUSE_UNICODE | |
14681 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14682 | #else | |
14683 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14684 | #endif | |
14685 | } | |
14686 | return resultobj; | |
14687 | fail: | |
14688 | return NULL; | |
14689 | } | |
14690 | ||
14691 | ||
14692 | SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14693 | PyObject *resultobj = 0; | |
14694 | wxFont *arg1 = (wxFont *) 0 ; | |
14695 | int arg2 ; | |
14696 | void *argp1 = 0 ; | |
14697 | int res1 = 0 ; | |
14698 | int val2 ; | |
14699 | int ecode2 = 0 ; | |
14700 | PyObject * obj0 = 0 ; | |
14701 | PyObject * obj1 = 0 ; | |
14702 | char * kwnames[] = { | |
14703 | (char *) "self",(char *) "pointSize", NULL | |
14704 | }; | |
14705 | ||
14706 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
14707 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14708 | if (!SWIG_IsOK(res1)) { | |
14709 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14710 | } | |
14711 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14712 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14713 | if (!SWIG_IsOK(ecode2)) { | |
14714 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
14715 | } | |
14716 | arg2 = static_cast< int >(val2); | |
14717 | { | |
14718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14719 | (arg1)->SetPointSize(arg2); | |
14720 | wxPyEndAllowThreads(__tstate); | |
14721 | if (PyErr_Occurred()) SWIG_fail; | |
14722 | } | |
14723 | resultobj = SWIG_Py_Void(); | |
14724 | return resultobj; | |
14725 | fail: | |
14726 | return NULL; | |
14727 | } | |
14728 | ||
14729 | ||
14730 | SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14731 | PyObject *resultobj = 0; | |
14732 | wxFont *arg1 = (wxFont *) 0 ; | |
14733 | wxSize *arg2 = 0 ; | |
14734 | void *argp1 = 0 ; | |
14735 | int res1 = 0 ; | |
14736 | wxSize temp2 ; | |
14737 | PyObject * obj0 = 0 ; | |
14738 | PyObject * obj1 = 0 ; | |
14739 | char * kwnames[] = { | |
14740 | (char *) "self",(char *) "pixelSize", NULL | |
14741 | }; | |
14742 | ||
14743 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
14744 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14745 | if (!SWIG_IsOK(res1)) { | |
14746 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14747 | } | |
14748 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14749 | { | |
14750 | arg2 = &temp2; | |
14751 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14752 | } | |
14753 | { | |
14754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14755 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
14756 | wxPyEndAllowThreads(__tstate); | |
14757 | if (PyErr_Occurred()) SWIG_fail; | |
14758 | } | |
14759 | resultobj = SWIG_Py_Void(); | |
14760 | return resultobj; | |
14761 | fail: | |
14762 | return NULL; | |
14763 | } | |
14764 | ||
14765 | ||
14766 | SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14767 | PyObject *resultobj = 0; | |
14768 | wxFont *arg1 = (wxFont *) 0 ; | |
14769 | int arg2 ; | |
14770 | void *argp1 = 0 ; | |
14771 | int res1 = 0 ; | |
14772 | int val2 ; | |
14773 | int ecode2 = 0 ; | |
14774 | PyObject * obj0 = 0 ; | |
14775 | PyObject * obj1 = 0 ; | |
14776 | char * kwnames[] = { | |
14777 | (char *) "self",(char *) "family", NULL | |
14778 | }; | |
14779 | ||
14780 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
14781 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14782 | if (!SWIG_IsOK(res1)) { | |
14783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14784 | } | |
14785 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14786 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14787 | if (!SWIG_IsOK(ecode2)) { | |
14788 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'"); | |
14789 | } | |
14790 | arg2 = static_cast< int >(val2); | |
14791 | { | |
14792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14793 | (arg1)->SetFamily(arg2); | |
14794 | wxPyEndAllowThreads(__tstate); | |
14795 | if (PyErr_Occurred()) SWIG_fail; | |
14796 | } | |
14797 | resultobj = SWIG_Py_Void(); | |
14798 | return resultobj; | |
14799 | fail: | |
14800 | return NULL; | |
14801 | } | |
14802 | ||
14803 | ||
14804 | SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14805 | PyObject *resultobj = 0; | |
14806 | wxFont *arg1 = (wxFont *) 0 ; | |
14807 | int arg2 ; | |
14808 | void *argp1 = 0 ; | |
14809 | int res1 = 0 ; | |
14810 | int val2 ; | |
14811 | int ecode2 = 0 ; | |
14812 | PyObject * obj0 = 0 ; | |
14813 | PyObject * obj1 = 0 ; | |
14814 | char * kwnames[] = { | |
14815 | (char *) "self",(char *) "style", NULL | |
14816 | }; | |
14817 | ||
14818 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
14819 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14820 | if (!SWIG_IsOK(res1)) { | |
14821 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14822 | } | |
14823 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14824 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14825 | if (!SWIG_IsOK(ecode2)) { | |
14826 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
14827 | } | |
14828 | arg2 = static_cast< int >(val2); | |
14829 | { | |
14830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14831 | (arg1)->SetStyle(arg2); | |
14832 | wxPyEndAllowThreads(__tstate); | |
14833 | if (PyErr_Occurred()) SWIG_fail; | |
14834 | } | |
14835 | resultobj = SWIG_Py_Void(); | |
14836 | return resultobj; | |
14837 | fail: | |
14838 | return NULL; | |
14839 | } | |
14840 | ||
14841 | ||
14842 | SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14843 | PyObject *resultobj = 0; | |
14844 | wxFont *arg1 = (wxFont *) 0 ; | |
14845 | int arg2 ; | |
14846 | void *argp1 = 0 ; | |
14847 | int res1 = 0 ; | |
14848 | int val2 ; | |
14849 | int ecode2 = 0 ; | |
14850 | PyObject * obj0 = 0 ; | |
14851 | PyObject * obj1 = 0 ; | |
14852 | char * kwnames[] = { | |
14853 | (char *) "self",(char *) "weight", NULL | |
14854 | }; | |
14855 | ||
14856 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
14857 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14858 | if (!SWIG_IsOK(res1)) { | |
14859 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14860 | } | |
14861 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14862 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14863 | if (!SWIG_IsOK(ecode2)) { | |
14864 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'"); | |
14865 | } | |
14866 | arg2 = static_cast< int >(val2); | |
14867 | { | |
14868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14869 | (arg1)->SetWeight(arg2); | |
14870 | wxPyEndAllowThreads(__tstate); | |
14871 | if (PyErr_Occurred()) SWIG_fail; | |
14872 | } | |
14873 | resultobj = SWIG_Py_Void(); | |
14874 | return resultobj; | |
14875 | fail: | |
14876 | return NULL; | |
14877 | } | |
14878 | ||
14879 | ||
14880 | SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14881 | PyObject *resultobj = 0; | |
14882 | wxFont *arg1 = (wxFont *) 0 ; | |
14883 | wxString *arg2 = 0 ; | |
704eda0c | 14884 | bool result; |
0085ce49 RD |
14885 | void *argp1 = 0 ; |
14886 | int res1 = 0 ; | |
14887 | bool temp2 = false ; | |
14888 | PyObject * obj0 = 0 ; | |
14889 | PyObject * obj1 = 0 ; | |
14890 | char * kwnames[] = { | |
14891 | (char *) "self",(char *) "faceName", NULL | |
14892 | }; | |
14893 | ||
14894 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
14895 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14896 | if (!SWIG_IsOK(res1)) { | |
14897 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14898 | } | |
14899 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14900 | { | |
14901 | arg2 = wxString_in_helper(obj1); | |
14902 | if (arg2 == NULL) SWIG_fail; | |
14903 | temp2 = true; | |
14904 | } | |
14905 | { | |
14906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 14907 | result = (bool)(arg1)->SetFaceName((wxString const &)*arg2); |
0085ce49 RD |
14908 | wxPyEndAllowThreads(__tstate); |
14909 | if (PyErr_Occurred()) SWIG_fail; | |
14910 | } | |
704eda0c RD |
14911 | { |
14912 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14913 | } | |
0085ce49 RD |
14914 | { |
14915 | if (temp2) | |
14916 | delete arg2; | |
14917 | } | |
14918 | return resultobj; | |
14919 | fail: | |
14920 | { | |
14921 | if (temp2) | |
14922 | delete arg2; | |
14923 | } | |
14924 | return NULL; | |
14925 | } | |
14926 | ||
14927 | ||
14928 | SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14929 | PyObject *resultobj = 0; | |
14930 | wxFont *arg1 = (wxFont *) 0 ; | |
14931 | bool arg2 ; | |
14932 | void *argp1 = 0 ; | |
14933 | int res1 = 0 ; | |
14934 | bool val2 ; | |
14935 | int ecode2 = 0 ; | |
14936 | PyObject * obj0 = 0 ; | |
14937 | PyObject * obj1 = 0 ; | |
14938 | char * kwnames[] = { | |
14939 | (char *) "self",(char *) "underlined", NULL | |
14940 | }; | |
14941 | ||
14942 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
14943 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14944 | if (!SWIG_IsOK(res1)) { | |
14945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14946 | } | |
14947 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14948 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
14949 | if (!SWIG_IsOK(ecode2)) { | |
14950 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
14951 | } | |
14952 | arg2 = static_cast< bool >(val2); | |
14953 | { | |
14954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14955 | (arg1)->SetUnderlined(arg2); | |
14956 | wxPyEndAllowThreads(__tstate); | |
14957 | if (PyErr_Occurred()) SWIG_fail; | |
14958 | } | |
14959 | resultobj = SWIG_Py_Void(); | |
14960 | return resultobj; | |
14961 | fail: | |
14962 | return NULL; | |
14963 | } | |
14964 | ||
14965 | ||
14966 | SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14967 | PyObject *resultobj = 0; | |
14968 | wxFont *arg1 = (wxFont *) 0 ; | |
14969 | wxFontEncoding arg2 ; | |
14970 | void *argp1 = 0 ; | |
14971 | int res1 = 0 ; | |
14972 | int val2 ; | |
14973 | int ecode2 = 0 ; | |
14974 | PyObject * obj0 = 0 ; | |
14975 | PyObject * obj1 = 0 ; | |
14976 | char * kwnames[] = { | |
14977 | (char *) "self",(char *) "encoding", NULL | |
14978 | }; | |
14979 | ||
14980 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
14981 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14982 | if (!SWIG_IsOK(res1)) { | |
14983 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14984 | } | |
14985 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14986 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14987 | if (!SWIG_IsOK(ecode2)) { | |
14988 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
14989 | } | |
14990 | arg2 = static_cast< wxFontEncoding >(val2); | |
14991 | { | |
14992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14993 | (arg1)->SetEncoding(arg2); | |
14994 | wxPyEndAllowThreads(__tstate); | |
14995 | if (PyErr_Occurred()) SWIG_fail; | |
14996 | } | |
14997 | resultobj = SWIG_Py_Void(); | |
14998 | return resultobj; | |
14999 | fail: | |
15000 | return NULL; | |
15001 | } | |
15002 | ||
15003 | ||
15004 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15005 | PyObject *resultobj = 0; | |
15006 | wxFont *arg1 = (wxFont *) 0 ; | |
15007 | wxNativeFontInfo *arg2 = 0 ; | |
15008 | void *argp1 = 0 ; | |
15009 | int res1 = 0 ; | |
15010 | void *argp2 = 0 ; | |
15011 | int res2 = 0 ; | |
15012 | PyObject * obj0 = 0 ; | |
15013 | PyObject * obj1 = 0 ; | |
15014 | char * kwnames[] = { | |
15015 | (char *) "self",(char *) "info", NULL | |
15016 | }; | |
15017 | ||
15018 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail; | |
15019 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15020 | if (!SWIG_IsOK(res1)) { | |
15021 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15022 | } | |
15023 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15024 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
15025 | if (!SWIG_IsOK(res2)) { | |
15026 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
15027 | } | |
15028 | if (!argp2) { | |
15029 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
15030 | } | |
15031 | arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2); | |
15032 | { | |
15033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15034 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
15035 | wxPyEndAllowThreads(__tstate); | |
15036 | if (PyErr_Occurred()) SWIG_fail; | |
15037 | } | |
15038 | resultobj = SWIG_Py_Void(); | |
15039 | return resultobj; | |
15040 | fail: | |
15041 | return NULL; | |
15042 | } | |
15043 | ||
15044 | ||
15045 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15046 | PyObject *resultobj = 0; | |
15047 | wxFont *arg1 = (wxFont *) 0 ; | |
15048 | wxString *arg2 = 0 ; | |
704eda0c | 15049 | bool result; |
0085ce49 RD |
15050 | void *argp1 = 0 ; |
15051 | int res1 = 0 ; | |
15052 | bool temp2 = false ; | |
15053 | PyObject * obj0 = 0 ; | |
15054 | PyObject * obj1 = 0 ; | |
15055 | char * kwnames[] = { | |
15056 | (char *) "self",(char *) "info", NULL | |
15057 | }; | |
15058 | ||
15059 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
15060 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15061 | if (!SWIG_IsOK(res1)) { | |
15062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15063 | } | |
15064 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15065 | { | |
15066 | arg2 = wxString_in_helper(obj1); | |
15067 | if (arg2 == NULL) SWIG_fail; | |
15068 | temp2 = true; | |
15069 | } | |
15070 | { | |
15071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15072 | result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2); |
0085ce49 RD |
15073 | wxPyEndAllowThreads(__tstate); |
15074 | if (PyErr_Occurred()) SWIG_fail; | |
15075 | } | |
704eda0c RD |
15076 | { |
15077 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15078 | } | |
0085ce49 RD |
15079 | { |
15080 | if (temp2) | |
15081 | delete arg2; | |
15082 | } | |
15083 | return resultobj; | |
15084 | fail: | |
15085 | { | |
15086 | if (temp2) | |
15087 | delete arg2; | |
15088 | } | |
15089 | return NULL; | |
d14a1e28 RD |
15090 | } |
15091 | ||
15092 | ||
0085ce49 RD |
15093 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15094 | PyObject *resultobj = 0; | |
15095 | wxFont *arg1 = (wxFont *) 0 ; | |
15096 | wxString *arg2 = 0 ; | |
704eda0c | 15097 | bool result; |
0085ce49 RD |
15098 | void *argp1 = 0 ; |
15099 | int res1 = 0 ; | |
15100 | bool temp2 = false ; | |
15101 | PyObject * obj0 = 0 ; | |
15102 | PyObject * obj1 = 0 ; | |
15103 | char * kwnames[] = { | |
15104 | (char *) "self",(char *) "info", NULL | |
15105 | }; | |
15106 | ||
15107 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail; | |
15108 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15109 | if (!SWIG_IsOK(res1)) { | |
15110 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15111 | } | |
15112 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15113 | { | |
15114 | arg2 = wxString_in_helper(obj1); | |
15115 | if (arg2 == NULL) SWIG_fail; | |
15116 | temp2 = true; | |
15117 | } | |
15118 | { | |
15119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15120 | result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); |
0085ce49 RD |
15121 | wxPyEndAllowThreads(__tstate); |
15122 | if (PyErr_Occurred()) SWIG_fail; | |
15123 | } | |
704eda0c RD |
15124 | { |
15125 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15126 | } | |
0085ce49 RD |
15127 | { |
15128 | if (temp2) | |
15129 | delete arg2; | |
15130 | } | |
15131 | return resultobj; | |
15132 | fail: | |
15133 | { | |
15134 | if (temp2) | |
15135 | delete arg2; | |
15136 | } | |
15137 | return NULL; | |
d14a1e28 RD |
15138 | } |
15139 | ||
15140 | ||
0085ce49 RD |
15141 | SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15142 | PyObject *resultobj = 0; | |
15143 | wxFont *arg1 = (wxFont *) 0 ; | |
15144 | wxString result; | |
15145 | void *argp1 = 0 ; | |
15146 | int res1 = 0 ; | |
15147 | PyObject *swig_obj[1] ; | |
15148 | ||
15149 | if (!args) SWIG_fail; | |
15150 | swig_obj[0] = args; | |
15151 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15152 | if (!SWIG_IsOK(res1)) { | |
15153 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15154 | } | |
15155 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15156 | { | |
15157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15158 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
15159 | wxPyEndAllowThreads(__tstate); | |
15160 | if (PyErr_Occurred()) SWIG_fail; | |
15161 | } | |
15162 | { | |
15163 | #if wxUSE_UNICODE | |
15164 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15165 | #else | |
15166 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15167 | #endif | |
15168 | } | |
15169 | return resultobj; | |
15170 | fail: | |
15171 | return NULL; | |
d14a1e28 RD |
15172 | } |
15173 | ||
15174 | ||
0085ce49 RD |
15175 | SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15176 | PyObject *resultobj = 0; | |
15177 | wxFont *arg1 = (wxFont *) 0 ; | |
15178 | wxString result; | |
15179 | void *argp1 = 0 ; | |
15180 | int res1 = 0 ; | |
15181 | PyObject *swig_obj[1] ; | |
15182 | ||
15183 | if (!args) SWIG_fail; | |
15184 | swig_obj[0] = args; | |
15185 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15186 | if (!SWIG_IsOK(res1)) { | |
15187 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15188 | } | |
15189 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15190 | { | |
15191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15192 | result = ((wxFont const *)arg1)->GetStyleString(); | |
15193 | wxPyEndAllowThreads(__tstate); | |
15194 | if (PyErr_Occurred()) SWIG_fail; | |
15195 | } | |
15196 | { | |
15197 | #if wxUSE_UNICODE | |
15198 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15199 | #else | |
15200 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15201 | #endif | |
15202 | } | |
15203 | return resultobj; | |
15204 | fail: | |
15205 | return NULL; | |
d14a1e28 RD |
15206 | } |
15207 | ||
15208 | ||
0085ce49 RD |
15209 | SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15210 | PyObject *resultobj = 0; | |
15211 | wxFont *arg1 = (wxFont *) 0 ; | |
15212 | wxString result; | |
15213 | void *argp1 = 0 ; | |
15214 | int res1 = 0 ; | |
15215 | PyObject *swig_obj[1] ; | |
15216 | ||
15217 | if (!args) SWIG_fail; | |
15218 | swig_obj[0] = args; | |
15219 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15220 | if (!SWIG_IsOK(res1)) { | |
15221 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15222 | } | |
15223 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15224 | { | |
15225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15226 | result = ((wxFont const *)arg1)->GetWeightString(); | |
15227 | wxPyEndAllowThreads(__tstate); | |
15228 | if (PyErr_Occurred()) SWIG_fail; | |
15229 | } | |
15230 | { | |
d14a1e28 | 15231 | #if wxUSE_UNICODE |
0085ce49 | 15232 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 15233 | #else |
0085ce49 | 15234 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 15235 | #endif |
0085ce49 RD |
15236 | } |
15237 | return resultobj; | |
15238 | fail: | |
15239 | return NULL; | |
15240 | } | |
15241 | ||
15242 | ||
15243 | SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15244 | PyObject *resultobj = 0; | |
15245 | wxFont *arg1 = (wxFont *) 0 ; | |
15246 | bool arg2 = (bool) true ; | |
15247 | void *argp1 = 0 ; | |
15248 | int res1 = 0 ; | |
15249 | bool val2 ; | |
15250 | int ecode2 = 0 ; | |
15251 | PyObject * obj0 = 0 ; | |
15252 | PyObject * obj1 = 0 ; | |
15253 | char * kwnames[] = { | |
15254 | (char *) "self",(char *) "no", NULL | |
15255 | }; | |
15256 | ||
15257 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail; | |
15258 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15259 | if (!SWIG_IsOK(res1)) { | |
15260 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15261 | } | |
15262 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15263 | if (obj1) { | |
15264 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
15265 | if (!SWIG_IsOK(ecode2)) { | |
15266 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'"); | |
15267 | } | |
15268 | arg2 = static_cast< bool >(val2); | |
15269 | } | |
15270 | { | |
15271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15272 | (arg1)->SetNoAntiAliasing(arg2); | |
15273 | wxPyEndAllowThreads(__tstate); | |
15274 | if (PyErr_Occurred()) SWIG_fail; | |
15275 | } | |
15276 | resultobj = SWIG_Py_Void(); | |
15277 | return resultobj; | |
15278 | fail: | |
15279 | return NULL; | |
d14a1e28 RD |
15280 | } |
15281 | ||
15282 | ||
0085ce49 RD |
15283 | SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15284 | PyObject *resultobj = 0; | |
15285 | wxFont *arg1 = (wxFont *) 0 ; | |
15286 | bool result; | |
15287 | void *argp1 = 0 ; | |
15288 | int res1 = 0 ; | |
15289 | PyObject *swig_obj[1] ; | |
15290 | ||
15291 | if (!args) SWIG_fail; | |
15292 | swig_obj[0] = args; | |
15293 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15294 | if (!SWIG_IsOK(res1)) { | |
15295 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15296 | } | |
15297 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15298 | { | |
15299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15300 | result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing(); | |
15301 | wxPyEndAllowThreads(__tstate); | |
15302 | if (PyErr_Occurred()) SWIG_fail; | |
15303 | } | |
15304 | { | |
15305 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15306 | } | |
15307 | return resultobj; | |
15308 | fail: | |
15309 | return NULL; | |
d14a1e28 RD |
15310 | } |
15311 | ||
15312 | ||
0085ce49 RD |
15313 | SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15314 | PyObject *resultobj = 0; | |
15315 | wxFontEncoding result; | |
15316 | ||
15317 | if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail; | |
15318 | { | |
15319 | if (!wxPyCheckForApp()) SWIG_fail; | |
15320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15321 | result = (wxFontEncoding)wxFont::GetDefaultEncoding(); | |
15322 | wxPyEndAllowThreads(__tstate); | |
15323 | if (PyErr_Occurred()) SWIG_fail; | |
15324 | } | |
15325 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15326 | return resultobj; | |
15327 | fail: | |
15328 | return NULL; | |
d14a1e28 RD |
15329 | } |
15330 | ||
15331 | ||
0085ce49 RD |
15332 | SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15333 | PyObject *resultobj = 0; | |
15334 | wxFontEncoding arg1 ; | |
15335 | int val1 ; | |
15336 | int ecode1 = 0 ; | |
15337 | PyObject * obj0 = 0 ; | |
15338 | char * kwnames[] = { | |
15339 | (char *) "encoding", NULL | |
15340 | }; | |
15341 | ||
15342 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail; | |
15343 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15344 | if (!SWIG_IsOK(ecode1)) { | |
15345 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
15346 | } | |
15347 | arg1 = static_cast< wxFontEncoding >(val1); | |
15348 | { | |
15349 | if (!wxPyCheckForApp()) SWIG_fail; | |
15350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15351 | wxFont::SetDefaultEncoding(arg1); | |
15352 | wxPyEndAllowThreads(__tstate); | |
15353 | if (PyErr_Occurred()) SWIG_fail; | |
15354 | } | |
15355 | resultobj = SWIG_Py_Void(); | |
15356 | return resultobj; | |
15357 | fail: | |
15358 | return NULL; | |
d14a1e28 RD |
15359 | } |
15360 | ||
15361 | ||
0085ce49 RD |
15362 | SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15363 | PyObject *obj; | |
15364 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15365 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj)); | |
15366 | return SWIG_Py_Void(); | |
d14a1e28 RD |
15367 | } |
15368 | ||
0085ce49 RD |
15369 | SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15370 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
15371 | } |
15372 | ||
0085ce49 RD |
15373 | SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15374 | PyObject *resultobj = 0; | |
15375 | wxPyFontEnumerator *result = 0 ; | |
15376 | ||
15377 | if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail; | |
15378 | { | |
15379 | if (!wxPyCheckForApp()) SWIG_fail; | |
15380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15381 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
15382 | wxPyEndAllowThreads(__tstate); | |
15383 | if (PyErr_Occurred()) SWIG_fail; | |
15384 | } | |
15385 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 ); | |
15386 | return resultobj; | |
15387 | fail: | |
15388 | return NULL; | |
d14a1e28 RD |
15389 | } |
15390 | ||
15391 | ||
0085ce49 RD |
15392 | SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15393 | PyObject *resultobj = 0; | |
15394 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15395 | void *argp1 = 0 ; | |
15396 | int res1 = 0 ; | |
15397 | PyObject *swig_obj[1] ; | |
15398 | ||
15399 | if (!args) SWIG_fail; | |
15400 | swig_obj[0] = args; | |
15401 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 ); | |
15402 | if (!SWIG_IsOK(res1)) { | |
15403 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15404 | } | |
15405 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15406 | { | |
15407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15408 | delete arg1; | |
d14a1e28 | 15409 | |
0085ce49 RD |
15410 | wxPyEndAllowThreads(__tstate); |
15411 | if (PyErr_Occurred()) SWIG_fail; | |
15412 | } | |
15413 | resultobj = SWIG_Py_Void(); | |
15414 | return resultobj; | |
15415 | fail: | |
15416 | return NULL; | |
15417 | } | |
15418 | ||
15419 | ||
15420 | SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15421 | PyObject *resultobj = 0; | |
15422 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15423 | PyObject *arg2 = (PyObject *) 0 ; | |
15424 | PyObject *arg3 = (PyObject *) 0 ; | |
15425 | bool arg4 ; | |
15426 | void *argp1 = 0 ; | |
15427 | int res1 = 0 ; | |
15428 | bool val4 ; | |
15429 | int ecode4 = 0 ; | |
15430 | PyObject * obj0 = 0 ; | |
15431 | PyObject * obj1 = 0 ; | |
15432 | PyObject * obj2 = 0 ; | |
15433 | PyObject * obj3 = 0 ; | |
15434 | char * kwnames[] = { | |
15435 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
15436 | }; | |
15437 | ||
15438 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15439 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
15440 | if (!SWIG_IsOK(res1)) { | |
15441 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15442 | } | |
15443 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15444 | arg2 = obj1; | |
15445 | arg3 = obj2; | |
15446 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
15447 | if (!SWIG_IsOK(ecode4)) { | |
15448 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'"); | |
15449 | } | |
15450 | arg4 = static_cast< bool >(val4); | |
15451 | { | |
15452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15453 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
15454 | wxPyEndAllowThreads(__tstate); | |
15455 | if (PyErr_Occurred()) SWIG_fail; | |
15456 | } | |
15457 | resultobj = SWIG_Py_Void(); | |
15458 | return resultobj; | |
15459 | fail: | |
15460 | return NULL; | |
15461 | } | |
15462 | ||
15463 | ||
15464 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15465 | PyObject *resultobj = 0; | |
15466 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15467 | wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ; | |
15468 | bool arg3 = (bool) false ; | |
15469 | bool result; | |
15470 | void *argp1 = 0 ; | |
15471 | int res1 = 0 ; | |
15472 | int val2 ; | |
15473 | int ecode2 = 0 ; | |
15474 | bool val3 ; | |
15475 | int ecode3 = 0 ; | |
15476 | PyObject * obj0 = 0 ; | |
15477 | PyObject * obj1 = 0 ; | |
15478 | PyObject * obj2 = 0 ; | |
15479 | char * kwnames[] = { | |
15480 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
15481 | }; | |
15482 | ||
15483 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15484 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
15485 | if (!SWIG_IsOK(res1)) { | |
15486 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15487 | } | |
15488 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15489 | if (obj1) { | |
15490 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15491 | if (!SWIG_IsOK(ecode2)) { | |
15492 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
15493 | } | |
15494 | arg2 = static_cast< wxFontEncoding >(val2); | |
15495 | } | |
15496 | if (obj2) { | |
15497 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
15498 | if (!SWIG_IsOK(ecode3)) { | |
15499 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'"); | |
15500 | } | |
15501 | arg3 = static_cast< bool >(val3); | |
15502 | } | |
15503 | { | |
15504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15505 | result = (bool)(arg1)->EnumerateFacenames(arg2,arg3); | |
15506 | wxPyEndAllowThreads(__tstate); | |
15507 | if (PyErr_Occurred()) SWIG_fail; | |
15508 | } | |
15509 | { | |
15510 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15511 | } | |
15512 | return resultobj; | |
15513 | fail: | |
15514 | return NULL; | |
15515 | } | |
15516 | ||
15517 | ||
15518 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15519 | PyObject *resultobj = 0; | |
15520 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15521 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
15522 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
15523 | bool result; | |
15524 | void *argp1 = 0 ; | |
15525 | int res1 = 0 ; | |
15526 | bool temp2 = false ; | |
15527 | PyObject * obj0 = 0 ; | |
15528 | PyObject * obj1 = 0 ; | |
15529 | char * kwnames[] = { | |
15530 | (char *) "self",(char *) "facename", NULL | |
15531 | }; | |
15532 | ||
15533 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail; | |
15534 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
15535 | if (!SWIG_IsOK(res1)) { | |
15536 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15537 | } | |
15538 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15539 | if (obj1) { | |
d14a1e28 | 15540 | { |
0085ce49 RD |
15541 | arg2 = wxString_in_helper(obj1); |
15542 | if (arg2 == NULL) SWIG_fail; | |
15543 | temp2 = true; | |
d14a1e28 | 15544 | } |
0085ce49 RD |
15545 | } |
15546 | { | |
15547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15548 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
15549 | wxPyEndAllowThreads(__tstate); | |
15550 | if (PyErr_Occurred()) SWIG_fail; | |
15551 | } | |
15552 | { | |
15553 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15554 | } | |
15555 | { | |
15556 | if (temp2) | |
15557 | delete arg2; | |
15558 | } | |
15559 | return resultobj; | |
15560 | fail: | |
15561 | { | |
15562 | if (temp2) | |
15563 | delete arg2; | |
15564 | } | |
15565 | return NULL; | |
d14a1e28 RD |
15566 | } |
15567 | ||
15568 | ||
0085ce49 RD |
15569 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15570 | PyObject *resultobj = 0; | |
0085ce49 | 15571 | PyObject *result = 0 ; |
0085ce49 | 15572 | |
704eda0c | 15573 | if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail; |
0085ce49 RD |
15574 | { |
15575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15576 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(); |
0085ce49 RD |
15577 | wxPyEndAllowThreads(__tstate); |
15578 | if (PyErr_Occurred()) SWIG_fail; | |
15579 | } | |
15580 | resultobj = result; | |
15581 | return resultobj; | |
15582 | fail: | |
15583 | return NULL; | |
d14a1e28 RD |
15584 | } |
15585 | ||
15586 | ||
0085ce49 RD |
15587 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15588 | PyObject *resultobj = 0; | |
0085ce49 | 15589 | PyObject *result = 0 ; |
0085ce49 | 15590 | |
704eda0c | 15591 | if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail; |
0085ce49 RD |
15592 | { |
15593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15594 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(); |
0085ce49 RD |
15595 | wxPyEndAllowThreads(__tstate); |
15596 | if (PyErr_Occurred()) SWIG_fail; | |
15597 | } | |
15598 | resultobj = result; | |
15599 | return resultobj; | |
15600 | fail: | |
15601 | return NULL; | |
d14a1e28 RD |
15602 | } |
15603 | ||
15604 | ||
704eda0c RD |
15605 | SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15606 | PyObject *resultobj = 0; | |
15607 | wxString *arg1 = 0 ; | |
15608 | bool result; | |
15609 | bool temp1 = false ; | |
15610 | PyObject * obj0 = 0 ; | |
15611 | char * kwnames[] = { | |
15612 | (char *) "str", NULL | |
15613 | }; | |
15614 | ||
15615 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail; | |
15616 | { | |
15617 | arg1 = wxString_in_helper(obj0); | |
15618 | if (arg1 == NULL) SWIG_fail; | |
15619 | temp1 = true; | |
15620 | } | |
15621 | { | |
15622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15623 | result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1); | |
15624 | wxPyEndAllowThreads(__tstate); | |
15625 | if (PyErr_Occurred()) SWIG_fail; | |
15626 | } | |
15627 | { | |
15628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15629 | } | |
15630 | { | |
15631 | if (temp1) | |
15632 | delete arg1; | |
15633 | } | |
15634 | return resultobj; | |
15635 | fail: | |
15636 | { | |
15637 | if (temp1) | |
15638 | delete arg1; | |
15639 | } | |
15640 | return NULL; | |
15641 | } | |
15642 | ||
15643 | ||
0085ce49 RD |
15644 | SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15645 | PyObject *obj; | |
15646 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15647 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj)); | |
15648 | return SWIG_Py_Void(); | |
d14a1e28 RD |
15649 | } |
15650 | ||
0085ce49 RD |
15651 | SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15652 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
15653 | } |
15654 | ||
0085ce49 RD |
15655 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15656 | PyObject *resultobj = 0; | |
15657 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15658 | int arg2 ; | |
15659 | void *argp1 = 0 ; | |
15660 | int res1 = 0 ; | |
15661 | int val2 ; | |
15662 | int ecode2 = 0 ; | |
15663 | PyObject *swig_obj[2] ; | |
15664 | ||
15665 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail; | |
15666 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15667 | if (!SWIG_IsOK(res1)) { | |
15668 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15669 | } | |
15670 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15671 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
15672 | if (!SWIG_IsOK(ecode2)) { | |
15673 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'"); | |
15674 | } | |
15675 | arg2 = static_cast< int >(val2); | |
15676 | if (arg1) (arg1)->Language = arg2; | |
15677 | ||
15678 | resultobj = SWIG_Py_Void(); | |
15679 | return resultobj; | |
15680 | fail: | |
15681 | return NULL; | |
d14a1e28 RD |
15682 | } |
15683 | ||
15684 | ||
0085ce49 RD |
15685 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15686 | PyObject *resultobj = 0; | |
15687 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15688 | int result; | |
15689 | void *argp1 = 0 ; | |
15690 | int res1 = 0 ; | |
15691 | PyObject *swig_obj[1] ; | |
15692 | ||
15693 | if (!args) SWIG_fail; | |
15694 | swig_obj[0] = args; | |
15695 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15696 | if (!SWIG_IsOK(res1)) { | |
15697 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15698 | } | |
15699 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15700 | result = (int) ((arg1)->Language); | |
15701 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15702 | return resultobj; | |
15703 | fail: | |
15704 | return NULL; | |
15705 | } | |
15706 | ||
15707 | ||
15708 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15709 | PyObject *resultobj = 0; | |
15710 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15711 | wxString *arg2 = (wxString *) 0 ; | |
15712 | void *argp1 = 0 ; | |
15713 | int res1 = 0 ; | |
15714 | bool temp2 = false ; | |
15715 | PyObject *swig_obj[2] ; | |
15716 | ||
15717 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail; | |
15718 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15719 | if (!SWIG_IsOK(res1)) { | |
15720 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15721 | } | |
15722 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15723 | { | |
15724 | arg2 = wxString_in_helper(swig_obj[1]); | |
15725 | if (arg2 == NULL) SWIG_fail; | |
15726 | temp2 = true; | |
15727 | } | |
15728 | if (arg1) (arg1)->CanonicalName = *arg2; | |
15729 | ||
15730 | resultobj = SWIG_Py_Void(); | |
15731 | { | |
15732 | if (temp2) | |
15733 | delete arg2; | |
15734 | } | |
15735 | return resultobj; | |
15736 | fail: | |
15737 | { | |
15738 | if (temp2) | |
15739 | delete arg2; | |
15740 | } | |
15741 | return NULL; | |
d14a1e28 RD |
15742 | } |
15743 | ||
15744 | ||
0085ce49 RD |
15745 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15746 | PyObject *resultobj = 0; | |
15747 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15748 | wxString *result = 0 ; | |
15749 | void *argp1 = 0 ; | |
15750 | int res1 = 0 ; | |
15751 | PyObject *swig_obj[1] ; | |
15752 | ||
15753 | if (!args) SWIG_fail; | |
15754 | swig_obj[0] = args; | |
15755 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15756 | if (!SWIG_IsOK(res1)) { | |
15757 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15758 | } | |
15759 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15760 | result = (wxString *)& ((arg1)->CanonicalName); | |
15761 | { | |
093d3ff1 | 15762 | #if wxUSE_UNICODE |
0085ce49 | 15763 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
093d3ff1 | 15764 | #else |
0085ce49 | 15765 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
093d3ff1 | 15766 | #endif |
0085ce49 RD |
15767 | } |
15768 | return resultobj; | |
15769 | fail: | |
15770 | return NULL; | |
d14a1e28 RD |
15771 | } |
15772 | ||
15773 | ||
0085ce49 RD |
15774 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15775 | PyObject *resultobj = 0; | |
15776 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15777 | wxString *arg2 = (wxString *) 0 ; | |
15778 | void *argp1 = 0 ; | |
15779 | int res1 = 0 ; | |
15780 | bool temp2 = false ; | |
15781 | PyObject *swig_obj[2] ; | |
15782 | ||
15783 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail; | |
15784 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15785 | if (!SWIG_IsOK(res1)) { | |
15786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15787 | } | |
15788 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15789 | { | |
15790 | arg2 = wxString_in_helper(swig_obj[1]); | |
15791 | if (arg2 == NULL) SWIG_fail; | |
15792 | temp2 = true; | |
15793 | } | |
15794 | if (arg1) (arg1)->Description = *arg2; | |
15795 | ||
15796 | resultobj = SWIG_Py_Void(); | |
15797 | { | |
15798 | if (temp2) | |
15799 | delete arg2; | |
15800 | } | |
15801 | return resultobj; | |
15802 | fail: | |
15803 | { | |
15804 | if (temp2) | |
15805 | delete arg2; | |
15806 | } | |
15807 | return NULL; | |
d14a1e28 RD |
15808 | } |
15809 | ||
15810 | ||
0085ce49 RD |
15811 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15812 | PyObject *resultobj = 0; | |
15813 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15814 | wxString *result = 0 ; | |
15815 | void *argp1 = 0 ; | |
15816 | int res1 = 0 ; | |
15817 | PyObject *swig_obj[1] ; | |
15818 | ||
15819 | if (!args) SWIG_fail; | |
15820 | swig_obj[0] = args; | |
15821 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15822 | if (!SWIG_IsOK(res1)) { | |
15823 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15824 | } | |
15825 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15826 | result = (wxString *)& ((arg1)->Description); | |
15827 | { | |
d14a1e28 | 15828 | #if wxUSE_UNICODE |
0085ce49 | 15829 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 15830 | #else |
0085ce49 | 15831 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 | 15832 | #endif |
0085ce49 RD |
15833 | } |
15834 | return resultobj; | |
15835 | fail: | |
15836 | return NULL; | |
15837 | } | |
15838 | ||
15839 | ||
15840 | SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15841 | PyObject *obj; | |
15842 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15843 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj)); | |
15844 | return SWIG_Py_Void(); | |
15845 | } | |
15846 | ||
15847 | SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15848 | PyObject *resultobj = 0; | |
15849 | int arg1 = (int) -1 ; | |
15850 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
15851 | wxLocale *result = 0 ; | |
15852 | int val1 ; | |
15853 | int ecode1 = 0 ; | |
15854 | int val2 ; | |
15855 | int ecode2 = 0 ; | |
15856 | PyObject * obj0 = 0 ; | |
15857 | PyObject * obj1 = 0 ; | |
15858 | char * kwnames[] = { | |
15859 | (char *) "language",(char *) "flags", NULL | |
15860 | }; | |
15861 | ||
15862 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail; | |
15863 | if (obj0) { | |
15864 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15865 | if (!SWIG_IsOK(ecode1)) { | |
15866 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'"); | |
15867 | } | |
15868 | arg1 = static_cast< int >(val1); | |
15869 | } | |
15870 | if (obj1) { | |
15871 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15872 | if (!SWIG_IsOK(ecode2)) { | |
15873 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'"); | |
15874 | } | |
15875 | arg2 = static_cast< int >(val2); | |
15876 | } | |
15877 | { | |
15878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15879 | result = (wxLocale *)new_wxLocale(arg1,arg2); | |
15880 | wxPyEndAllowThreads(__tstate); | |
15881 | if (PyErr_Occurred()) SWIG_fail; | |
15882 | } | |
15883 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 ); | |
15884 | return resultobj; | |
15885 | fail: | |
15886 | return NULL; | |
d14a1e28 RD |
15887 | } |
15888 | ||
15889 | ||
0085ce49 RD |
15890 | SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15891 | PyObject *resultobj = 0; | |
15892 | wxLocale *arg1 = (wxLocale *) 0 ; | |
15893 | void *argp1 = 0 ; | |
15894 | int res1 = 0 ; | |
15895 | PyObject *swig_obj[1] ; | |
15896 | ||
15897 | if (!args) SWIG_fail; | |
15898 | swig_obj[0] = args; | |
15899 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 ); | |
15900 | if (!SWIG_IsOK(res1)) { | |
15901 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
15902 | } | |
15903 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
15904 | { | |
15905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15906 | delete arg1; | |
d14a1e28 | 15907 | |
0085ce49 RD |
15908 | wxPyEndAllowThreads(__tstate); |
15909 | if (PyErr_Occurred()) SWIG_fail; | |
15910 | } | |
15911 | resultobj = SWIG_Py_Void(); | |
15912 | return resultobj; | |
15913 | fail: | |
15914 | return NULL; | |
15915 | } | |
15916 | ||
15917 | ||
15918 | SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15919 | PyObject *resultobj = 0; | |
15920 | wxLocale *arg1 = (wxLocale *) 0 ; | |
15921 | wxString *arg2 = 0 ; | |
15922 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15923 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15924 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15925 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15926 | bool arg5 = (bool) true ; | |
15927 | bool arg6 = (bool) false ; | |
15928 | bool result; | |
15929 | void *argp1 = 0 ; | |
15930 | int res1 = 0 ; | |
15931 | bool temp2 = false ; | |
15932 | bool temp3 = false ; | |
15933 | bool temp4 = false ; | |
15934 | bool val5 ; | |
15935 | int ecode5 = 0 ; | |
15936 | bool val6 ; | |
15937 | int ecode6 = 0 ; | |
15938 | PyObject * obj0 = 0 ; | |
15939 | PyObject * obj1 = 0 ; | |
15940 | PyObject * obj2 = 0 ; | |
15941 | PyObject * obj3 = 0 ; | |
15942 | PyObject * obj4 = 0 ; | |
15943 | PyObject * obj5 = 0 ; | |
15944 | char * kwnames[] = { | |
15945 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
15946 | }; | |
15947 | ||
15948 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
15949 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
15950 | if (!SWIG_IsOK(res1)) { | |
15951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
15952 | } | |
15953 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
15954 | { | |
15955 | arg2 = wxString_in_helper(obj1); | |
15956 | if (arg2 == NULL) SWIG_fail; | |
15957 | temp2 = true; | |
15958 | } | |
15959 | if (obj2) { | |
d14a1e28 | 15960 | { |
0085ce49 RD |
15961 | arg3 = wxString_in_helper(obj2); |
15962 | if (arg3 == NULL) SWIG_fail; | |
15963 | temp3 = true; | |
d14a1e28 | 15964 | } |
0085ce49 RD |
15965 | } |
15966 | if (obj3) { | |
093d3ff1 | 15967 | { |
0085ce49 RD |
15968 | arg4 = wxString_in_helper(obj3); |
15969 | if (arg4 == NULL) SWIG_fail; | |
15970 | temp4 = true; | |
093d3ff1 | 15971 | } |
0085ce49 RD |
15972 | } |
15973 | if (obj4) { | |
15974 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
15975 | if (!SWIG_IsOK(ecode5)) { | |
15976 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'"); | |
15977 | } | |
15978 | arg5 = static_cast< bool >(val5); | |
15979 | } | |
15980 | if (obj5) { | |
15981 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
15982 | if (!SWIG_IsOK(ecode6)) { | |
15983 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'"); | |
15984 | } | |
15985 | arg6 = static_cast< bool >(val6); | |
15986 | } | |
15987 | { | |
15988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15989 | result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
15990 | wxPyEndAllowThreads(__tstate); | |
15991 | if (PyErr_Occurred()) SWIG_fail; | |
15992 | } | |
15993 | { | |
15994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15995 | } | |
15996 | { | |
15997 | if (temp2) | |
15998 | delete arg2; | |
15999 | } | |
16000 | { | |
16001 | if (temp3) | |
16002 | delete arg3; | |
16003 | } | |
16004 | { | |
16005 | if (temp4) | |
16006 | delete arg4; | |
16007 | } | |
16008 | return resultobj; | |
16009 | fail: | |
16010 | { | |
16011 | if (temp2) | |
16012 | delete arg2; | |
16013 | } | |
16014 | { | |
16015 | if (temp3) | |
16016 | delete arg3; | |
16017 | } | |
16018 | { | |
16019 | if (temp4) | |
16020 | delete arg4; | |
16021 | } | |
16022 | return NULL; | |
16023 | } | |
16024 | ||
16025 | ||
16026 | SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16027 | PyObject *resultobj = 0; | |
16028 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16029 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
16030 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
16031 | bool result; | |
16032 | void *argp1 = 0 ; | |
16033 | int res1 = 0 ; | |
16034 | int val2 ; | |
16035 | int ecode2 = 0 ; | |
16036 | int val3 ; | |
16037 | int ecode3 = 0 ; | |
16038 | PyObject * obj0 = 0 ; | |
16039 | PyObject * obj1 = 0 ; | |
16040 | PyObject * obj2 = 0 ; | |
16041 | char * kwnames[] = { | |
16042 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
16043 | }; | |
16044 | ||
16045 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16046 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16047 | if (!SWIG_IsOK(res1)) { | |
16048 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16049 | } | |
16050 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16051 | if (obj1) { | |
16052 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16053 | if (!SWIG_IsOK(ecode2)) { | |
16054 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'"); | |
16055 | } | |
16056 | arg2 = static_cast< int >(val2); | |
16057 | } | |
16058 | if (obj2) { | |
16059 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16060 | if (!SWIG_IsOK(ecode3)) { | |
16061 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'"); | |
16062 | } | |
16063 | arg3 = static_cast< int >(val3); | |
16064 | } | |
16065 | { | |
16066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16067 | result = (bool)wxLocale_Init2(arg1,arg2,arg3); | |
16068 | wxPyEndAllowThreads(__tstate); | |
16069 | if (PyErr_Occurred()) SWIG_fail; | |
16070 | } | |
16071 | { | |
16072 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16073 | } | |
16074 | return resultobj; | |
16075 | fail: | |
16076 | return NULL; | |
093d3ff1 RD |
16077 | } |
16078 | ||
16079 | ||
0085ce49 RD |
16080 | SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16081 | PyObject *resultobj = 0; | |
16082 | int result; | |
16083 | ||
16084 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail; | |
16085 | { | |
16086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16087 | result = (int)wxLocale::GetSystemLanguage(); | |
16088 | wxPyEndAllowThreads(__tstate); | |
16089 | if (PyErr_Occurred()) SWIG_fail; | |
16090 | } | |
16091 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16092 | return resultobj; | |
16093 | fail: | |
16094 | return NULL; | |
d14a1e28 RD |
16095 | } |
16096 | ||
16097 | ||
0085ce49 RD |
16098 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16099 | PyObject *resultobj = 0; | |
16100 | wxFontEncoding result; | |
16101 | ||
16102 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail; | |
16103 | { | |
16104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16105 | result = (wxFontEncoding)wxLocale::GetSystemEncoding(); | |
16106 | wxPyEndAllowThreads(__tstate); | |
16107 | if (PyErr_Occurred()) SWIG_fail; | |
16108 | } | |
16109 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16110 | return resultobj; | |
16111 | fail: | |
16112 | return NULL; | |
d14a1e28 RD |
16113 | } |
16114 | ||
16115 | ||
0085ce49 RD |
16116 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16117 | PyObject *resultobj = 0; | |
16118 | wxString result; | |
16119 | ||
16120 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail; | |
16121 | { | |
16122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16123 | result = wxLocale::GetSystemEncodingName(); | |
16124 | wxPyEndAllowThreads(__tstate); | |
16125 | if (PyErr_Occurred()) SWIG_fail; | |
16126 | } | |
16127 | { | |
d14a1e28 | 16128 | #if wxUSE_UNICODE |
0085ce49 | 16129 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 16130 | #else |
0085ce49 | 16131 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 16132 | #endif |
0085ce49 RD |
16133 | } |
16134 | return resultobj; | |
16135 | fail: | |
16136 | return NULL; | |
d14a1e28 RD |
16137 | } |
16138 | ||
16139 | ||
0085ce49 RD |
16140 | SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16141 | PyObject *resultobj = 0; | |
16142 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16143 | bool result; | |
16144 | void *argp1 = 0 ; | |
16145 | int res1 = 0 ; | |
16146 | PyObject *swig_obj[1] ; | |
16147 | ||
16148 | if (!args) SWIG_fail; | |
16149 | swig_obj[0] = args; | |
16150 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16151 | if (!SWIG_IsOK(res1)) { | |
16152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16153 | } | |
16154 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16155 | { | |
16156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16157 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
16158 | wxPyEndAllowThreads(__tstate); | |
16159 | if (PyErr_Occurred()) SWIG_fail; | |
16160 | } | |
16161 | { | |
16162 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16163 | } | |
16164 | return resultobj; | |
16165 | fail: | |
16166 | return NULL; | |
093d3ff1 | 16167 | } |
0085ce49 RD |
16168 | |
16169 | ||
16170 | SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16171 | PyObject *resultobj = 0; | |
16172 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16173 | wxString result; | |
16174 | void *argp1 = 0 ; | |
16175 | int res1 = 0 ; | |
16176 | PyObject *swig_obj[1] ; | |
16177 | ||
16178 | if (!args) SWIG_fail; | |
16179 | swig_obj[0] = args; | |
16180 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16181 | if (!SWIG_IsOK(res1)) { | |
16182 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16183 | } | |
16184 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16185 | { | |
16186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16187 | result = ((wxLocale const *)arg1)->GetLocale(); | |
16188 | wxPyEndAllowThreads(__tstate); | |
16189 | if (PyErr_Occurred()) SWIG_fail; | |
16190 | } | |
16191 | { | |
16192 | #if wxUSE_UNICODE | |
16193 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16194 | #else | |
16195 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16196 | #endif | |
16197 | } | |
16198 | return resultobj; | |
16199 | fail: | |
16200 | return NULL; | |
d14a1e28 RD |
16201 | } |
16202 | ||
16203 | ||
0085ce49 RD |
16204 | SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16205 | PyObject *resultobj = 0; | |
16206 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16207 | int result; | |
16208 | void *argp1 = 0 ; | |
16209 | int res1 = 0 ; | |
16210 | PyObject *swig_obj[1] ; | |
16211 | ||
16212 | if (!args) SWIG_fail; | |
16213 | swig_obj[0] = args; | |
16214 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16215 | if (!SWIG_IsOK(res1)) { | |
16216 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16217 | } | |
16218 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16219 | { | |
16220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16221 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
16222 | wxPyEndAllowThreads(__tstate); | |
16223 | if (PyErr_Occurred()) SWIG_fail; | |
16224 | } | |
16225 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16226 | return resultobj; | |
16227 | fail: | |
16228 | return NULL; | |
d14a1e28 RD |
16229 | } |
16230 | ||
16231 | ||
0085ce49 RD |
16232 | SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16233 | PyObject *resultobj = 0; | |
16234 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16235 | wxString result; | |
16236 | void *argp1 = 0 ; | |
16237 | int res1 = 0 ; | |
16238 | PyObject *swig_obj[1] ; | |
16239 | ||
16240 | if (!args) SWIG_fail; | |
16241 | swig_obj[0] = args; | |
16242 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16243 | if (!SWIG_IsOK(res1)) { | |
16244 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16245 | } | |
16246 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16247 | { | |
16248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16249 | result = ((wxLocale const *)arg1)->GetSysName(); | |
16250 | wxPyEndAllowThreads(__tstate); | |
16251 | if (PyErr_Occurred()) SWIG_fail; | |
16252 | } | |
16253 | { | |
16254 | #if wxUSE_UNICODE | |
16255 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16256 | #else | |
16257 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16258 | #endif | |
16259 | } | |
16260 | return resultobj; | |
16261 | fail: | |
16262 | return NULL; | |
d14a1e28 RD |
16263 | } |
16264 | ||
16265 | ||
0085ce49 RD |
16266 | SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16267 | PyObject *resultobj = 0; | |
16268 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16269 | wxString result; | |
16270 | void *argp1 = 0 ; | |
16271 | int res1 = 0 ; | |
16272 | PyObject *swig_obj[1] ; | |
16273 | ||
16274 | if (!args) SWIG_fail; | |
16275 | swig_obj[0] = args; | |
16276 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16277 | if (!SWIG_IsOK(res1)) { | |
16278 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16279 | } | |
16280 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16281 | { | |
16282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16283 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
16284 | wxPyEndAllowThreads(__tstate); | |
16285 | if (PyErr_Occurred()) SWIG_fail; | |
16286 | } | |
16287 | { | |
16288 | #if wxUSE_UNICODE | |
16289 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16290 | #else | |
16291 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16292 | #endif | |
16293 | } | |
16294 | return resultobj; | |
16295 | fail: | |
16296 | return NULL; | |
d14a1e28 RD |
16297 | } |
16298 | ||
16299 | ||
0085ce49 RD |
16300 | SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16301 | PyObject *resultobj = 0; | |
16302 | wxString *arg1 = 0 ; | |
16303 | bool temp1 = false ; | |
16304 | PyObject * obj0 = 0 ; | |
16305 | char * kwnames[] = { | |
16306 | (char *) "prefix", NULL | |
16307 | }; | |
16308 | ||
16309 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail; | |
16310 | { | |
16311 | arg1 = wxString_in_helper(obj0); | |
16312 | if (arg1 == NULL) SWIG_fail; | |
16313 | temp1 = true; | |
16314 | } | |
16315 | { | |
16316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16317 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
16318 | wxPyEndAllowThreads(__tstate); | |
16319 | if (PyErr_Occurred()) SWIG_fail; | |
16320 | } | |
16321 | resultobj = SWIG_Py_Void(); | |
16322 | { | |
16323 | if (temp1) | |
16324 | delete arg1; | |
16325 | } | |
16326 | return resultobj; | |
16327 | fail: | |
16328 | { | |
16329 | if (temp1) | |
16330 | delete arg1; | |
16331 | } | |
16332 | return NULL; | |
16333 | } | |
16334 | ||
16335 | ||
16336 | SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16337 | PyObject *resultobj = 0; | |
16338 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16339 | wxString *arg2 = 0 ; | |
16340 | bool result; | |
16341 | void *argp1 = 0 ; | |
16342 | int res1 = 0 ; | |
16343 | bool temp2 = false ; | |
16344 | PyObject * obj0 = 0 ; | |
16345 | PyObject * obj1 = 0 ; | |
16346 | char * kwnames[] = { | |
16347 | (char *) "self",(char *) "szDomain", NULL | |
16348 | }; | |
16349 | ||
16350 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail; | |
16351 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16352 | if (!SWIG_IsOK(res1)) { | |
16353 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16354 | } | |
16355 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16356 | { | |
16357 | arg2 = wxString_in_helper(obj1); | |
16358 | if (arg2 == NULL) SWIG_fail; | |
16359 | temp2 = true; | |
16360 | } | |
16361 | { | |
16362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16363 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
16364 | wxPyEndAllowThreads(__tstate); | |
16365 | if (PyErr_Occurred()) SWIG_fail; | |
16366 | } | |
16367 | { | |
16368 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16369 | } | |
16370 | { | |
16371 | if (temp2) | |
16372 | delete arg2; | |
16373 | } | |
16374 | return resultobj; | |
16375 | fail: | |
16376 | { | |
16377 | if (temp2) | |
16378 | delete arg2; | |
16379 | } | |
16380 | return NULL; | |
16381 | } | |
16382 | ||
16383 | ||
33d6fd3b RD |
16384 | SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16385 | PyObject *resultobj = 0; | |
16386 | int arg1 ; | |
16387 | bool result; | |
16388 | int val1 ; | |
16389 | int ecode1 = 0 ; | |
16390 | PyObject * obj0 = 0 ; | |
16391 | char * kwnames[] = { | |
16392 | (char *) "lang", NULL | |
16393 | }; | |
16394 | ||
16395 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail; | |
16396 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16397 | if (!SWIG_IsOK(ecode1)) { | |
16398 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'"); | |
16399 | } | |
16400 | arg1 = static_cast< int >(val1); | |
16401 | { | |
16402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16403 | result = (bool)wxLocale::IsAvailable(arg1); | |
16404 | wxPyEndAllowThreads(__tstate); | |
16405 | if (PyErr_Occurred()) SWIG_fail; | |
16406 | } | |
16407 | { | |
16408 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16409 | } | |
16410 | return resultobj; | |
16411 | fail: | |
16412 | return NULL; | |
16413 | } | |
16414 | ||
16415 | ||
0085ce49 RD |
16416 | SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16417 | PyObject *resultobj = 0; | |
16418 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16419 | wxString *arg2 = 0 ; | |
16420 | bool result; | |
16421 | void *argp1 = 0 ; | |
16422 | int res1 = 0 ; | |
16423 | bool temp2 = false ; | |
16424 | PyObject * obj0 = 0 ; | |
16425 | PyObject * obj1 = 0 ; | |
16426 | char * kwnames[] = { | |
16427 | (char *) "self",(char *) "szDomain", NULL | |
16428 | }; | |
16429 | ||
16430 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail; | |
16431 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16432 | if (!SWIG_IsOK(res1)) { | |
16433 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16434 | } | |
16435 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16436 | { | |
16437 | arg2 = wxString_in_helper(obj1); | |
16438 | if (arg2 == NULL) SWIG_fail; | |
16439 | temp2 = true; | |
16440 | } | |
16441 | { | |
16442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16443 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
16444 | wxPyEndAllowThreads(__tstate); | |
16445 | if (PyErr_Occurred()) SWIG_fail; | |
16446 | } | |
16447 | { | |
16448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16449 | } | |
16450 | { | |
16451 | if (temp2) | |
16452 | delete arg2; | |
16453 | } | |
16454 | return resultobj; | |
16455 | fail: | |
16456 | { | |
16457 | if (temp2) | |
16458 | delete arg2; | |
16459 | } | |
16460 | return NULL; | |
d14a1e28 RD |
16461 | } |
16462 | ||
16463 | ||
0085ce49 RD |
16464 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16465 | PyObject *resultobj = 0; | |
16466 | int arg1 ; | |
16467 | wxLanguageInfo *result = 0 ; | |
16468 | int val1 ; | |
16469 | int ecode1 = 0 ; | |
16470 | PyObject * obj0 = 0 ; | |
16471 | char * kwnames[] = { | |
16472 | (char *) "lang", NULL | |
16473 | }; | |
16474 | ||
16475 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
16476 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16477 | if (!SWIG_IsOK(ecode1)) { | |
16478 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'"); | |
16479 | } | |
16480 | arg1 = static_cast< int >(val1); | |
16481 | { | |
16482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16483 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
16484 | wxPyEndAllowThreads(__tstate); | |
16485 | if (PyErr_Occurred()) SWIG_fail; | |
16486 | } | |
16487 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16488 | return resultobj; | |
16489 | fail: | |
16490 | return NULL; | |
16491 | } | |
16492 | ||
16493 | ||
16494 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16495 | PyObject *resultobj = 0; | |
16496 | int arg1 ; | |
16497 | wxString result; | |
16498 | int val1 ; | |
16499 | int ecode1 = 0 ; | |
16500 | PyObject * obj0 = 0 ; | |
16501 | char * kwnames[] = { | |
16502 | (char *) "lang", NULL | |
16503 | }; | |
16504 | ||
16505 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail; | |
16506 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16507 | if (!SWIG_IsOK(ecode1)) { | |
16508 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'"); | |
16509 | } | |
16510 | arg1 = static_cast< int >(val1); | |
16511 | { | |
16512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16513 | result = wxLocale::GetLanguageName(arg1); | |
16514 | wxPyEndAllowThreads(__tstate); | |
16515 | if (PyErr_Occurred()) SWIG_fail; | |
16516 | } | |
16517 | { | |
16518 | #if wxUSE_UNICODE | |
16519 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16520 | #else | |
16521 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16522 | #endif | |
16523 | } | |
16524 | return resultobj; | |
16525 | fail: | |
16526 | return NULL; | |
d14a1e28 RD |
16527 | } |
16528 | ||
16529 | ||
0085ce49 RD |
16530 | SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16531 | PyObject *resultobj = 0; | |
16532 | wxString *arg1 = 0 ; | |
16533 | wxLanguageInfo *result = 0 ; | |
16534 | bool temp1 = false ; | |
16535 | PyObject * obj0 = 0 ; | |
16536 | char * kwnames[] = { | |
16537 | (char *) "locale", NULL | |
16538 | }; | |
16539 | ||
16540 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
16541 | { | |
16542 | arg1 = wxString_in_helper(obj0); | |
16543 | if (arg1 == NULL) SWIG_fail; | |
16544 | temp1 = true; | |
16545 | } | |
16546 | { | |
16547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 RD |
16548 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); |
16549 | wxPyEndAllowThreads(__tstate); | |
16550 | if (PyErr_Occurred()) SWIG_fail; | |
16551 | } | |
16552 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16553 | { | |
16554 | if (temp1) | |
16555 | delete arg1; | |
16556 | } | |
16557 | return resultobj; | |
16558 | fail: | |
16559 | { | |
16560 | if (temp1) | |
16561 | delete arg1; | |
16562 | } | |
16563 | return NULL; | |
16564 | } | |
16565 | ||
16566 | ||
16567 | SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16568 | PyObject *resultobj = 0; | |
16569 | wxLanguageInfo *arg1 = 0 ; | |
16570 | void *argp1 = 0 ; | |
16571 | int res1 = 0 ; | |
16572 | PyObject * obj0 = 0 ; | |
16573 | char * kwnames[] = { | |
16574 | (char *) "info", NULL | |
16575 | }; | |
16576 | ||
16577 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail; | |
16578 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0); | |
16579 | if (!SWIG_IsOK(res1)) { | |
16580 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
16581 | } | |
16582 | if (!argp1) { | |
16583 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
16584 | } | |
16585 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16586 | { | |
16587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16588 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
16589 | wxPyEndAllowThreads(__tstate); | |
16590 | if (PyErr_Occurred()) SWIG_fail; | |
16591 | } | |
16592 | resultobj = SWIG_Py_Void(); | |
16593 | return resultobj; | |
16594 | fail: | |
16595 | return NULL; | |
16596 | } | |
16597 | ||
16598 | ||
16599 | SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16600 | PyObject *resultobj = 0; | |
16601 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16602 | wxString *arg2 = 0 ; | |
16603 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16604 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16605 | wxString result; | |
16606 | void *argp1 = 0 ; | |
16607 | int res1 = 0 ; | |
16608 | bool temp2 = false ; | |
16609 | bool temp3 = false ; | |
16610 | PyObject * obj0 = 0 ; | |
16611 | PyObject * obj1 = 0 ; | |
16612 | PyObject * obj2 = 0 ; | |
16613 | char * kwnames[] = { | |
16614 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
16615 | }; | |
16616 | ||
16617 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16618 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16619 | if (!SWIG_IsOK(res1)) { | |
16620 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16621 | } | |
16622 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16623 | { | |
16624 | arg2 = wxString_in_helper(obj1); | |
16625 | if (arg2 == NULL) SWIG_fail; | |
16626 | temp2 = true; | |
16627 | } | |
16628 | if (obj2) { | |
16629 | { | |
16630 | arg3 = wxString_in_helper(obj2); | |
16631 | if (arg3 == NULL) SWIG_fail; | |
16632 | temp3 = true; | |
16633 | } | |
16634 | } | |
16635 | { | |
16636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16637 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
16638 | wxPyEndAllowThreads(__tstate); | |
16639 | if (PyErr_Occurred()) SWIG_fail; | |
16640 | } | |
16641 | { | |
16642 | #if wxUSE_UNICODE | |
16643 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16644 | #else | |
16645 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16646 | #endif | |
16647 | } | |
16648 | { | |
16649 | if (temp2) | |
16650 | delete arg2; | |
16651 | } | |
16652 | { | |
16653 | if (temp3) | |
16654 | delete arg3; | |
16655 | } | |
16656 | return resultobj; | |
16657 | fail: | |
16658 | { | |
16659 | if (temp2) | |
16660 | delete arg2; | |
16661 | } | |
16662 | { | |
16663 | if (temp3) | |
16664 | delete arg3; | |
16665 | } | |
16666 | return NULL; | |
16667 | } | |
16668 | ||
16669 | ||
16670 | SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16671 | PyObject *resultobj = 0; | |
16672 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16673 | wxString *result = 0 ; | |
16674 | void *argp1 = 0 ; | |
16675 | int res1 = 0 ; | |
16676 | PyObject *swig_obj[1] ; | |
16677 | ||
16678 | if (!args) SWIG_fail; | |
16679 | swig_obj[0] = args; | |
16680 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16681 | if (!SWIG_IsOK(res1)) { | |
16682 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16683 | } | |
16684 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16685 | { | |
16686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16687 | { | |
16688 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
16689 | result = (wxString *) &_result_ref; | |
16690 | } | |
16691 | wxPyEndAllowThreads(__tstate); | |
16692 | if (PyErr_Occurred()) SWIG_fail; | |
16693 | } | |
16694 | { | |
16695 | #if wxUSE_UNICODE | |
16696 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16697 | #else | |
16698 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16699 | #endif | |
16700 | } | |
16701 | return resultobj; | |
16702 | fail: | |
16703 | return NULL; | |
16704 | } | |
16705 | ||
16706 | ||
16707 | SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16708 | PyObject *obj; | |
16709 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16710 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj)); | |
16711 | return SWIG_Py_Void(); | |
16712 | } | |
16713 | ||
16714 | SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16715 | return SWIG_Python_InitShadowInstance(args); | |
16716 | } | |
16717 | ||
16718 | SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16719 | PyObject *resultobj = 0; | |
16720 | int arg1 = (int) -1 ; | |
16721 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
16722 | wxPyLocale *result = 0 ; | |
16723 | int val1 ; | |
16724 | int ecode1 = 0 ; | |
16725 | int val2 ; | |
16726 | int ecode2 = 0 ; | |
16727 | PyObject * obj0 = 0 ; | |
16728 | PyObject * obj1 = 0 ; | |
16729 | char * kwnames[] = { | |
16730 | (char *) "language",(char *) "flags", NULL | |
16731 | }; | |
16732 | ||
16733 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail; | |
16734 | if (obj0) { | |
16735 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16736 | if (!SWIG_IsOK(ecode1)) { | |
16737 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'"); | |
16738 | } | |
16739 | arg1 = static_cast< int >(val1); | |
16740 | } | |
16741 | if (obj1) { | |
16742 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16743 | if (!SWIG_IsOK(ecode2)) { | |
16744 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'"); | |
16745 | } | |
16746 | arg2 = static_cast< int >(val2); | |
16747 | } | |
16748 | { | |
16749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16750 | result = (wxPyLocale *)new_wxPyLocale(arg1,arg2); | |
16751 | wxPyEndAllowThreads(__tstate); | |
16752 | if (PyErr_Occurred()) SWIG_fail; | |
16753 | } | |
16754 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 ); | |
16755 | return resultobj; | |
16756 | fail: | |
16757 | return NULL; | |
16758 | } | |
16759 | ||
16760 | ||
16761 | SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16762 | PyObject *resultobj = 0; | |
16763 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; | |
16764 | void *argp1 = 0 ; | |
16765 | int res1 = 0 ; | |
16766 | PyObject *swig_obj[1] ; | |
16767 | ||
16768 | if (!args) SWIG_fail; | |
16769 | swig_obj[0] = args; | |
16770 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 ); | |
16771 | if (!SWIG_IsOK(res1)) { | |
16772 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'"); | |
16773 | } | |
16774 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); | |
16775 | { | |
16776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16777 | delete arg1; | |
16778 | ||
0085ce49 RD |
16779 | wxPyEndAllowThreads(__tstate); |
16780 | if (PyErr_Occurred()) SWIG_fail; | |
16781 | } | |
fc46b7f3 | 16782 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
16783 | return resultobj; |
16784 | fail: | |
0085ce49 | 16785 | return NULL; |
d14a1e28 RD |
16786 | } |
16787 | ||
16788 | ||
fc46b7f3 | 16789 | SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 16790 | PyObject *resultobj = 0; |
fc46b7f3 RD |
16791 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
16792 | PyObject *arg2 = (PyObject *) 0 ; | |
16793 | PyObject *arg3 = (PyObject *) 0 ; | |
0085ce49 RD |
16794 | void *argp1 = 0 ; |
16795 | int res1 = 0 ; | |
16796 | PyObject * obj0 = 0 ; | |
fc46b7f3 RD |
16797 | PyObject * obj1 = 0 ; |
16798 | PyObject * obj2 = 0 ; | |
0085ce49 | 16799 | char * kwnames[] = { |
fc46b7f3 | 16800 | (char *) "self",(char *) "self",(char *) "_class", NULL |
0085ce49 RD |
16801 | }; |
16802 | ||
fc46b7f3 RD |
16803 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
16804 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
0085ce49 | 16805 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 16806 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'"); |
0085ce49 | 16807 | } |
fc46b7f3 RD |
16808 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); |
16809 | arg2 = obj1; | |
16810 | arg3 = obj2; | |
0085ce49 RD |
16811 | { |
16812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 16813 | (arg1)->_setCallbackInfo(arg2,arg3); |
0085ce49 RD |
16814 | wxPyEndAllowThreads(__tstate); |
16815 | if (PyErr_Occurred()) SWIG_fail; | |
16816 | } | |
16817 | resultobj = SWIG_Py_Void(); | |
16818 | return resultobj; | |
16819 | fail: | |
16820 | return NULL; | |
16821 | } | |
16822 | ||
16823 | ||
fc46b7f3 | 16824 | SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 16825 | PyObject *resultobj = 0; |
fc46b7f3 RD |
16826 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
16827 | wxChar *arg2 = (wxChar *) 0 ; | |
16828 | wxChar *arg3 = (wxChar *) NULL ; | |
16829 | wxChar *result = 0 ; | |
0085ce49 RD |
16830 | void *argp1 = 0 ; |
16831 | int res1 = 0 ; | |
fc46b7f3 RD |
16832 | void *argp2 = 0 ; |
16833 | int res2 = 0 ; | |
16834 | void *argp3 = 0 ; | |
16835 | int res3 = 0 ; | |
0085ce49 RD |
16836 | PyObject * obj0 = 0 ; |
16837 | PyObject * obj1 = 0 ; | |
16838 | PyObject * obj2 = 0 ; | |
16839 | char * kwnames[] = { | |
16840 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
16841 | }; | |
16842 | ||
fc46b7f3 RD |
16843 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
16844 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
0085ce49 | 16845 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 16846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'"); |
0085ce49 | 16847 | } |
fc46b7f3 RD |
16848 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); |
16849 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 ); | |
16850 | if (!SWIG_IsOK(res2)) { | |
16851 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'"); | |
0085ce49 | 16852 | } |
fc46b7f3 | 16853 | arg2 = reinterpret_cast< wxChar * >(argp2); |
0085ce49 | 16854 | if (obj2) { |
fc46b7f3 RD |
16855 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 ); |
16856 | if (!SWIG_IsOK(res3)) { | |
16857 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'"); | |
b6294124 | 16858 | } |
fc46b7f3 | 16859 | arg3 = reinterpret_cast< wxChar * >(argp3); |
0085ce49 RD |
16860 | } |
16861 | { | |
16862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 16863 | result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3); |
0085ce49 RD |
16864 | wxPyEndAllowThreads(__tstate); |
16865 | if (PyErr_Occurred()) SWIG_fail; | |
16866 | } | |
fc46b7f3 | 16867 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 ); |
0085ce49 RD |
16868 | return resultobj; |
16869 | fail: | |
0085ce49 | 16870 | return NULL; |
b6294124 RD |
16871 | } |
16872 | ||
16873 | ||
fc46b7f3 | 16874 | SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 16875 | PyObject *resultobj = 0; |
fc46b7f3 RD |
16876 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
16877 | wxChar *arg2 = (wxChar *) 0 ; | |
16878 | wxChar *arg3 = (wxChar *) 0 ; | |
16879 | size_t arg4 ; | |
16880 | wxChar *arg5 = (wxChar *) NULL ; | |
16881 | wxChar *result = 0 ; | |
0085ce49 RD |
16882 | void *argp1 = 0 ; |
16883 | int res1 = 0 ; | |
fc46b7f3 RD |
16884 | void *argp2 = 0 ; |
16885 | int res2 = 0 ; | |
16886 | void *argp3 = 0 ; | |
16887 | int res3 = 0 ; | |
16888 | size_t val4 ; | |
16889 | int ecode4 = 0 ; | |
16890 | void *argp5 = 0 ; | |
16891 | int res5 = 0 ; | |
16892 | PyObject * obj0 = 0 ; | |
16893 | PyObject * obj1 = 0 ; | |
16894 | PyObject * obj2 = 0 ; | |
16895 | PyObject * obj3 = 0 ; | |
16896 | PyObject * obj4 = 0 ; | |
16897 | char * kwnames[] = { | |
16898 | (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL | |
16899 | }; | |
0085ce49 | 16900 | |
fc46b7f3 RD |
16901 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
16902 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
0085ce49 | 16903 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 RD |
16904 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'"); |
16905 | } | |
16906 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); | |
16907 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 ); | |
16908 | if (!SWIG_IsOK(res2)) { | |
16909 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'"); | |
16910 | } | |
16911 | arg2 = reinterpret_cast< wxChar * >(argp2); | |
16912 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 ); | |
16913 | if (!SWIG_IsOK(res3)) { | |
16914 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'"); | |
16915 | } | |
16916 | arg3 = reinterpret_cast< wxChar * >(argp3); | |
16917 | ecode4 = SWIG_AsVal_size_t(obj3, &val4); | |
16918 | if (!SWIG_IsOK(ecode4)) { | |
16919 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'"); | |
16920 | } | |
16921 | arg4 = static_cast< size_t >(val4); | |
16922 | if (obj4) { | |
16923 | res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 ); | |
16924 | if (!SWIG_IsOK(res5)) { | |
16925 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'"); | |
16926 | } | |
16927 | arg5 = reinterpret_cast< wxChar * >(argp5); | |
0085ce49 | 16928 | } |
0085ce49 RD |
16929 | { |
16930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 16931 | result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5); |
0085ce49 RD |
16932 | wxPyEndAllowThreads(__tstate); |
16933 | if (PyErr_Occurred()) SWIG_fail; | |
16934 | } | |
fc46b7f3 | 16935 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 ); |
0085ce49 RD |
16936 | return resultobj; |
16937 | fail: | |
16938 | return NULL; | |
d14a1e28 RD |
16939 | } |
16940 | ||
16941 | ||
fc46b7f3 | 16942 | SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
16943 | PyObject *obj; |
16944 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
fc46b7f3 | 16945 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj)); |
0085ce49 | 16946 | return SWIG_Py_Void(); |
d14a1e28 RD |
16947 | } |
16948 | ||
fc46b7f3 | 16949 | SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
16950 | return SWIG_Python_InitShadowInstance(args); |
16951 | } | |
d14a1e28 | 16952 | |
0085ce49 RD |
16953 | SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16954 | PyObject *resultobj = 0; | |
16955 | wxLocale *result = 0 ; | |
16956 | ||
16957 | if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail; | |
16958 | { | |
16959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16960 | result = (wxLocale *)wxGetLocale(); | |
16961 | wxPyEndAllowThreads(__tstate); | |
16962 | if (PyErr_Occurred()) SWIG_fail; | |
16963 | } | |
16964 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16965 | return resultobj; | |
16966 | fail: | |
16967 | return NULL; | |
d14a1e28 RD |
16968 | } |
16969 | ||
16970 | ||
0085ce49 RD |
16971 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
16972 | PyObject *resultobj = 0; | |
16973 | wxString *arg1 = 0 ; | |
16974 | wxString result; | |
16975 | bool temp1 = false ; | |
16976 | ||
16977 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
16978 | { | |
16979 | arg1 = wxString_in_helper(swig_obj[0]); | |
16980 | if (arg1 == NULL) SWIG_fail; | |
16981 | temp1 = true; | |
16982 | } | |
16983 | { | |
16984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16985 | result = wxGetTranslation((wxString const &)*arg1); | |
16986 | wxPyEndAllowThreads(__tstate); | |
16987 | if (PyErr_Occurred()) SWIG_fail; | |
16988 | } | |
16989 | { | |
093d3ff1 | 16990 | #if wxUSE_UNICODE |
0085ce49 | 16991 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 16992 | #else |
0085ce49 | 16993 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 16994 | #endif |
0085ce49 RD |
16995 | } |
16996 | { | |
16997 | if (temp1) | |
16998 | delete arg1; | |
16999 | } | |
17000 | return resultobj; | |
17001 | fail: | |
17002 | { | |
17003 | if (temp1) | |
17004 | delete arg1; | |
17005 | } | |
17006 | return NULL; | |
b6294124 RD |
17007 | } |
17008 | ||
17009 | ||
0085ce49 | 17010 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
fc46b7f3 RD |
17011 | PyObject *resultobj = 0; |
17012 | wxString *arg1 = 0 ; | |
17013 | wxString *arg2 = 0 ; | |
17014 | wxString result; | |
17015 | bool temp1 = false ; | |
17016 | bool temp2 = false ; | |
17017 | ||
17018 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
17019 | { | |
17020 | arg1 = wxString_in_helper(swig_obj[0]); | |
17021 | if (arg1 == NULL) SWIG_fail; | |
17022 | temp1 = true; | |
17023 | } | |
17024 | { | |
17025 | arg2 = wxString_in_helper(swig_obj[1]); | |
17026 | if (arg2 == NULL) SWIG_fail; | |
17027 | temp2 = true; | |
17028 | } | |
17029 | { | |
17030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17031 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2); | |
17032 | wxPyEndAllowThreads(__tstate); | |
17033 | if (PyErr_Occurred()) SWIG_fail; | |
17034 | } | |
17035 | { | |
17036 | #if wxUSE_UNICODE | |
17037 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17038 | #else | |
17039 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17040 | #endif | |
17041 | } | |
17042 | { | |
17043 | if (temp1) | |
17044 | delete arg1; | |
17045 | } | |
17046 | { | |
17047 | if (temp2) | |
17048 | delete arg2; | |
17049 | } | |
17050 | return resultobj; | |
17051 | fail: | |
17052 | { | |
17053 | if (temp1) | |
17054 | delete arg1; | |
17055 | } | |
17056 | { | |
17057 | if (temp2) | |
17058 | delete arg2; | |
17059 | } | |
17060 | return NULL; | |
17061 | } | |
17062 | ||
17063 | ||
17064 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
0085ce49 RD |
17065 | PyObject *resultobj = 0; |
17066 | wxString *arg1 = 0 ; | |
17067 | wxString *arg2 = 0 ; | |
17068 | size_t arg3 ; | |
17069 | wxString result; | |
17070 | bool temp1 = false ; | |
17071 | bool temp2 = false ; | |
17072 | size_t val3 ; | |
17073 | int ecode3 = 0 ; | |
17074 | ||
17075 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
17076 | { | |
17077 | arg1 = wxString_in_helper(swig_obj[0]); | |
17078 | if (arg1 == NULL) SWIG_fail; | |
17079 | temp1 = true; | |
17080 | } | |
17081 | { | |
17082 | arg2 = wxString_in_helper(swig_obj[1]); | |
17083 | if (arg2 == NULL) SWIG_fail; | |
17084 | temp2 = true; | |
17085 | } | |
17086 | ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); | |
17087 | if (!SWIG_IsOK(ecode3)) { | |
17088 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'"); | |
17089 | } | |
17090 | arg3 = static_cast< size_t >(val3); | |
17091 | { | |
17092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17093 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
17094 | wxPyEndAllowThreads(__tstate); | |
17095 | if (PyErr_Occurred()) SWIG_fail; | |
17096 | } | |
17097 | { | |
17098 | #if wxUSE_UNICODE | |
17099 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17100 | #else | |
17101 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17102 | #endif | |
17103 | } | |
17104 | { | |
17105 | if (temp1) | |
17106 | delete arg1; | |
17107 | } | |
17108 | { | |
17109 | if (temp2) | |
17110 | delete arg2; | |
17111 | } | |
17112 | return resultobj; | |
17113 | fail: | |
17114 | { | |
17115 | if (temp1) | |
17116 | delete arg1; | |
17117 | } | |
17118 | { | |
17119 | if (temp2) | |
17120 | delete arg2; | |
17121 | } | |
17122 | return NULL; | |
d14a1e28 RD |
17123 | } |
17124 | ||
17125 | ||
fc46b7f3 RD |
17126 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
17127 | PyObject *resultobj = 0; | |
17128 | wxString *arg1 = 0 ; | |
17129 | wxString *arg2 = 0 ; | |
17130 | size_t arg3 ; | |
17131 | wxString *arg4 = 0 ; | |
17132 | wxString result; | |
17133 | bool temp1 = false ; | |
17134 | bool temp2 = false ; | |
17135 | size_t val3 ; | |
17136 | int ecode3 = 0 ; | |
17137 | bool temp4 = false ; | |
17138 | ||
17139 | if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; | |
17140 | { | |
17141 | arg1 = wxString_in_helper(swig_obj[0]); | |
17142 | if (arg1 == NULL) SWIG_fail; | |
17143 | temp1 = true; | |
17144 | } | |
17145 | { | |
17146 | arg2 = wxString_in_helper(swig_obj[1]); | |
17147 | if (arg2 == NULL) SWIG_fail; | |
17148 | temp2 = true; | |
17149 | } | |
17150 | ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); | |
17151 | if (!SWIG_IsOK(ecode3)) { | |
17152 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'"); | |
17153 | } | |
17154 | arg3 = static_cast< size_t >(val3); | |
17155 | { | |
17156 | arg4 = wxString_in_helper(swig_obj[3]); | |
17157 | if (arg4 == NULL) SWIG_fail; | |
17158 | temp4 = true; | |
17159 | } | |
17160 | { | |
17161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17162 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4); | |
17163 | wxPyEndAllowThreads(__tstate); | |
17164 | if (PyErr_Occurred()) SWIG_fail; | |
17165 | } | |
17166 | { | |
17167 | #if wxUSE_UNICODE | |
17168 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17169 | #else | |
17170 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17171 | #endif | |
17172 | } | |
17173 | { | |
17174 | if (temp1) | |
17175 | delete arg1; | |
17176 | } | |
17177 | { | |
17178 | if (temp2) | |
17179 | delete arg2; | |
17180 | } | |
17181 | { | |
17182 | if (temp4) | |
17183 | delete arg4; | |
17184 | } | |
17185 | return resultobj; | |
17186 | fail: | |
17187 | { | |
17188 | if (temp1) | |
17189 | delete arg1; | |
17190 | } | |
17191 | { | |
17192 | if (temp2) | |
17193 | delete arg2; | |
17194 | } | |
17195 | { | |
17196 | if (temp4) | |
17197 | delete arg4; | |
17198 | } | |
17199 | return NULL; | |
17200 | } | |
17201 | ||
17202 | ||
0085ce49 RD |
17203 | SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { |
17204 | int argc; | |
fc46b7f3 | 17205 | PyObject *argv[5]; |
0085ce49 | 17206 | |
fc46b7f3 | 17207 | if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail; |
0085ce49 RD |
17208 | --argc; |
17209 | if (argc == 1) { | |
17210 | return _wrap_GetTranslation__SWIG_0(self, argc, argv); | |
17211 | } | |
fc46b7f3 | 17212 | if (argc == 2) { |
0085ce49 RD |
17213 | return _wrap_GetTranslation__SWIG_1(self, argc, argv); |
17214 | } | |
fc46b7f3 RD |
17215 | if (argc == 3) { |
17216 | return _wrap_GetTranslation__SWIG_2(self, argc, argv); | |
17217 | } | |
17218 | if (argc == 4) { | |
17219 | return _wrap_GetTranslation__SWIG_3(self, argc, argv); | |
17220 | } | |
0085ce49 RD |
17221 | |
17222 | fail: | |
17223 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'"); | |
17224 | return NULL; | |
d14a1e28 RD |
17225 | } |
17226 | ||
17227 | ||
0085ce49 RD |
17228 | SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17229 | PyObject *resultobj = 0; | |
17230 | wxEncodingConverter *result = 0 ; | |
17231 | ||
17232 | if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail; | |
17233 | { | |
17234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17235 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
17236 | wxPyEndAllowThreads(__tstate); | |
17237 | if (PyErr_Occurred()) SWIG_fail; | |
17238 | } | |
17239 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 ); | |
17240 | return resultobj; | |
17241 | fail: | |
17242 | return NULL; | |
d14a1e28 RD |
17243 | } |
17244 | ||
17245 | ||
0085ce49 RD |
17246 | SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17247 | PyObject *resultobj = 0; | |
17248 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17249 | void *argp1 = 0 ; | |
17250 | int res1 = 0 ; | |
17251 | PyObject *swig_obj[1] ; | |
17252 | ||
17253 | if (!args) SWIG_fail; | |
17254 | swig_obj[0] = args; | |
17255 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 ); | |
17256 | if (!SWIG_IsOK(res1)) { | |
17257 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
17258 | } | |
17259 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
17260 | { | |
17261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17262 | delete arg1; | |
d14a1e28 | 17263 | |
0085ce49 RD |
17264 | wxPyEndAllowThreads(__tstate); |
17265 | if (PyErr_Occurred()) SWIG_fail; | |
17266 | } | |
17267 | resultobj = SWIG_Py_Void(); | |
17268 | return resultobj; | |
17269 | fail: | |
17270 | return NULL; | |
17271 | } | |
17272 | ||
17273 | ||
17274 | SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17275 | PyObject *resultobj = 0; | |
17276 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17277 | wxFontEncoding arg2 ; | |
17278 | wxFontEncoding arg3 ; | |
17279 | int arg4 = (int) wxCONVERT_STRICT ; | |
17280 | bool result; | |
17281 | void *argp1 = 0 ; | |
17282 | int res1 = 0 ; | |
17283 | int val2 ; | |
17284 | int ecode2 = 0 ; | |
17285 | int val3 ; | |
17286 | int ecode3 = 0 ; | |
17287 | int val4 ; | |
17288 | int ecode4 = 0 ; | |
17289 | PyObject * obj0 = 0 ; | |
17290 | PyObject * obj1 = 0 ; | |
17291 | PyObject * obj2 = 0 ; | |
17292 | PyObject * obj3 = 0 ; | |
17293 | char * kwnames[] = { | |
17294 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
17295 | }; | |
17296 | ||
17297 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
17298 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
17299 | if (!SWIG_IsOK(res1)) { | |
17300 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
17301 | } | |
17302 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
17303 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17304 | if (!SWIG_IsOK(ecode2)) { | |
17305 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
17306 | } | |
17307 | arg2 = static_cast< wxFontEncoding >(val2); | |
17308 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17309 | if (!SWIG_IsOK(ecode3)) { | |
17310 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'"); | |
17311 | } | |
17312 | arg3 = static_cast< wxFontEncoding >(val3); | |
17313 | if (obj3) { | |
17314 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17315 | if (!SWIG_IsOK(ecode4)) { | |
17316 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'"); | |
17317 | } | |
17318 | arg4 = static_cast< int >(val4); | |
17319 | } | |
17320 | { | |
17321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17322 | result = (bool)(arg1)->Init(arg2,arg3,arg4); | |
17323 | wxPyEndAllowThreads(__tstate); | |
17324 | if (PyErr_Occurred()) SWIG_fail; | |
17325 | } | |
17326 | { | |
17327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17328 | } | |
17329 | return resultobj; | |
17330 | fail: | |
17331 | return NULL; | |
17332 | } | |
17333 | ||
17334 | ||
17335 | SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17336 | PyObject *resultobj = 0; | |
17337 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17338 | wxString *arg2 = 0 ; | |
17339 | wxString result; | |
17340 | void *argp1 = 0 ; | |
17341 | int res1 = 0 ; | |
17342 | bool temp2 = false ; | |
17343 | PyObject * obj0 = 0 ; | |
17344 | PyObject * obj1 = 0 ; | |
17345 | char * kwnames[] = { | |
17346 | (char *) "self",(char *) "input", NULL | |
17347 | }; | |
17348 | ||
17349 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail; | |
17350 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
17351 | if (!SWIG_IsOK(res1)) { | |
17352 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
17353 | } | |
17354 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
17355 | { | |
17356 | arg2 = wxString_in_helper(obj1); | |
17357 | if (arg2 == NULL) SWIG_fail; | |
17358 | temp2 = true; | |
17359 | } | |
17360 | { | |
17361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17362 | result = (arg1)->Convert((wxString const &)*arg2); | |
17363 | wxPyEndAllowThreads(__tstate); | |
17364 | if (PyErr_Occurred()) SWIG_fail; | |
17365 | } | |
17366 | { | |
17367 | #if wxUSE_UNICODE | |
17368 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17369 | #else | |
17370 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17371 | #endif | |
17372 | } | |
17373 | { | |
17374 | if (temp2) | |
17375 | delete arg2; | |
17376 | } | |
17377 | return resultobj; | |
17378 | fail: | |
17379 | { | |
17380 | if (temp2) | |
17381 | delete arg2; | |
17382 | } | |
17383 | return NULL; | |
17384 | } | |
17385 | ||
17386 | ||
17387 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17388 | PyObject *resultobj = 0; | |
17389 | wxFontEncoding arg1 ; | |
17390 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
17391 | wxFontEncodingArray result; | |
17392 | int val1 ; | |
17393 | int ecode1 = 0 ; | |
17394 | int val2 ; | |
17395 | int ecode2 = 0 ; | |
17396 | PyObject * obj0 = 0 ; | |
17397 | PyObject * obj1 = 0 ; | |
17398 | char * kwnames[] = { | |
17399 | (char *) "enc",(char *) "platform", NULL | |
17400 | }; | |
17401 | ||
17402 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail; | |
17403 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17404 | if (!SWIG_IsOK(ecode1)) { | |
17405 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
17406 | } | |
17407 | arg1 = static_cast< wxFontEncoding >(val1); | |
17408 | if (obj1) { | |
17409 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17410 | if (!SWIG_IsOK(ecode2)) { | |
17411 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'"); | |
17412 | } | |
17413 | arg2 = static_cast< int >(val2); | |
17414 | } | |
17415 | { | |
17416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17417 | result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2); | |
17418 | wxPyEndAllowThreads(__tstate); | |
17419 | if (PyErr_Occurred()) SWIG_fail; | |
17420 | } | |
17421 | { | |
17422 | resultobj = PyList_New(0); | |
17423 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
17424 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
17425 | PyList_Append(resultobj, number); | |
17426 | Py_DECREF(number); | |
093d3ff1 | 17427 | } |
0085ce49 RD |
17428 | } |
17429 | return resultobj; | |
17430 | fail: | |
17431 | return NULL; | |
d14a1e28 RD |
17432 | } |
17433 | ||
17434 | ||
0085ce49 RD |
17435 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17436 | PyObject *resultobj = 0; | |
17437 | wxFontEncoding arg1 ; | |
17438 | wxFontEncodingArray result; | |
17439 | int val1 ; | |
17440 | int ecode1 = 0 ; | |
17441 | PyObject * obj0 = 0 ; | |
17442 | char * kwnames[] = { | |
17443 | (char *) "enc", NULL | |
17444 | }; | |
17445 | ||
17446 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail; | |
17447 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17448 | if (!SWIG_IsOK(ecode1)) { | |
17449 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
17450 | } | |
17451 | arg1 = static_cast< wxFontEncoding >(val1); | |
17452 | { | |
17453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17454 | result = wxEncodingConverter::GetAllEquivalents(arg1); | |
17455 | wxPyEndAllowThreads(__tstate); | |
17456 | if (PyErr_Occurred()) SWIG_fail; | |
17457 | } | |
17458 | { | |
17459 | resultobj = PyList_New(0); | |
17460 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
17461 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
17462 | PyList_Append(resultobj, number); | |
17463 | Py_DECREF(number); | |
093d3ff1 | 17464 | } |
0085ce49 RD |
17465 | } |
17466 | return resultobj; | |
17467 | fail: | |
17468 | return NULL; | |
17469 | } | |
17470 | ||
17471 | ||
17472 | SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17473 | PyObject *resultobj = 0; | |
17474 | wxFontEncoding arg1 ; | |
17475 | wxFontEncoding arg2 ; | |
17476 | bool result; | |
17477 | int val1 ; | |
17478 | int ecode1 = 0 ; | |
17479 | int val2 ; | |
17480 | int ecode2 = 0 ; | |
17481 | PyObject * obj0 = 0 ; | |
17482 | PyObject * obj1 = 0 ; | |
17483 | char * kwnames[] = { | |
17484 | (char *) "encIn",(char *) "encOut", NULL | |
17485 | }; | |
17486 | ||
17487 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail; | |
17488 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17489 | if (!SWIG_IsOK(ecode1)) { | |
17490 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
17491 | } | |
17492 | arg1 = static_cast< wxFontEncoding >(val1); | |
17493 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17494 | if (!SWIG_IsOK(ecode2)) { | |
17495 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
17496 | } | |
17497 | arg2 = static_cast< wxFontEncoding >(val2); | |
17498 | { | |
17499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17500 | result = (bool)wxEncodingConverter::CanConvert(arg1,arg2); | |
17501 | wxPyEndAllowThreads(__tstate); | |
17502 | if (PyErr_Occurred()) SWIG_fail; | |
17503 | } | |
17504 | { | |
17505 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17506 | } | |
17507 | return resultobj; | |
17508 | fail: | |
17509 | return NULL; | |
d14a1e28 RD |
17510 | } |
17511 | ||
17512 | ||
0085ce49 RD |
17513 | SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17514 | PyObject *obj; | |
17515 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17516 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj)); | |
17517 | return SWIG_Py_Void(); | |
d14a1e28 RD |
17518 | } |
17519 | ||
0085ce49 RD |
17520 | SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17521 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
17522 | } |
17523 | ||
0085ce49 RD |
17524 | SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17525 | PyObject *resultobj = 0; | |
17526 | wxDC *arg1 = (wxDC *) 0 ; | |
17527 | void *argp1 = 0 ; | |
17528 | int res1 = 0 ; | |
17529 | PyObject *swig_obj[1] ; | |
17530 | ||
17531 | if (!args) SWIG_fail; | |
17532 | swig_obj[0] = args; | |
17533 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 ); | |
17534 | if (!SWIG_IsOK(res1)) { | |
17535 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17536 | } | |
17537 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17538 | { | |
17539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17540 | delete arg1; | |
d14a1e28 | 17541 | |
0085ce49 RD |
17542 | wxPyEndAllowThreads(__tstate); |
17543 | if (PyErr_Occurred()) SWIG_fail; | |
17544 | } | |
17545 | resultobj = SWIG_Py_Void(); | |
17546 | return resultobj; | |
17547 | fail: | |
17548 | return NULL; | |
17549 | } | |
17550 | ||
17551 | ||
17552 | SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17553 | PyObject *resultobj = 0; | |
17554 | wxDC *arg1 = (wxDC *) 0 ; | |
17555 | int arg2 ; | |
17556 | int arg3 ; | |
17557 | wxColour *arg4 = 0 ; | |
17558 | int arg5 = (int) wxFLOOD_SURFACE ; | |
17559 | bool result; | |
17560 | void *argp1 = 0 ; | |
17561 | int res1 = 0 ; | |
17562 | int val2 ; | |
17563 | int ecode2 = 0 ; | |
17564 | int val3 ; | |
17565 | int ecode3 = 0 ; | |
17566 | wxColour temp4 ; | |
17567 | int val5 ; | |
17568 | int ecode5 = 0 ; | |
17569 | PyObject * obj0 = 0 ; | |
17570 | PyObject * obj1 = 0 ; | |
17571 | PyObject * obj2 = 0 ; | |
17572 | PyObject * obj3 = 0 ; | |
17573 | PyObject * obj4 = 0 ; | |
17574 | char * kwnames[] = { | |
17575 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
17576 | }; | |
17577 | ||
17578 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17579 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17580 | if (!SWIG_IsOK(res1)) { | |
17581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17582 | } | |
17583 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17584 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17585 | if (!SWIG_IsOK(ecode2)) { | |
17586 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
17587 | } | |
17588 | arg2 = static_cast< int >(val2); | |
17589 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17590 | if (!SWIG_IsOK(ecode3)) { | |
17591 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
17592 | } | |
17593 | arg3 = static_cast< int >(val3); | |
17594 | { | |
17595 | arg4 = &temp4; | |
17596 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17597 | } | |
17598 | if (obj4) { | |
17599 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17600 | if (!SWIG_IsOK(ecode5)) { | |
17601 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
17602 | } | |
17603 | arg5 = static_cast< int >(val5); | |
17604 | } | |
17605 | { | |
17606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17607 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
17608 | wxPyEndAllowThreads(__tstate); | |
17609 | if (PyErr_Occurred()) SWIG_fail; | |
17610 | } | |
17611 | { | |
17612 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17613 | } | |
17614 | return resultobj; | |
17615 | fail: | |
17616 | return NULL; | |
17617 | } | |
17618 | ||
17619 | ||
17620 | SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17621 | PyObject *resultobj = 0; | |
17622 | wxDC *arg1 = (wxDC *) 0 ; | |
17623 | wxPoint *arg2 = 0 ; | |
17624 | wxColour *arg3 = 0 ; | |
17625 | int arg4 = (int) wxFLOOD_SURFACE ; | |
17626 | bool result; | |
17627 | void *argp1 = 0 ; | |
17628 | int res1 = 0 ; | |
17629 | wxPoint temp2 ; | |
17630 | wxColour temp3 ; | |
17631 | int val4 ; | |
17632 | int ecode4 = 0 ; | |
17633 | PyObject * obj0 = 0 ; | |
17634 | PyObject * obj1 = 0 ; | |
17635 | PyObject * obj2 = 0 ; | |
17636 | PyObject * obj3 = 0 ; | |
17637 | char * kwnames[] = { | |
17638 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
17639 | }; | |
17640 | ||
17641 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
17642 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17643 | if (!SWIG_IsOK(res1)) { | |
17644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17645 | } | |
17646 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17647 | { | |
17648 | arg2 = &temp2; | |
17649 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17650 | } | |
17651 | { | |
17652 | arg3 = &temp3; | |
17653 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17654 | } | |
17655 | if (obj3) { | |
17656 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17657 | if (!SWIG_IsOK(ecode4)) { | |
17658 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
17659 | } | |
17660 | arg4 = static_cast< int >(val4); | |
17661 | } | |
17662 | { | |
17663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17664 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
17665 | wxPyEndAllowThreads(__tstate); | |
17666 | if (PyErr_Occurred()) SWIG_fail; | |
17667 | } | |
17668 | { | |
17669 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17670 | } | |
17671 | return resultobj; | |
17672 | fail: | |
17673 | return NULL; | |
17674 | } | |
17675 | ||
17676 | ||
17677 | SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17678 | PyObject *resultobj = 0; | |
17679 | wxDC *arg1 = (wxDC *) 0 ; | |
17680 | wxRect *arg2 = 0 ; | |
17681 | wxColour *arg3 = 0 ; | |
17682 | wxColour *arg4 = 0 ; | |
17683 | wxPoint *arg5 = 0 ; | |
17684 | void *argp1 = 0 ; | |
17685 | int res1 = 0 ; | |
17686 | wxRect temp2 ; | |
17687 | wxColour temp3 ; | |
17688 | wxColour temp4 ; | |
17689 | wxPoint temp5 ; | |
17690 | PyObject * obj0 = 0 ; | |
17691 | PyObject * obj1 = 0 ; | |
17692 | PyObject * obj2 = 0 ; | |
17693 | PyObject * obj3 = 0 ; | |
17694 | PyObject * obj4 = 0 ; | |
17695 | char * kwnames[] = { | |
17696 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL | |
17697 | }; | |
17698 | ||
17699 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17700 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17701 | if (!SWIG_IsOK(res1)) { | |
17702 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17703 | } | |
17704 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17705 | { | |
17706 | arg2 = &temp2; | |
17707 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
17708 | } | |
17709 | { | |
17710 | arg3 = &temp3; | |
17711 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17712 | } | |
17713 | { | |
17714 | arg4 = &temp4; | |
17715 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17716 | } | |
17717 | { | |
17718 | arg5 = &temp5; | |
17719 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
17720 | } | |
17721 | { | |
17722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17723 | (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5); | |
17724 | wxPyEndAllowThreads(__tstate); | |
17725 | if (PyErr_Occurred()) SWIG_fail; | |
17726 | } | |
17727 | resultobj = SWIG_Py_Void(); | |
17728 | return resultobj; | |
17729 | fail: | |
17730 | return NULL; | |
17731 | } | |
17732 | ||
17733 | ||
17734 | SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17735 | PyObject *resultobj = 0; | |
17736 | wxDC *arg1 = (wxDC *) 0 ; | |
17737 | wxRect *arg2 = 0 ; | |
17738 | wxColour *arg3 = 0 ; | |
17739 | wxColour *arg4 = 0 ; | |
17740 | wxDirection arg5 = (wxDirection) wxEAST ; | |
17741 | void *argp1 = 0 ; | |
17742 | int res1 = 0 ; | |
17743 | wxRect temp2 ; | |
17744 | wxColour temp3 ; | |
17745 | wxColour temp4 ; | |
17746 | int val5 ; | |
17747 | int ecode5 = 0 ; | |
17748 | PyObject * obj0 = 0 ; | |
17749 | PyObject * obj1 = 0 ; | |
17750 | PyObject * obj2 = 0 ; | |
17751 | PyObject * obj3 = 0 ; | |
17752 | PyObject * obj4 = 0 ; | |
17753 | char * kwnames[] = { | |
17754 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL | |
17755 | }; | |
17756 | ||
17757 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17758 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17759 | if (!SWIG_IsOK(res1)) { | |
17760 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17761 | } | |
17762 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17763 | { | |
17764 | arg2 = &temp2; | |
17765 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
17766 | } | |
17767 | { | |
17768 | arg3 = &temp3; | |
17769 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17770 | } | |
17771 | { | |
17772 | arg4 = &temp4; | |
17773 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17774 | } | |
17775 | if (obj4) { | |
17776 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17777 | if (!SWIG_IsOK(ecode5)) { | |
17778 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'"); | |
17779 | } | |
17780 | arg5 = static_cast< wxDirection >(val5); | |
17781 | } | |
17782 | { | |
17783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17784 | (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5); | |
17785 | wxPyEndAllowThreads(__tstate); | |
17786 | if (PyErr_Occurred()) SWIG_fail; | |
17787 | } | |
17788 | resultobj = SWIG_Py_Void(); | |
17789 | return resultobj; | |
17790 | fail: | |
17791 | return NULL; | |
17792 | } | |
17793 | ||
17794 | ||
17795 | SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17796 | PyObject *resultobj = 0; | |
17797 | wxDC *arg1 = (wxDC *) 0 ; | |
17798 | int arg2 ; | |
17799 | int arg3 ; | |
17800 | wxColour result; | |
17801 | void *argp1 = 0 ; | |
17802 | int res1 = 0 ; | |
17803 | int val2 ; | |
17804 | int ecode2 = 0 ; | |
17805 | int val3 ; | |
17806 | int ecode3 = 0 ; | |
17807 | PyObject * obj0 = 0 ; | |
17808 | PyObject * obj1 = 0 ; | |
17809 | PyObject * obj2 = 0 ; | |
17810 | char * kwnames[] = { | |
17811 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17812 | }; | |
17813 | ||
17814 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17815 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17816 | if (!SWIG_IsOK(res1)) { | |
17817 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17818 | } | |
17819 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17820 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17821 | if (!SWIG_IsOK(ecode2)) { | |
17822 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'"); | |
17823 | } | |
17824 | arg2 = static_cast< int >(val2); | |
17825 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17826 | if (!SWIG_IsOK(ecode3)) { | |
17827 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'"); | |
17828 | } | |
17829 | arg3 = static_cast< int >(val3); | |
17830 | { | |
17831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17832 | result = wxDC_GetPixel(arg1,arg2,arg3); | |
17833 | wxPyEndAllowThreads(__tstate); | |
17834 | if (PyErr_Occurred()) SWIG_fail; | |
17835 | } | |
17836 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
17837 | return resultobj; | |
17838 | fail: | |
17839 | return NULL; | |
17840 | } | |
17841 | ||
17842 | ||
17843 | SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17844 | PyObject *resultobj = 0; | |
17845 | wxDC *arg1 = (wxDC *) 0 ; | |
17846 | wxPoint *arg2 = 0 ; | |
17847 | wxColour result; | |
17848 | void *argp1 = 0 ; | |
17849 | int res1 = 0 ; | |
17850 | wxPoint temp2 ; | |
17851 | PyObject * obj0 = 0 ; | |
17852 | PyObject * obj1 = 0 ; | |
17853 | char * kwnames[] = { | |
17854 | (char *) "self",(char *) "pt", NULL | |
17855 | }; | |
17856 | ||
17857 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
17858 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17859 | if (!SWIG_IsOK(res1)) { | |
17860 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17861 | } | |
17862 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17863 | { | |
17864 | arg2 = &temp2; | |
17865 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17866 | } | |
17867 | { | |
17868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17869 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); | |
17870 | wxPyEndAllowThreads(__tstate); | |
17871 | if (PyErr_Occurred()) SWIG_fail; | |
17872 | } | |
17873 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
17874 | return resultobj; | |
17875 | fail: | |
17876 | return NULL; | |
17877 | } | |
17878 | ||
17879 | ||
17880 | SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17881 | PyObject *resultobj = 0; | |
17882 | wxDC *arg1 = (wxDC *) 0 ; | |
17883 | int arg2 ; | |
17884 | int arg3 ; | |
17885 | int arg4 ; | |
17886 | int arg5 ; | |
17887 | void *argp1 = 0 ; | |
17888 | int res1 = 0 ; | |
17889 | int val2 ; | |
17890 | int ecode2 = 0 ; | |
17891 | int val3 ; | |
17892 | int ecode3 = 0 ; | |
17893 | int val4 ; | |
17894 | int ecode4 = 0 ; | |
17895 | int val5 ; | |
17896 | int ecode5 = 0 ; | |
17897 | PyObject * obj0 = 0 ; | |
17898 | PyObject * obj1 = 0 ; | |
17899 | PyObject * obj2 = 0 ; | |
17900 | PyObject * obj3 = 0 ; | |
17901 | PyObject * obj4 = 0 ; | |
17902 | char * kwnames[] = { | |
17903 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
17904 | }; | |
17905 | ||
17906 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17907 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17908 | if (!SWIG_IsOK(res1)) { | |
17909 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17910 | } | |
17911 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17912 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17913 | if (!SWIG_IsOK(ecode2)) { | |
17914 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
17915 | } | |
17916 | arg2 = static_cast< int >(val2); | |
17917 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17918 | if (!SWIG_IsOK(ecode3)) { | |
17919 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
17920 | } | |
17921 | arg3 = static_cast< int >(val3); | |
17922 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17923 | if (!SWIG_IsOK(ecode4)) { | |
17924 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
17925 | } | |
17926 | arg4 = static_cast< int >(val4); | |
17927 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17928 | if (!SWIG_IsOK(ecode5)) { | |
17929 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
17930 | } | |
17931 | arg5 = static_cast< int >(val5); | |
17932 | { | |
17933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17934 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
17935 | wxPyEndAllowThreads(__tstate); | |
17936 | if (PyErr_Occurred()) SWIG_fail; | |
17937 | } | |
17938 | resultobj = SWIG_Py_Void(); | |
17939 | return resultobj; | |
17940 | fail: | |
17941 | return NULL; | |
17942 | } | |
17943 | ||
17944 | ||
17945 | SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17946 | PyObject *resultobj = 0; | |
17947 | wxDC *arg1 = (wxDC *) 0 ; | |
17948 | wxPoint *arg2 = 0 ; | |
17949 | wxPoint *arg3 = 0 ; | |
17950 | void *argp1 = 0 ; | |
17951 | int res1 = 0 ; | |
17952 | wxPoint temp2 ; | |
17953 | wxPoint temp3 ; | |
17954 | PyObject * obj0 = 0 ; | |
17955 | PyObject * obj1 = 0 ; | |
17956 | PyObject * obj2 = 0 ; | |
17957 | char * kwnames[] = { | |
17958 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
17959 | }; | |
17960 | ||
17961 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17962 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17963 | if (!SWIG_IsOK(res1)) { | |
17964 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17965 | } | |
17966 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17967 | { | |
17968 | arg2 = &temp2; | |
17969 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17970 | } | |
17971 | { | |
17972 | arg3 = &temp3; | |
17973 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17974 | } | |
17975 | { | |
17976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17977 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
17978 | wxPyEndAllowThreads(__tstate); | |
17979 | if (PyErr_Occurred()) SWIG_fail; | |
17980 | } | |
17981 | resultobj = SWIG_Py_Void(); | |
17982 | return resultobj; | |
17983 | fail: | |
17984 | return NULL; | |
17985 | } | |
17986 | ||
17987 | ||
17988 | SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17989 | PyObject *resultobj = 0; | |
17990 | wxDC *arg1 = (wxDC *) 0 ; | |
17991 | int arg2 ; | |
17992 | int arg3 ; | |
17993 | void *argp1 = 0 ; | |
17994 | int res1 = 0 ; | |
17995 | int val2 ; | |
17996 | int ecode2 = 0 ; | |
17997 | int val3 ; | |
17998 | int ecode3 = 0 ; | |
17999 | PyObject * obj0 = 0 ; | |
18000 | PyObject * obj1 = 0 ; | |
18001 | PyObject * obj2 = 0 ; | |
18002 | char * kwnames[] = { | |
18003 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18004 | }; | |
18005 | ||
18006 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18007 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18008 | if (!SWIG_IsOK(res1)) { | |
18009 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18010 | } | |
18011 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18012 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18013 | if (!SWIG_IsOK(ecode2)) { | |
18014 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
18015 | } | |
18016 | arg2 = static_cast< int >(val2); | |
18017 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18018 | if (!SWIG_IsOK(ecode3)) { | |
18019 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
18020 | } | |
18021 | arg3 = static_cast< int >(val3); | |
18022 | { | |
18023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18024 | (arg1)->CrossHair(arg2,arg3); | |
18025 | wxPyEndAllowThreads(__tstate); | |
18026 | if (PyErr_Occurred()) SWIG_fail; | |
18027 | } | |
18028 | resultobj = SWIG_Py_Void(); | |
18029 | return resultobj; | |
18030 | fail: | |
18031 | return NULL; | |
18032 | } | |
18033 | ||
18034 | ||
18035 | SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18036 | PyObject *resultobj = 0; | |
18037 | wxDC *arg1 = (wxDC *) 0 ; | |
18038 | wxPoint *arg2 = 0 ; | |
18039 | void *argp1 = 0 ; | |
18040 | int res1 = 0 ; | |
18041 | wxPoint temp2 ; | |
18042 | PyObject * obj0 = 0 ; | |
18043 | PyObject * obj1 = 0 ; | |
18044 | char * kwnames[] = { | |
18045 | (char *) "self",(char *) "pt", NULL | |
18046 | }; | |
18047 | ||
18048 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
18049 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18050 | if (!SWIG_IsOK(res1)) { | |
18051 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18052 | } | |
18053 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18054 | { | |
18055 | arg2 = &temp2; | |
18056 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18057 | } | |
18058 | { | |
18059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18060 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
18061 | wxPyEndAllowThreads(__tstate); | |
18062 | if (PyErr_Occurred()) SWIG_fail; | |
18063 | } | |
18064 | resultobj = SWIG_Py_Void(); | |
18065 | return resultobj; | |
18066 | fail: | |
18067 | return NULL; | |
18068 | } | |
18069 | ||
18070 | ||
18071 | SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18072 | PyObject *resultobj = 0; | |
18073 | wxDC *arg1 = (wxDC *) 0 ; | |
18074 | int arg2 ; | |
18075 | int arg3 ; | |
18076 | int arg4 ; | |
18077 | int arg5 ; | |
18078 | int arg6 ; | |
18079 | int arg7 ; | |
18080 | void *argp1 = 0 ; | |
18081 | int res1 = 0 ; | |
18082 | int val2 ; | |
18083 | int ecode2 = 0 ; | |
18084 | int val3 ; | |
18085 | int ecode3 = 0 ; | |
18086 | int val4 ; | |
18087 | int ecode4 = 0 ; | |
18088 | int val5 ; | |
18089 | int ecode5 = 0 ; | |
18090 | int val6 ; | |
18091 | int ecode6 = 0 ; | |
18092 | int val7 ; | |
18093 | int ecode7 = 0 ; | |
18094 | PyObject * obj0 = 0 ; | |
18095 | PyObject * obj1 = 0 ; | |
18096 | PyObject * obj2 = 0 ; | |
18097 | PyObject * obj3 = 0 ; | |
18098 | PyObject * obj4 = 0 ; | |
18099 | PyObject * obj5 = 0 ; | |
18100 | PyObject * obj6 = 0 ; | |
18101 | char * kwnames[] = { | |
18102 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
18103 | }; | |
18104 | ||
18105 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
18106 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18107 | if (!SWIG_IsOK(res1)) { | |
18108 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18109 | } | |
18110 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18111 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18112 | if (!SWIG_IsOK(ecode2)) { | |
18113 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
18114 | } | |
18115 | arg2 = static_cast< int >(val2); | |
18116 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18117 | if (!SWIG_IsOK(ecode3)) { | |
18118 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
18119 | } | |
18120 | arg3 = static_cast< int >(val3); | |
18121 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18122 | if (!SWIG_IsOK(ecode4)) { | |
18123 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
18124 | } | |
18125 | arg4 = static_cast< int >(val4); | |
18126 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18127 | if (!SWIG_IsOK(ecode5)) { | |
18128 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
18129 | } | |
18130 | arg5 = static_cast< int >(val5); | |
18131 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
18132 | if (!SWIG_IsOK(ecode6)) { | |
18133 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
18134 | } | |
18135 | arg6 = static_cast< int >(val6); | |
18136 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
18137 | if (!SWIG_IsOK(ecode7)) { | |
18138 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
18139 | } | |
18140 | arg7 = static_cast< int >(val7); | |
18141 | { | |
18142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18143 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
18144 | wxPyEndAllowThreads(__tstate); | |
18145 | if (PyErr_Occurred()) SWIG_fail; | |
18146 | } | |
18147 | resultobj = SWIG_Py_Void(); | |
18148 | return resultobj; | |
18149 | fail: | |
18150 | return NULL; | |
18151 | } | |
18152 | ||
18153 | ||
18154 | SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18155 | PyObject *resultobj = 0; | |
18156 | wxDC *arg1 = (wxDC *) 0 ; | |
18157 | wxPoint *arg2 = 0 ; | |
18158 | wxPoint *arg3 = 0 ; | |
18159 | wxPoint *arg4 = 0 ; | |
18160 | void *argp1 = 0 ; | |
18161 | int res1 = 0 ; | |
18162 | wxPoint temp2 ; | |
18163 | wxPoint temp3 ; | |
18164 | wxPoint temp4 ; | |
18165 | PyObject * obj0 = 0 ; | |
18166 | PyObject * obj1 = 0 ; | |
18167 | PyObject * obj2 = 0 ; | |
18168 | PyObject * obj3 = 0 ; | |
18169 | char * kwnames[] = { | |
18170 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
18171 | }; | |
18172 | ||
18173 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18174 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18175 | if (!SWIG_IsOK(res1)) { | |
18176 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18177 | } | |
18178 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18179 | { | |
18180 | arg2 = &temp2; | |
18181 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18182 | } | |
18183 | { | |
18184 | arg3 = &temp3; | |
18185 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18186 | } | |
18187 | { | |
18188 | arg4 = &temp4; | |
18189 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18190 | } | |
18191 | { | |
18192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18193 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
18194 | wxPyEndAllowThreads(__tstate); | |
18195 | if (PyErr_Occurred()) SWIG_fail; | |
18196 | } | |
18197 | resultobj = SWIG_Py_Void(); | |
18198 | return resultobj; | |
18199 | fail: | |
18200 | return NULL; | |
18201 | } | |
18202 | ||
18203 | ||
18204 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18205 | PyObject *resultobj = 0; | |
18206 | wxDC *arg1 = (wxDC *) 0 ; | |
18207 | int arg2 ; | |
18208 | int arg3 ; | |
18209 | int arg4 ; | |
18210 | int arg5 ; | |
18211 | void *argp1 = 0 ; | |
18212 | int res1 = 0 ; | |
18213 | int val2 ; | |
18214 | int ecode2 = 0 ; | |
18215 | int val3 ; | |
18216 | int ecode3 = 0 ; | |
18217 | int val4 ; | |
18218 | int ecode4 = 0 ; | |
18219 | int val5 ; | |
18220 | int ecode5 = 0 ; | |
18221 | PyObject * obj0 = 0 ; | |
18222 | PyObject * obj1 = 0 ; | |
18223 | PyObject * obj2 = 0 ; | |
18224 | PyObject * obj3 = 0 ; | |
18225 | PyObject * obj4 = 0 ; | |
18226 | char * kwnames[] = { | |
18227 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
18228 | }; | |
18229 | ||
18230 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18231 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18232 | if (!SWIG_IsOK(res1)) { | |
18233 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18234 | } | |
18235 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18236 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18237 | if (!SWIG_IsOK(ecode2)) { | |
18238 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
18239 | } | |
18240 | arg2 = static_cast< int >(val2); | |
18241 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18242 | if (!SWIG_IsOK(ecode3)) { | |
18243 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
18244 | } | |
18245 | arg3 = static_cast< int >(val3); | |
18246 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18247 | if (!SWIG_IsOK(ecode4)) { | |
18248 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
18249 | } | |
18250 | arg4 = static_cast< int >(val4); | |
18251 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18252 | if (!SWIG_IsOK(ecode5)) { | |
18253 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
18254 | } | |
18255 | arg5 = static_cast< int >(val5); | |
18256 | { | |
18257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18258 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
18259 | wxPyEndAllowThreads(__tstate); | |
18260 | if (PyErr_Occurred()) SWIG_fail; | |
18261 | } | |
18262 | resultobj = SWIG_Py_Void(); | |
18263 | return resultobj; | |
18264 | fail: | |
18265 | return NULL; | |
18266 | } | |
18267 | ||
18268 | ||
18269 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18270 | PyObject *resultobj = 0; | |
18271 | wxDC *arg1 = (wxDC *) 0 ; | |
18272 | wxRect *arg2 = 0 ; | |
18273 | void *argp1 = 0 ; | |
18274 | int res1 = 0 ; | |
18275 | wxRect temp2 ; | |
18276 | PyObject * obj0 = 0 ; | |
18277 | PyObject * obj1 = 0 ; | |
18278 | char * kwnames[] = { | |
18279 | (char *) "self",(char *) "rect", NULL | |
18280 | }; | |
18281 | ||
18282 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
18283 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18284 | if (!SWIG_IsOK(res1)) { | |
18285 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18286 | } | |
18287 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18288 | { | |
18289 | arg2 = &temp2; | |
18290 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18291 | } | |
18292 | { | |
18293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18294 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
18295 | wxPyEndAllowThreads(__tstate); | |
18296 | if (PyErr_Occurred()) SWIG_fail; | |
18297 | } | |
18298 | resultobj = SWIG_Py_Void(); | |
18299 | return resultobj; | |
18300 | fail: | |
18301 | return NULL; | |
18302 | } | |
18303 | ||
18304 | ||
18305 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18306 | PyObject *resultobj = 0; | |
18307 | wxDC *arg1 = (wxDC *) 0 ; | |
18308 | int arg2 ; | |
18309 | int arg3 ; | |
18310 | int arg4 ; | |
18311 | int arg5 ; | |
18312 | double arg6 ; | |
18313 | double arg7 ; | |
18314 | void *argp1 = 0 ; | |
18315 | int res1 = 0 ; | |
18316 | int val2 ; | |
18317 | int ecode2 = 0 ; | |
18318 | int val3 ; | |
18319 | int ecode3 = 0 ; | |
18320 | int val4 ; | |
18321 | int ecode4 = 0 ; | |
18322 | int val5 ; | |
18323 | int ecode5 = 0 ; | |
18324 | double val6 ; | |
18325 | int ecode6 = 0 ; | |
18326 | double val7 ; | |
18327 | int ecode7 = 0 ; | |
18328 | PyObject * obj0 = 0 ; | |
18329 | PyObject * obj1 = 0 ; | |
18330 | PyObject * obj2 = 0 ; | |
18331 | PyObject * obj3 = 0 ; | |
18332 | PyObject * obj4 = 0 ; | |
18333 | PyObject * obj5 = 0 ; | |
18334 | PyObject * obj6 = 0 ; | |
18335 | char * kwnames[] = { | |
18336 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
18337 | }; | |
18338 | ||
18339 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
18340 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18341 | if (!SWIG_IsOK(res1)) { | |
18342 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18343 | } | |
18344 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18345 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18346 | if (!SWIG_IsOK(ecode2)) { | |
18347 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
18348 | } | |
18349 | arg2 = static_cast< int >(val2); | |
18350 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18351 | if (!SWIG_IsOK(ecode3)) { | |
18352 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
18353 | } | |
18354 | arg3 = static_cast< int >(val3); | |
18355 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18356 | if (!SWIG_IsOK(ecode4)) { | |
18357 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
18358 | } | |
18359 | arg4 = static_cast< int >(val4); | |
18360 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18361 | if (!SWIG_IsOK(ecode5)) { | |
18362 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
18363 | } | |
18364 | arg5 = static_cast< int >(val5); | |
18365 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
18366 | if (!SWIG_IsOK(ecode6)) { | |
18367 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
18368 | } | |
18369 | arg6 = static_cast< double >(val6); | |
18370 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
18371 | if (!SWIG_IsOK(ecode7)) { | |
18372 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
18373 | } | |
18374 | arg7 = static_cast< double >(val7); | |
18375 | { | |
18376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18377 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
18378 | wxPyEndAllowThreads(__tstate); | |
18379 | if (PyErr_Occurred()) SWIG_fail; | |
18380 | } | |
18381 | resultobj = SWIG_Py_Void(); | |
18382 | return resultobj; | |
18383 | fail: | |
18384 | return NULL; | |
18385 | } | |
18386 | ||
18387 | ||
18388 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18389 | PyObject *resultobj = 0; | |
18390 | wxDC *arg1 = (wxDC *) 0 ; | |
18391 | wxPoint *arg2 = 0 ; | |
18392 | wxSize *arg3 = 0 ; | |
18393 | double arg4 ; | |
18394 | double arg5 ; | |
18395 | void *argp1 = 0 ; | |
18396 | int res1 = 0 ; | |
18397 | wxPoint temp2 ; | |
18398 | wxSize temp3 ; | |
18399 | double val4 ; | |
18400 | int ecode4 = 0 ; | |
18401 | double val5 ; | |
18402 | int ecode5 = 0 ; | |
18403 | PyObject * obj0 = 0 ; | |
18404 | PyObject * obj1 = 0 ; | |
18405 | PyObject * obj2 = 0 ; | |
18406 | PyObject * obj3 = 0 ; | |
18407 | PyObject * obj4 = 0 ; | |
18408 | char * kwnames[] = { | |
18409 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
18410 | }; | |
18411 | ||
18412 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18413 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18414 | if (!SWIG_IsOK(res1)) { | |
18415 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18416 | } | |
18417 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18418 | { | |
18419 | arg2 = &temp2; | |
18420 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18421 | } | |
18422 | { | |
18423 | arg3 = &temp3; | |
18424 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
18425 | } | |
18426 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
18427 | if (!SWIG_IsOK(ecode4)) { | |
18428 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
18429 | } | |
18430 | arg4 = static_cast< double >(val4); | |
18431 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
18432 | if (!SWIG_IsOK(ecode5)) { | |
18433 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
18434 | } | |
18435 | arg5 = static_cast< double >(val5); | |
18436 | { | |
18437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18438 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
18439 | wxPyEndAllowThreads(__tstate); | |
18440 | if (PyErr_Occurred()) SWIG_fail; | |
18441 | } | |
18442 | resultobj = SWIG_Py_Void(); | |
18443 | return resultobj; | |
18444 | fail: | |
18445 | return NULL; | |
18446 | } | |
18447 | ||
18448 | ||
18449 | SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18450 | PyObject *resultobj = 0; | |
18451 | wxDC *arg1 = (wxDC *) 0 ; | |
18452 | int arg2 ; | |
18453 | int arg3 ; | |
18454 | void *argp1 = 0 ; | |
18455 | int res1 = 0 ; | |
18456 | int val2 ; | |
18457 | int ecode2 = 0 ; | |
18458 | int val3 ; | |
18459 | int ecode3 = 0 ; | |
18460 | PyObject * obj0 = 0 ; | |
18461 | PyObject * obj1 = 0 ; | |
18462 | PyObject * obj2 = 0 ; | |
18463 | char * kwnames[] = { | |
18464 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18465 | }; | |
18466 | ||
18467 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18468 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18469 | if (!SWIG_IsOK(res1)) { | |
18470 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18471 | } | |
18472 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18473 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18474 | if (!SWIG_IsOK(ecode2)) { | |
18475 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
18476 | } | |
18477 | arg2 = static_cast< int >(val2); | |
18478 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18479 | if (!SWIG_IsOK(ecode3)) { | |
18480 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
18481 | } | |
18482 | arg3 = static_cast< int >(val3); | |
18483 | { | |
18484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18485 | (arg1)->DrawPoint(arg2,arg3); | |
18486 | wxPyEndAllowThreads(__tstate); | |
18487 | if (PyErr_Occurred()) SWIG_fail; | |
18488 | } | |
18489 | resultobj = SWIG_Py_Void(); | |
18490 | return resultobj; | |
18491 | fail: | |
18492 | return NULL; | |
18493 | } | |
18494 | ||
18495 | ||
18496 | SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18497 | PyObject *resultobj = 0; | |
18498 | wxDC *arg1 = (wxDC *) 0 ; | |
18499 | wxPoint *arg2 = 0 ; | |
18500 | void *argp1 = 0 ; | |
18501 | int res1 = 0 ; | |
18502 | wxPoint temp2 ; | |
18503 | PyObject * obj0 = 0 ; | |
18504 | PyObject * obj1 = 0 ; | |
18505 | char * kwnames[] = { | |
18506 | (char *) "self",(char *) "pt", NULL | |
18507 | }; | |
18508 | ||
18509 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
18510 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18511 | if (!SWIG_IsOK(res1)) { | |
18512 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18513 | } | |
18514 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18515 | { | |
18516 | arg2 = &temp2; | |
18517 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18518 | } | |
18519 | { | |
18520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18521 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
18522 | wxPyEndAllowThreads(__tstate); | |
18523 | if (PyErr_Occurred()) SWIG_fail; | |
18524 | } | |
18525 | resultobj = SWIG_Py_Void(); | |
18526 | return resultobj; | |
18527 | fail: | |
18528 | return NULL; | |
18529 | } | |
18530 | ||
18531 | ||
18532 | SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18533 | PyObject *resultobj = 0; | |
18534 | wxDC *arg1 = (wxDC *) 0 ; | |
18535 | int arg2 ; | |
18536 | int arg3 ; | |
18537 | int arg4 ; | |
18538 | int arg5 ; | |
18539 | void *argp1 = 0 ; | |
18540 | int res1 = 0 ; | |
18541 | int val2 ; | |
18542 | int ecode2 = 0 ; | |
18543 | int val3 ; | |
18544 | int ecode3 = 0 ; | |
18545 | int val4 ; | |
18546 | int ecode4 = 0 ; | |
18547 | int val5 ; | |
18548 | int ecode5 = 0 ; | |
18549 | PyObject * obj0 = 0 ; | |
18550 | PyObject * obj1 = 0 ; | |
18551 | PyObject * obj2 = 0 ; | |
18552 | PyObject * obj3 = 0 ; | |
18553 | PyObject * obj4 = 0 ; | |
18554 | char * kwnames[] = { | |
18555 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
18556 | }; | |
18557 | ||
18558 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18559 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18560 | if (!SWIG_IsOK(res1)) { | |
18561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18562 | } | |
18563 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18564 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18565 | if (!SWIG_IsOK(ecode2)) { | |
18566 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
18567 | } | |
18568 | arg2 = static_cast< int >(val2); | |
18569 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18570 | if (!SWIG_IsOK(ecode3)) { | |
18571 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
18572 | } | |
18573 | arg3 = static_cast< int >(val3); | |
18574 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18575 | if (!SWIG_IsOK(ecode4)) { | |
18576 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
18577 | } | |
18578 | arg4 = static_cast< int >(val4); | |
18579 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18580 | if (!SWIG_IsOK(ecode5)) { | |
18581 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
18582 | } | |
18583 | arg5 = static_cast< int >(val5); | |
18584 | { | |
18585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18586 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
18587 | wxPyEndAllowThreads(__tstate); | |
18588 | if (PyErr_Occurred()) SWIG_fail; | |
18589 | } | |
18590 | resultobj = SWIG_Py_Void(); | |
18591 | return resultobj; | |
18592 | fail: | |
18593 | return NULL; | |
18594 | } | |
18595 | ||
18596 | ||
18597 | SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18598 | PyObject *resultobj = 0; | |
18599 | wxDC *arg1 = (wxDC *) 0 ; | |
18600 | wxRect *arg2 = 0 ; | |
18601 | void *argp1 = 0 ; | |
18602 | int res1 = 0 ; | |
18603 | wxRect temp2 ; | |
18604 | PyObject * obj0 = 0 ; | |
18605 | PyObject * obj1 = 0 ; | |
18606 | char * kwnames[] = { | |
18607 | (char *) "self",(char *) "rect", NULL | |
18608 | }; | |
18609 | ||
18610 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
18611 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18612 | if (!SWIG_IsOK(res1)) { | |
18613 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18614 | } | |
18615 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18616 | { | |
18617 | arg2 = &temp2; | |
18618 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18619 | } | |
18620 | { | |
18621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18622 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
18623 | wxPyEndAllowThreads(__tstate); | |
18624 | if (PyErr_Occurred()) SWIG_fail; | |
18625 | } | |
18626 | resultobj = SWIG_Py_Void(); | |
18627 | return resultobj; | |
18628 | fail: | |
18629 | return NULL; | |
18630 | } | |
18631 | ||
18632 | ||
18633 | SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18634 | PyObject *resultobj = 0; | |
18635 | wxDC *arg1 = (wxDC *) 0 ; | |
18636 | wxPoint *arg2 = 0 ; | |
18637 | wxSize *arg3 = 0 ; | |
18638 | void *argp1 = 0 ; | |
18639 | int res1 = 0 ; | |
18640 | wxPoint temp2 ; | |
18641 | wxSize temp3 ; | |
18642 | PyObject * obj0 = 0 ; | |
18643 | PyObject * obj1 = 0 ; | |
18644 | PyObject * obj2 = 0 ; | |
18645 | char * kwnames[] = { | |
18646 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
18647 | }; | |
18648 | ||
18649 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18650 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18651 | if (!SWIG_IsOK(res1)) { | |
18652 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18653 | } | |
18654 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18655 | { | |
18656 | arg2 = &temp2; | |
18657 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18658 | } | |
18659 | { | |
18660 | arg3 = &temp3; | |
18661 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
18662 | } | |
18663 | { | |
18664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18665 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
18666 | wxPyEndAllowThreads(__tstate); | |
18667 | if (PyErr_Occurred()) SWIG_fail; | |
18668 | } | |
18669 | resultobj = SWIG_Py_Void(); | |
18670 | return resultobj; | |
18671 | fail: | |
18672 | return NULL; | |
18673 | } | |
18674 | ||
18675 | ||
18676 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18677 | PyObject *resultobj = 0; | |
18678 | wxDC *arg1 = (wxDC *) 0 ; | |
18679 | int arg2 ; | |
18680 | int arg3 ; | |
18681 | int arg4 ; | |
18682 | int arg5 ; | |
18683 | double arg6 ; | |
18684 | void *argp1 = 0 ; | |
18685 | int res1 = 0 ; | |
18686 | int val2 ; | |
18687 | int ecode2 = 0 ; | |
18688 | int val3 ; | |
18689 | int ecode3 = 0 ; | |
18690 | int val4 ; | |
18691 | int ecode4 = 0 ; | |
18692 | int val5 ; | |
18693 | int ecode5 = 0 ; | |
18694 | double val6 ; | |
18695 | int ecode6 = 0 ; | |
18696 | PyObject * obj0 = 0 ; | |
18697 | PyObject * obj1 = 0 ; | |
18698 | PyObject * obj2 = 0 ; | |
18699 | PyObject * obj3 = 0 ; | |
18700 | PyObject * obj4 = 0 ; | |
18701 | PyObject * obj5 = 0 ; | |
18702 | char * kwnames[] = { | |
18703 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
18704 | }; | |
18705 | ||
18706 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
18707 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18708 | if (!SWIG_IsOK(res1)) { | |
18709 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18710 | } | |
18711 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18712 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18713 | if (!SWIG_IsOK(ecode2)) { | |
18714 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'"); | |
18715 | } | |
18716 | arg2 = static_cast< int >(val2); | |
18717 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18718 | if (!SWIG_IsOK(ecode3)) { | |
18719 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
18720 | } | |
18721 | arg3 = static_cast< int >(val3); | |
18722 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18723 | if (!SWIG_IsOK(ecode4)) { | |
18724 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
18725 | } | |
18726 | arg4 = static_cast< int >(val4); | |
18727 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18728 | if (!SWIG_IsOK(ecode5)) { | |
18729 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
18730 | } | |
18731 | arg5 = static_cast< int >(val5); | |
18732 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
18733 | if (!SWIG_IsOK(ecode6)) { | |
18734 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
18735 | } | |
18736 | arg6 = static_cast< double >(val6); | |
18737 | { | |
18738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18739 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
18740 | wxPyEndAllowThreads(__tstate); | |
18741 | if (PyErr_Occurred()) SWIG_fail; | |
18742 | } | |
18743 | resultobj = SWIG_Py_Void(); | |
18744 | return resultobj; | |
18745 | fail: | |
18746 | return NULL; | |
18747 | } | |
18748 | ||
18749 | ||
18750 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18751 | PyObject *resultobj = 0; | |
18752 | wxDC *arg1 = (wxDC *) 0 ; | |
18753 | wxRect *arg2 = 0 ; | |
18754 | double arg3 ; | |
18755 | void *argp1 = 0 ; | |
18756 | int res1 = 0 ; | |
18757 | wxRect temp2 ; | |
18758 | double val3 ; | |
18759 | int ecode3 = 0 ; | |
18760 | PyObject * obj0 = 0 ; | |
18761 | PyObject * obj1 = 0 ; | |
18762 | PyObject * obj2 = 0 ; | |
18763 | char * kwnames[] = { | |
18764 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
18765 | }; | |
18766 | ||
18767 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18768 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18769 | if (!SWIG_IsOK(res1)) { | |
18770 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18771 | } | |
18772 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18773 | { | |
18774 | arg2 = &temp2; | |
18775 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18776 | } | |
18777 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
18778 | if (!SWIG_IsOK(ecode3)) { | |
18779 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
18780 | } | |
18781 | arg3 = static_cast< double >(val3); | |
18782 | { | |
18783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18784 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
18785 | wxPyEndAllowThreads(__tstate); | |
18786 | if (PyErr_Occurred()) SWIG_fail; | |
18787 | } | |
18788 | resultobj = SWIG_Py_Void(); | |
18789 | return resultobj; | |
18790 | fail: | |
18791 | return NULL; | |
18792 | } | |
18793 | ||
18794 | ||
18795 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18796 | PyObject *resultobj = 0; | |
18797 | wxDC *arg1 = (wxDC *) 0 ; | |
18798 | wxPoint *arg2 = 0 ; | |
18799 | wxSize *arg3 = 0 ; | |
18800 | double arg4 ; | |
18801 | void *argp1 = 0 ; | |
18802 | int res1 = 0 ; | |
18803 | wxPoint temp2 ; | |
18804 | wxSize temp3 ; | |
18805 | double val4 ; | |
18806 | int ecode4 = 0 ; | |
18807 | PyObject * obj0 = 0 ; | |
18808 | PyObject * obj1 = 0 ; | |
18809 | PyObject * obj2 = 0 ; | |
18810 | PyObject * obj3 = 0 ; | |
18811 | char * kwnames[] = { | |
18812 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
18813 | }; | |
18814 | ||
18815 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18816 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18817 | if (!SWIG_IsOK(res1)) { | |
18818 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18819 | } | |
18820 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18821 | { | |
18822 | arg2 = &temp2; | |
18823 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18824 | } | |
18825 | { | |
18826 | arg3 = &temp3; | |
18827 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
18828 | } | |
18829 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
18830 | if (!SWIG_IsOK(ecode4)) { | |
18831 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
18832 | } | |
18833 | arg4 = static_cast< double >(val4); | |
18834 | { | |
18835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18836 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
18837 | wxPyEndAllowThreads(__tstate); | |
18838 | if (PyErr_Occurred()) SWIG_fail; | |
18839 | } | |
18840 | resultobj = SWIG_Py_Void(); | |
18841 | return resultobj; | |
18842 | fail: | |
18843 | return NULL; | |
18844 | } | |
18845 | ||
18846 | ||
18847 | SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18848 | PyObject *resultobj = 0; | |
18849 | wxDC *arg1 = (wxDC *) 0 ; | |
18850 | int arg2 ; | |
18851 | int arg3 ; | |
18852 | int arg4 ; | |
18853 | void *argp1 = 0 ; | |
18854 | int res1 = 0 ; | |
18855 | int val2 ; | |
18856 | int ecode2 = 0 ; | |
18857 | int val3 ; | |
18858 | int ecode3 = 0 ; | |
18859 | int val4 ; | |
18860 | int ecode4 = 0 ; | |
18861 | PyObject * obj0 = 0 ; | |
18862 | PyObject * obj1 = 0 ; | |
18863 | PyObject * obj2 = 0 ; | |
18864 | PyObject * obj3 = 0 ; | |
18865 | char * kwnames[] = { | |
18866 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
18867 | }; | |
18868 | ||
18869 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18870 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18871 | if (!SWIG_IsOK(res1)) { | |
18872 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18873 | } | |
18874 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18875 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18876 | if (!SWIG_IsOK(ecode2)) { | |
18877 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
18878 | } | |
18879 | arg2 = static_cast< int >(val2); | |
18880 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18881 | if (!SWIG_IsOK(ecode3)) { | |
18882 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
18883 | } | |
18884 | arg3 = static_cast< int >(val3); | |
18885 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18886 | if (!SWIG_IsOK(ecode4)) { | |
18887 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
18888 | } | |
18889 | arg4 = static_cast< int >(val4); | |
18890 | { | |
18891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18892 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
18893 | wxPyEndAllowThreads(__tstate); | |
18894 | if (PyErr_Occurred()) SWIG_fail; | |
18895 | } | |
18896 | resultobj = SWIG_Py_Void(); | |
18897 | return resultobj; | |
18898 | fail: | |
18899 | return NULL; | |
18900 | } | |
18901 | ||
18902 | ||
18903 | SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18904 | PyObject *resultobj = 0; | |
18905 | wxDC *arg1 = (wxDC *) 0 ; | |
18906 | wxPoint *arg2 = 0 ; | |
18907 | int arg3 ; | |
18908 | void *argp1 = 0 ; | |
18909 | int res1 = 0 ; | |
18910 | wxPoint temp2 ; | |
18911 | int val3 ; | |
18912 | int ecode3 = 0 ; | |
18913 | PyObject * obj0 = 0 ; | |
18914 | PyObject * obj1 = 0 ; | |
18915 | PyObject * obj2 = 0 ; | |
18916 | char * kwnames[] = { | |
18917 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
18918 | }; | |
18919 | ||
18920 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18921 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18922 | if (!SWIG_IsOK(res1)) { | |
18923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18924 | } | |
18925 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18926 | { | |
18927 | arg2 = &temp2; | |
18928 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18929 | } | |
18930 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18931 | if (!SWIG_IsOK(ecode3)) { | |
18932 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
18933 | } | |
18934 | arg3 = static_cast< int >(val3); | |
18935 | { | |
18936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18937 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
18938 | wxPyEndAllowThreads(__tstate); | |
18939 | if (PyErr_Occurred()) SWIG_fail; | |
18940 | } | |
18941 | resultobj = SWIG_Py_Void(); | |
18942 | return resultobj; | |
18943 | fail: | |
18944 | return NULL; | |
18945 | } | |
18946 | ||
18947 | ||
18948 | SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18949 | PyObject *resultobj = 0; | |
18950 | wxDC *arg1 = (wxDC *) 0 ; | |
18951 | int arg2 ; | |
18952 | int arg3 ; | |
18953 | int arg4 ; | |
18954 | int arg5 ; | |
18955 | void *argp1 = 0 ; | |
18956 | int res1 = 0 ; | |
18957 | int val2 ; | |
18958 | int ecode2 = 0 ; | |
18959 | int val3 ; | |
18960 | int ecode3 = 0 ; | |
18961 | int val4 ; | |
18962 | int ecode4 = 0 ; | |
18963 | int val5 ; | |
18964 | int ecode5 = 0 ; | |
18965 | PyObject * obj0 = 0 ; | |
18966 | PyObject * obj1 = 0 ; | |
18967 | PyObject * obj2 = 0 ; | |
18968 | PyObject * obj3 = 0 ; | |
18969 | PyObject * obj4 = 0 ; | |
18970 | char * kwnames[] = { | |
18971 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
18972 | }; | |
18973 | ||
18974 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18975 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18976 | if (!SWIG_IsOK(res1)) { | |
18977 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18978 | } | |
18979 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18980 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18981 | if (!SWIG_IsOK(ecode2)) { | |
18982 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
18983 | } | |
18984 | arg2 = static_cast< int >(val2); | |
18985 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18986 | if (!SWIG_IsOK(ecode3)) { | |
18987 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'"); | |
18988 | } | |
18989 | arg3 = static_cast< int >(val3); | |
18990 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18991 | if (!SWIG_IsOK(ecode4)) { | |
18992 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
18993 | } | |
18994 | arg4 = static_cast< int >(val4); | |
18995 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18996 | if (!SWIG_IsOK(ecode5)) { | |
18997 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
18998 | } | |
18999 | arg5 = static_cast< int >(val5); | |
19000 | { | |
19001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19002 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
19003 | wxPyEndAllowThreads(__tstate); | |
19004 | if (PyErr_Occurred()) SWIG_fail; | |
19005 | } | |
19006 | resultobj = SWIG_Py_Void(); | |
19007 | return resultobj; | |
19008 | fail: | |
19009 | return NULL; | |
19010 | } | |
19011 | ||
19012 | ||
19013 | SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19014 | PyObject *resultobj = 0; | |
19015 | wxDC *arg1 = (wxDC *) 0 ; | |
19016 | wxRect *arg2 = 0 ; | |
19017 | void *argp1 = 0 ; | |
19018 | int res1 = 0 ; | |
19019 | wxRect temp2 ; | |
19020 | PyObject * obj0 = 0 ; | |
19021 | PyObject * obj1 = 0 ; | |
19022 | char * kwnames[] = { | |
19023 | (char *) "self",(char *) "rect", NULL | |
19024 | }; | |
19025 | ||
19026 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
19027 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19028 | if (!SWIG_IsOK(res1)) { | |
19029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19030 | } | |
19031 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19032 | { | |
19033 | arg2 = &temp2; | |
19034 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19035 | } | |
19036 | { | |
19037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19038 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
19039 | wxPyEndAllowThreads(__tstate); | |
19040 | if (PyErr_Occurred()) SWIG_fail; | |
19041 | } | |
19042 | resultobj = SWIG_Py_Void(); | |
19043 | return resultobj; | |
19044 | fail: | |
19045 | return NULL; | |
19046 | } | |
19047 | ||
19048 | ||
19049 | SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19050 | PyObject *resultobj = 0; | |
19051 | wxDC *arg1 = (wxDC *) 0 ; | |
19052 | wxPoint *arg2 = 0 ; | |
19053 | wxSize *arg3 = 0 ; | |
19054 | void *argp1 = 0 ; | |
19055 | int res1 = 0 ; | |
19056 | wxPoint temp2 ; | |
19057 | wxSize temp3 ; | |
19058 | PyObject * obj0 = 0 ; | |
19059 | PyObject * obj1 = 0 ; | |
19060 | PyObject * obj2 = 0 ; | |
19061 | char * kwnames[] = { | |
19062 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
19063 | }; | |
19064 | ||
19065 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19066 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19067 | if (!SWIG_IsOK(res1)) { | |
19068 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19069 | } | |
19070 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19071 | { | |
19072 | arg2 = &temp2; | |
19073 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19074 | } | |
19075 | { | |
19076 | arg3 = &temp3; | |
19077 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19078 | } | |
19079 | { | |
19080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19081 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
19082 | wxPyEndAllowThreads(__tstate); | |
19083 | if (PyErr_Occurred()) SWIG_fail; | |
19084 | } | |
19085 | resultobj = SWIG_Py_Void(); | |
19086 | return resultobj; | |
19087 | fail: | |
19088 | return NULL; | |
19089 | } | |
19090 | ||
19091 | ||
19092 | SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19093 | PyObject *resultobj = 0; | |
19094 | wxDC *arg1 = (wxDC *) 0 ; | |
19095 | wxIcon *arg2 = 0 ; | |
19096 | int arg3 ; | |
19097 | int arg4 ; | |
19098 | void *argp1 = 0 ; | |
19099 | int res1 = 0 ; | |
19100 | void *argp2 = 0 ; | |
19101 | int res2 = 0 ; | |
19102 | int val3 ; | |
19103 | int ecode3 = 0 ; | |
19104 | int val4 ; | |
19105 | int ecode4 = 0 ; | |
19106 | PyObject * obj0 = 0 ; | |
19107 | PyObject * obj1 = 0 ; | |
19108 | PyObject * obj2 = 0 ; | |
19109 | PyObject * obj3 = 0 ; | |
19110 | char * kwnames[] = { | |
19111 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
19112 | }; | |
19113 | ||
19114 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19115 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19116 | if (!SWIG_IsOK(res1)) { | |
19117 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19118 | } | |
19119 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19120 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
19121 | if (!SWIG_IsOK(res2)) { | |
19122 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19123 | } | |
19124 | if (!argp2) { | |
19125 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19126 | } | |
19127 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
19128 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19129 | if (!SWIG_IsOK(ecode3)) { | |
19130 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
19131 | } | |
19132 | arg3 = static_cast< int >(val3); | |
19133 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19134 | if (!SWIG_IsOK(ecode4)) { | |
19135 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
19136 | } | |
19137 | arg4 = static_cast< int >(val4); | |
19138 | { | |
19139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19140 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
19141 | wxPyEndAllowThreads(__tstate); | |
19142 | if (PyErr_Occurred()) SWIG_fail; | |
19143 | } | |
19144 | resultobj = SWIG_Py_Void(); | |
19145 | return resultobj; | |
19146 | fail: | |
19147 | return NULL; | |
19148 | } | |
19149 | ||
19150 | ||
19151 | SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19152 | PyObject *resultobj = 0; | |
19153 | wxDC *arg1 = (wxDC *) 0 ; | |
19154 | wxIcon *arg2 = 0 ; | |
19155 | wxPoint *arg3 = 0 ; | |
19156 | void *argp1 = 0 ; | |
19157 | int res1 = 0 ; | |
19158 | void *argp2 = 0 ; | |
19159 | int res2 = 0 ; | |
19160 | wxPoint temp3 ; | |
19161 | PyObject * obj0 = 0 ; | |
19162 | PyObject * obj1 = 0 ; | |
19163 | PyObject * obj2 = 0 ; | |
19164 | char * kwnames[] = { | |
19165 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
19166 | }; | |
19167 | ||
19168 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19169 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19170 | if (!SWIG_IsOK(res1)) { | |
19171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19172 | } | |
19173 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19174 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
19175 | if (!SWIG_IsOK(res2)) { | |
19176 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19177 | } | |
19178 | if (!argp2) { | |
19179 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19180 | } | |
19181 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
19182 | { | |
19183 | arg3 = &temp3; | |
19184 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19185 | } | |
19186 | { | |
19187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19188 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
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_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19200 | PyObject *resultobj = 0; | |
19201 | wxDC *arg1 = (wxDC *) 0 ; | |
19202 | wxBitmap *arg2 = 0 ; | |
19203 | int arg3 ; | |
19204 | int arg4 ; | |
19205 | bool arg5 = (bool) false ; | |
19206 | void *argp1 = 0 ; | |
19207 | int res1 = 0 ; | |
19208 | void *argp2 = 0 ; | |
19209 | int res2 = 0 ; | |
19210 | int val3 ; | |
19211 | int ecode3 = 0 ; | |
19212 | int val4 ; | |
19213 | int ecode4 = 0 ; | |
19214 | bool val5 ; | |
19215 | int ecode5 = 0 ; | |
19216 | PyObject * obj0 = 0 ; | |
19217 | PyObject * obj1 = 0 ; | |
19218 | PyObject * obj2 = 0 ; | |
19219 | PyObject * obj3 = 0 ; | |
19220 | PyObject * obj4 = 0 ; | |
19221 | char * kwnames[] = { | |
19222 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
19223 | }; | |
19224 | ||
19225 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19226 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19227 | if (!SWIG_IsOK(res1)) { | |
19228 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19229 | } | |
19230 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19231 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
19232 | if (!SWIG_IsOK(res2)) { | |
19233 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19234 | } | |
19235 | if (!argp2) { | |
19236 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19237 | } | |
19238 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
19239 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19240 | if (!SWIG_IsOK(ecode3)) { | |
19241 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
19242 | } | |
19243 | arg3 = static_cast< int >(val3); | |
19244 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19245 | if (!SWIG_IsOK(ecode4)) { | |
19246 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
19247 | } | |
19248 | arg4 = static_cast< int >(val4); | |
19249 | if (obj4) { | |
19250 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
19251 | if (!SWIG_IsOK(ecode5)) { | |
19252 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
19253 | } | |
19254 | arg5 = static_cast< bool >(val5); | |
19255 | } | |
19256 | { | |
19257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19258 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
19259 | wxPyEndAllowThreads(__tstate); | |
19260 | if (PyErr_Occurred()) SWIG_fail; | |
19261 | } | |
19262 | resultobj = SWIG_Py_Void(); | |
19263 | return resultobj; | |
19264 | fail: | |
19265 | return NULL; | |
19266 | } | |
19267 | ||
19268 | ||
19269 | SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19270 | PyObject *resultobj = 0; | |
19271 | wxDC *arg1 = (wxDC *) 0 ; | |
19272 | wxBitmap *arg2 = 0 ; | |
19273 | wxPoint *arg3 = 0 ; | |
19274 | bool arg4 = (bool) false ; | |
19275 | void *argp1 = 0 ; | |
19276 | int res1 = 0 ; | |
19277 | void *argp2 = 0 ; | |
19278 | int res2 = 0 ; | |
19279 | wxPoint temp3 ; | |
19280 | bool val4 ; | |
19281 | int ecode4 = 0 ; | |
19282 | PyObject * obj0 = 0 ; | |
19283 | PyObject * obj1 = 0 ; | |
19284 | PyObject * obj2 = 0 ; | |
19285 | PyObject * obj3 = 0 ; | |
19286 | char * kwnames[] = { | |
19287 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
19288 | }; | |
19289 | ||
19290 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19291 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19292 | if (!SWIG_IsOK(res1)) { | |
19293 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19294 | } | |
19295 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19296 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
19297 | if (!SWIG_IsOK(res2)) { | |
19298 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19299 | } | |
19300 | if (!argp2) { | |
19301 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19302 | } | |
19303 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
19304 | { | |
19305 | arg3 = &temp3; | |
19306 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19307 | } | |
19308 | if (obj3) { | |
19309 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
19310 | if (!SWIG_IsOK(ecode4)) { | |
19311 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
19312 | } | |
19313 | arg4 = static_cast< bool >(val4); | |
19314 | } | |
19315 | { | |
19316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19317 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
19318 | wxPyEndAllowThreads(__tstate); | |
19319 | if (PyErr_Occurred()) SWIG_fail; | |
19320 | } | |
19321 | resultobj = SWIG_Py_Void(); | |
19322 | return resultobj; | |
19323 | fail: | |
19324 | return NULL; | |
19325 | } | |
19326 | ||
19327 | ||
19328 | SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19329 | PyObject *resultobj = 0; | |
19330 | wxDC *arg1 = (wxDC *) 0 ; | |
19331 | wxString *arg2 = 0 ; | |
19332 | int arg3 ; | |
19333 | int arg4 ; | |
19334 | void *argp1 = 0 ; | |
19335 | int res1 = 0 ; | |
19336 | bool temp2 = false ; | |
19337 | int val3 ; | |
19338 | int ecode3 = 0 ; | |
19339 | int val4 ; | |
19340 | int ecode4 = 0 ; | |
19341 | PyObject * obj0 = 0 ; | |
19342 | PyObject * obj1 = 0 ; | |
19343 | PyObject * obj2 = 0 ; | |
19344 | PyObject * obj3 = 0 ; | |
19345 | char * kwnames[] = { | |
19346 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
19347 | }; | |
19348 | ||
19349 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19350 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19351 | if (!SWIG_IsOK(res1)) { | |
19352 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19353 | } | |
19354 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19355 | { | |
19356 | arg2 = wxString_in_helper(obj1); | |
19357 | if (arg2 == NULL) SWIG_fail; | |
19358 | temp2 = true; | |
19359 | } | |
19360 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19361 | if (!SWIG_IsOK(ecode3)) { | |
19362 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
19363 | } | |
19364 | arg3 = static_cast< int >(val3); | |
19365 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19366 | if (!SWIG_IsOK(ecode4)) { | |
19367 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
19368 | } | |
19369 | arg4 = static_cast< int >(val4); | |
19370 | { | |
19371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19372 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
19373 | wxPyEndAllowThreads(__tstate); | |
19374 | if (PyErr_Occurred()) SWIG_fail; | |
19375 | } | |
19376 | resultobj = SWIG_Py_Void(); | |
19377 | { | |
19378 | if (temp2) | |
19379 | delete arg2; | |
19380 | } | |
19381 | return resultobj; | |
19382 | fail: | |
19383 | { | |
19384 | if (temp2) | |
19385 | delete arg2; | |
19386 | } | |
19387 | return NULL; | |
19388 | } | |
19389 | ||
19390 | ||
19391 | SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19392 | PyObject *resultobj = 0; | |
19393 | wxDC *arg1 = (wxDC *) 0 ; | |
19394 | wxString *arg2 = 0 ; | |
19395 | wxPoint *arg3 = 0 ; | |
19396 | void *argp1 = 0 ; | |
19397 | int res1 = 0 ; | |
19398 | bool temp2 = false ; | |
19399 | wxPoint temp3 ; | |
19400 | PyObject * obj0 = 0 ; | |
19401 | PyObject * obj1 = 0 ; | |
19402 | PyObject * obj2 = 0 ; | |
19403 | char * kwnames[] = { | |
19404 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
19405 | }; | |
19406 | ||
19407 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19408 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19409 | if (!SWIG_IsOK(res1)) { | |
19410 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19411 | } | |
19412 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19413 | { | |
19414 | arg2 = wxString_in_helper(obj1); | |
19415 | if (arg2 == NULL) SWIG_fail; | |
19416 | temp2 = true; | |
19417 | } | |
19418 | { | |
19419 | arg3 = &temp3; | |
19420 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19421 | } | |
19422 | { | |
19423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19424 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
19425 | wxPyEndAllowThreads(__tstate); | |
19426 | if (PyErr_Occurred()) SWIG_fail; | |
19427 | } | |
19428 | resultobj = SWIG_Py_Void(); | |
19429 | { | |
19430 | if (temp2) | |
19431 | delete arg2; | |
19432 | } | |
19433 | return resultobj; | |
19434 | fail: | |
19435 | { | |
19436 | if (temp2) | |
19437 | delete arg2; | |
19438 | } | |
19439 | return NULL; | |
19440 | } | |
19441 | ||
19442 | ||
19443 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19444 | PyObject *resultobj = 0; | |
19445 | wxDC *arg1 = (wxDC *) 0 ; | |
19446 | wxString *arg2 = 0 ; | |
19447 | int arg3 ; | |
19448 | int arg4 ; | |
19449 | double arg5 ; | |
19450 | void *argp1 = 0 ; | |
19451 | int res1 = 0 ; | |
19452 | bool temp2 = false ; | |
19453 | int val3 ; | |
19454 | int ecode3 = 0 ; | |
19455 | int val4 ; | |
19456 | int ecode4 = 0 ; | |
19457 | double val5 ; | |
19458 | int ecode5 = 0 ; | |
19459 | PyObject * obj0 = 0 ; | |
19460 | PyObject * obj1 = 0 ; | |
19461 | PyObject * obj2 = 0 ; | |
19462 | PyObject * obj3 = 0 ; | |
19463 | PyObject * obj4 = 0 ; | |
19464 | char * kwnames[] = { | |
19465 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
19466 | }; | |
19467 | ||
19468 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19469 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19470 | if (!SWIG_IsOK(res1)) { | |
19471 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19472 | } | |
19473 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19474 | { | |
19475 | arg2 = wxString_in_helper(obj1); | |
19476 | if (arg2 == NULL) SWIG_fail; | |
19477 | temp2 = true; | |
19478 | } | |
19479 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19480 | if (!SWIG_IsOK(ecode3)) { | |
19481 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
19482 | } | |
19483 | arg3 = static_cast< int >(val3); | |
19484 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19485 | if (!SWIG_IsOK(ecode4)) { | |
19486 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
19487 | } | |
19488 | arg4 = static_cast< int >(val4); | |
19489 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
19490 | if (!SWIG_IsOK(ecode5)) { | |
19491 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
19492 | } | |
19493 | arg5 = static_cast< double >(val5); | |
19494 | { | |
19495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19496 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
19497 | wxPyEndAllowThreads(__tstate); | |
19498 | if (PyErr_Occurred()) SWIG_fail; | |
19499 | } | |
19500 | resultobj = SWIG_Py_Void(); | |
19501 | { | |
19502 | if (temp2) | |
19503 | delete arg2; | |
19504 | } | |
19505 | return resultobj; | |
19506 | fail: | |
19507 | { | |
19508 | if (temp2) | |
19509 | delete arg2; | |
19510 | } | |
19511 | return NULL; | |
19512 | } | |
19513 | ||
19514 | ||
19515 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19516 | PyObject *resultobj = 0; | |
19517 | wxDC *arg1 = (wxDC *) 0 ; | |
19518 | wxString *arg2 = 0 ; | |
19519 | wxPoint *arg3 = 0 ; | |
19520 | double arg4 ; | |
19521 | void *argp1 = 0 ; | |
19522 | int res1 = 0 ; | |
19523 | bool temp2 = false ; | |
19524 | wxPoint temp3 ; | |
19525 | double val4 ; | |
19526 | int ecode4 = 0 ; | |
19527 | PyObject * obj0 = 0 ; | |
19528 | PyObject * obj1 = 0 ; | |
19529 | PyObject * obj2 = 0 ; | |
19530 | PyObject * obj3 = 0 ; | |
19531 | char * kwnames[] = { | |
19532 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
19533 | }; | |
19534 | ||
19535 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19536 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19537 | if (!SWIG_IsOK(res1)) { | |
19538 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19539 | } | |
19540 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19541 | { | |
19542 | arg2 = wxString_in_helper(obj1); | |
19543 | if (arg2 == NULL) SWIG_fail; | |
19544 | temp2 = true; | |
19545 | } | |
19546 | { | |
19547 | arg3 = &temp3; | |
19548 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19549 | } | |
19550 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
19551 | if (!SWIG_IsOK(ecode4)) { | |
19552 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
19553 | } | |
19554 | arg4 = static_cast< double >(val4); | |
19555 | { | |
19556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19557 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
19558 | wxPyEndAllowThreads(__tstate); | |
19559 | if (PyErr_Occurred()) SWIG_fail; | |
19560 | } | |
19561 | resultobj = SWIG_Py_Void(); | |
19562 | { | |
19563 | if (temp2) | |
19564 | delete arg2; | |
19565 | } | |
19566 | return resultobj; | |
19567 | fail: | |
19568 | { | |
19569 | if (temp2) | |
19570 | delete arg2; | |
19571 | } | |
19572 | return NULL; | |
19573 | } | |
19574 | ||
19575 | ||
19576 | SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19577 | PyObject *resultobj = 0; | |
19578 | wxDC *arg1 = (wxDC *) 0 ; | |
19579 | int arg2 ; | |
19580 | int arg3 ; | |
19581 | int arg4 ; | |
19582 | int arg5 ; | |
19583 | wxDC *arg6 = (wxDC *) 0 ; | |
19584 | int arg7 ; | |
19585 | int arg8 ; | |
19586 | int arg9 = (int) wxCOPY ; | |
19587 | bool arg10 = (bool) false ; | |
19588 | int arg11 = (int) -1 ; | |
19589 | int arg12 = (int) -1 ; | |
19590 | bool result; | |
19591 | void *argp1 = 0 ; | |
19592 | int res1 = 0 ; | |
19593 | int val2 ; | |
19594 | int ecode2 = 0 ; | |
19595 | int val3 ; | |
19596 | int ecode3 = 0 ; | |
19597 | int val4 ; | |
19598 | int ecode4 = 0 ; | |
19599 | int val5 ; | |
19600 | int ecode5 = 0 ; | |
19601 | void *argp6 = 0 ; | |
19602 | int res6 = 0 ; | |
19603 | int val7 ; | |
19604 | int ecode7 = 0 ; | |
19605 | int val8 ; | |
19606 | int ecode8 = 0 ; | |
19607 | int val9 ; | |
19608 | int ecode9 = 0 ; | |
19609 | bool val10 ; | |
19610 | int ecode10 = 0 ; | |
19611 | int val11 ; | |
19612 | int ecode11 = 0 ; | |
19613 | int val12 ; | |
19614 | int ecode12 = 0 ; | |
19615 | PyObject * obj0 = 0 ; | |
19616 | PyObject * obj1 = 0 ; | |
19617 | PyObject * obj2 = 0 ; | |
19618 | PyObject * obj3 = 0 ; | |
19619 | PyObject * obj4 = 0 ; | |
19620 | PyObject * obj5 = 0 ; | |
19621 | PyObject * obj6 = 0 ; | |
19622 | PyObject * obj7 = 0 ; | |
19623 | PyObject * obj8 = 0 ; | |
19624 | PyObject * obj9 = 0 ; | |
19625 | PyObject * obj10 = 0 ; | |
19626 | PyObject * obj11 = 0 ; | |
19627 | char * kwnames[] = { | |
19628 | (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 | |
19629 | }; | |
19630 | ||
19631 | 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; | |
19632 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19633 | if (!SWIG_IsOK(res1)) { | |
19634 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19635 | } | |
19636 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19637 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19638 | if (!SWIG_IsOK(ecode2)) { | |
19639 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'"); | |
19640 | } | |
19641 | arg2 = static_cast< int >(val2); | |
19642 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19643 | if (!SWIG_IsOK(ecode3)) { | |
19644 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'"); | |
19645 | } | |
19646 | arg3 = static_cast< int >(val3); | |
19647 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19648 | if (!SWIG_IsOK(ecode4)) { | |
19649 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'"); | |
19650 | } | |
19651 | arg4 = static_cast< int >(val4); | |
19652 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19653 | if (!SWIG_IsOK(ecode5)) { | |
19654 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'"); | |
19655 | } | |
19656 | arg5 = static_cast< int >(val5); | |
19657 | res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19658 | if (!SWIG_IsOK(res6)) { | |
19659 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'"); | |
19660 | } | |
19661 | arg6 = reinterpret_cast< wxDC * >(argp6); | |
19662 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
19663 | if (!SWIG_IsOK(ecode7)) { | |
19664 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'"); | |
19665 | } | |
19666 | arg7 = static_cast< int >(val7); | |
19667 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
19668 | if (!SWIG_IsOK(ecode8)) { | |
19669 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'"); | |
19670 | } | |
19671 | arg8 = static_cast< int >(val8); | |
19672 | if (obj8) { | |
19673 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
19674 | if (!SWIG_IsOK(ecode9)) { | |
19675 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'"); | |
19676 | } | |
19677 | arg9 = static_cast< int >(val9); | |
19678 | } | |
19679 | if (obj9) { | |
19680 | ecode10 = SWIG_AsVal_bool(obj9, &val10); | |
19681 | if (!SWIG_IsOK(ecode10)) { | |
19682 | SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'"); | |
19683 | } | |
19684 | arg10 = static_cast< bool >(val10); | |
19685 | } | |
19686 | if (obj10) { | |
19687 | ecode11 = SWIG_AsVal_int(obj10, &val11); | |
19688 | if (!SWIG_IsOK(ecode11)) { | |
19689 | SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'"); | |
19690 | } | |
19691 | arg11 = static_cast< int >(val11); | |
19692 | } | |
19693 | if (obj11) { | |
19694 | ecode12 = SWIG_AsVal_int(obj11, &val12); | |
19695 | if (!SWIG_IsOK(ecode12)) { | |
19696 | SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'"); | |
19697 | } | |
19698 | arg12 = static_cast< int >(val12); | |
19699 | } | |
19700 | { | |
19701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19702 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
19703 | wxPyEndAllowThreads(__tstate); | |
19704 | if (PyErr_Occurred()) SWIG_fail; | |
19705 | } | |
19706 | { | |
19707 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19708 | } | |
19709 | return resultobj; | |
19710 | fail: | |
19711 | return NULL; | |
19712 | } | |
19713 | ||
19714 | ||
19715 | SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19716 | PyObject *resultobj = 0; | |
19717 | wxDC *arg1 = (wxDC *) 0 ; | |
19718 | wxPoint *arg2 = 0 ; | |
19719 | wxSize *arg3 = 0 ; | |
19720 | wxDC *arg4 = (wxDC *) 0 ; | |
19721 | wxPoint *arg5 = 0 ; | |
19722 | int arg6 = (int) wxCOPY ; | |
19723 | bool arg7 = (bool) false ; | |
19724 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
19725 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
19726 | bool result; | |
19727 | void *argp1 = 0 ; | |
19728 | int res1 = 0 ; | |
19729 | wxPoint temp2 ; | |
19730 | wxSize temp3 ; | |
19731 | void *argp4 = 0 ; | |
19732 | int res4 = 0 ; | |
19733 | wxPoint temp5 ; | |
19734 | int val6 ; | |
19735 | int ecode6 = 0 ; | |
19736 | bool val7 ; | |
19737 | int ecode7 = 0 ; | |
19738 | wxPoint temp8 ; | |
19739 | PyObject * obj0 = 0 ; | |
19740 | PyObject * obj1 = 0 ; | |
19741 | PyObject * obj2 = 0 ; | |
19742 | PyObject * obj3 = 0 ; | |
19743 | PyObject * obj4 = 0 ; | |
19744 | PyObject * obj5 = 0 ; | |
19745 | PyObject * obj6 = 0 ; | |
19746 | PyObject * obj7 = 0 ; | |
19747 | char * kwnames[] = { | |
19748 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
19749 | }; | |
19750 | ||
19751 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
19752 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19753 | if (!SWIG_IsOK(res1)) { | |
19754 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19755 | } | |
19756 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19757 | { | |
19758 | arg2 = &temp2; | |
19759 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19760 | } | |
19761 | { | |
19762 | arg3 = &temp3; | |
19763 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19764 | } | |
19765 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19766 | if (!SWIG_IsOK(res4)) { | |
19767 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'"); | |
19768 | } | |
19769 | arg4 = reinterpret_cast< wxDC * >(argp4); | |
19770 | { | |
19771 | arg5 = &temp5; | |
19772 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
19773 | } | |
19774 | if (obj5) { | |
19775 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
19776 | if (!SWIG_IsOK(ecode6)) { | |
19777 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'"); | |
19778 | } | |
19779 | arg6 = static_cast< int >(val6); | |
19780 | } | |
19781 | if (obj6) { | |
19782 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
19783 | if (!SWIG_IsOK(ecode7)) { | |
19784 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'"); | |
19785 | } | |
19786 | arg7 = static_cast< bool >(val7); | |
19787 | } | |
19788 | if (obj7) { | |
093d3ff1 | 19789 | { |
0085ce49 RD |
19790 | arg8 = &temp8; |
19791 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
093d3ff1 | 19792 | } |
0085ce49 RD |
19793 | } |
19794 | { | |
19795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19796 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
19797 | wxPyEndAllowThreads(__tstate); | |
19798 | if (PyErr_Occurred()) SWIG_fail; | |
19799 | } | |
19800 | { | |
19801 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19802 | } | |
19803 | return resultobj; | |
19804 | fail: | |
19805 | return NULL; | |
19806 | } | |
19807 | ||
19808 | ||
8f514ab4 RD |
19809 | SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19810 | PyObject *resultobj = 0; | |
19811 | wxDC *arg1 = (wxDC *) 0 ; | |
19812 | wxRect *arg2 = (wxRect *) NULL ; | |
19813 | SwigValueWrapper<wxBitmap > result; | |
19814 | void *argp1 = 0 ; | |
19815 | int res1 = 0 ; | |
19816 | void *argp2 = 0 ; | |
19817 | int res2 = 0 ; | |
19818 | PyObject * obj0 = 0 ; | |
19819 | PyObject * obj1 = 0 ; | |
19820 | char * kwnames[] = { | |
19821 | (char *) "self",(char *) "subrect", NULL | |
19822 | }; | |
19823 | ||
19824 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
19825 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19826 | if (!SWIG_IsOK(res1)) { | |
19827 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19828 | } | |
19829 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19830 | if (obj1) { | |
19831 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 ); | |
19832 | if (!SWIG_IsOK(res2)) { | |
19833 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'"); | |
19834 | } | |
19835 | arg2 = reinterpret_cast< wxRect * >(argp2); | |
19836 | } | |
19837 | { | |
19838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19839 | result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2); | |
19840 | wxPyEndAllowThreads(__tstate); | |
19841 | if (PyErr_Occurred()) SWIG_fail; | |
19842 | } | |
19843 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
19844 | return resultobj; | |
19845 | fail: | |
19846 | return NULL; | |
19847 | } | |
19848 | ||
19849 | ||
0085ce49 RD |
19850 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19851 | PyObject *resultobj = 0; | |
19852 | wxDC *arg1 = (wxDC *) 0 ; | |
19853 | int arg2 ; | |
19854 | int arg3 ; | |
19855 | int arg4 ; | |
19856 | int arg5 ; | |
19857 | void *argp1 = 0 ; | |
19858 | int res1 = 0 ; | |
19859 | int val2 ; | |
19860 | int ecode2 = 0 ; | |
19861 | int val3 ; | |
19862 | int ecode3 = 0 ; | |
19863 | int val4 ; | |
19864 | int ecode4 = 0 ; | |
19865 | int val5 ; | |
19866 | int ecode5 = 0 ; | |
19867 | PyObject * obj0 = 0 ; | |
19868 | PyObject * obj1 = 0 ; | |
19869 | PyObject * obj2 = 0 ; | |
19870 | PyObject * obj3 = 0 ; | |
19871 | PyObject * obj4 = 0 ; | |
19872 | char * kwnames[] = { | |
19873 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
19874 | }; | |
19875 | ||
19876 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19877 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19878 | if (!SWIG_IsOK(res1)) { | |
19879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19880 | } | |
19881 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19882 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19883 | if (!SWIG_IsOK(ecode2)) { | |
19884 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'"); | |
19885 | } | |
19886 | arg2 = static_cast< int >(val2); | |
19887 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19888 | if (!SWIG_IsOK(ecode3)) { | |
19889 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'"); | |
19890 | } | |
19891 | arg3 = static_cast< int >(val3); | |
19892 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19893 | if (!SWIG_IsOK(ecode4)) { | |
19894 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'"); | |
19895 | } | |
19896 | arg4 = static_cast< int >(val4); | |
19897 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19898 | if (!SWIG_IsOK(ecode5)) { | |
19899 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'"); | |
19900 | } | |
19901 | arg5 = static_cast< int >(val5); | |
19902 | { | |
19903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19904 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
19905 | wxPyEndAllowThreads(__tstate); | |
19906 | if (PyErr_Occurred()) SWIG_fail; | |
19907 | } | |
19908 | resultobj = SWIG_Py_Void(); | |
19909 | return resultobj; | |
19910 | fail: | |
19911 | return NULL; | |
19912 | } | |
19913 | ||
19914 | ||
19915 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19916 | PyObject *resultobj = 0; | |
19917 | wxDC *arg1 = (wxDC *) 0 ; | |
19918 | wxPoint *arg2 = 0 ; | |
19919 | wxSize *arg3 = 0 ; | |
19920 | void *argp1 = 0 ; | |
19921 | int res1 = 0 ; | |
19922 | wxPoint temp2 ; | |
19923 | wxSize temp3 ; | |
19924 | PyObject * obj0 = 0 ; | |
19925 | PyObject * obj1 = 0 ; | |
19926 | PyObject * obj2 = 0 ; | |
19927 | char * kwnames[] = { | |
19928 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
19929 | }; | |
19930 | ||
19931 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19932 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19933 | if (!SWIG_IsOK(res1)) { | |
19934 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19935 | } | |
19936 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19937 | { | |
19938 | arg2 = &temp2; | |
19939 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19940 | } | |
19941 | { | |
19942 | arg3 = &temp3; | |
19943 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19944 | } | |
19945 | { | |
19946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19947 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
19948 | wxPyEndAllowThreads(__tstate); | |
19949 | if (PyErr_Occurred()) SWIG_fail; | |
19950 | } | |
19951 | resultobj = SWIG_Py_Void(); | |
19952 | return resultobj; | |
19953 | fail: | |
19954 | return NULL; | |
19955 | } | |
19956 | ||
19957 | ||
19958 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19959 | PyObject *resultobj = 0; | |
19960 | wxDC *arg1 = (wxDC *) 0 ; | |
19961 | wxRegion *arg2 = 0 ; | |
19962 | void *argp1 = 0 ; | |
19963 | int res1 = 0 ; | |
19964 | void *argp2 = 0 ; | |
19965 | int res2 = 0 ; | |
19966 | PyObject * obj0 = 0 ; | |
19967 | PyObject * obj1 = 0 ; | |
19968 | char * kwnames[] = { | |
19969 | (char *) "self",(char *) "region", NULL | |
19970 | }; | |
19971 | ||
19972 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
19973 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19974 | if (!SWIG_IsOK(res1)) { | |
19975 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19976 | } | |
19977 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19978 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
19979 | if (!SWIG_IsOK(res2)) { | |
19980 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
19981 | } | |
19982 | if (!argp2) { | |
19983 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
19984 | } | |
19985 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
19986 | { | |
19987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19988 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
19989 | wxPyEndAllowThreads(__tstate); | |
19990 | if (PyErr_Occurred()) SWIG_fail; | |
19991 | } | |
19992 | resultobj = SWIG_Py_Void(); | |
19993 | return resultobj; | |
19994 | fail: | |
19995 | return NULL; | |
19996 | } | |
19997 | ||
19998 | ||
19999 | SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20000 | PyObject *resultobj = 0; | |
20001 | wxDC *arg1 = (wxDC *) 0 ; | |
20002 | wxRect *arg2 = 0 ; | |
20003 | void *argp1 = 0 ; | |
20004 | int res1 = 0 ; | |
20005 | wxRect temp2 ; | |
20006 | PyObject * obj0 = 0 ; | |
20007 | PyObject * obj1 = 0 ; | |
20008 | char * kwnames[] = { | |
20009 | (char *) "self",(char *) "rect", NULL | |
20010 | }; | |
20011 | ||
20012 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
20013 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20014 | if (!SWIG_IsOK(res1)) { | |
20015 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20016 | } | |
20017 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20018 | { | |
20019 | arg2 = &temp2; | |
20020 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
20021 | } | |
20022 | { | |
20023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20024 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
20025 | wxPyEndAllowThreads(__tstate); | |
20026 | if (PyErr_Occurred()) SWIG_fail; | |
20027 | } | |
20028 | resultobj = SWIG_Py_Void(); | |
20029 | return resultobj; | |
20030 | fail: | |
20031 | return NULL; | |
20032 | } | |
20033 | ||
20034 | ||
20035 | SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20036 | PyObject *resultobj = 0; | |
20037 | wxDC *arg1 = (wxDC *) 0 ; | |
20038 | int arg2 ; | |
20039 | wxPoint *arg3 = (wxPoint *) 0 ; | |
20040 | int arg4 = (int) 0 ; | |
20041 | int arg5 = (int) 0 ; | |
20042 | void *argp1 = 0 ; | |
20043 | int res1 = 0 ; | |
20044 | int val4 ; | |
20045 | int ecode4 = 0 ; | |
20046 | int val5 ; | |
20047 | int ecode5 = 0 ; | |
20048 | PyObject * obj0 = 0 ; | |
20049 | PyObject * obj1 = 0 ; | |
20050 | PyObject * obj2 = 0 ; | |
20051 | PyObject * obj3 = 0 ; | |
20052 | char * kwnames[] = { | |
20053 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
20054 | }; | |
20055 | ||
20056 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20057 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20058 | if (!SWIG_IsOK(res1)) { | |
20059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20060 | } | |
20061 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20062 | { | |
20063 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
20064 | if (arg3 == NULL) SWIG_fail; | |
20065 | } | |
20066 | if (obj2) { | |
20067 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
20068 | if (!SWIG_IsOK(ecode4)) { | |
20069 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
20070 | } | |
20071 | arg4 = static_cast< int >(val4); | |
20072 | } | |
20073 | if (obj3) { | |
20074 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
20075 | if (!SWIG_IsOK(ecode5)) { | |
20076 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
20077 | } | |
20078 | arg5 = static_cast< int >(val5); | |
20079 | } | |
20080 | { | |
20081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20082 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
20083 | wxPyEndAllowThreads(__tstate); | |
20084 | if (PyErr_Occurred()) SWIG_fail; | |
20085 | } | |
20086 | resultobj = SWIG_Py_Void(); | |
20087 | { | |
20088 | if (arg3) delete [] arg3; | |
20089 | } | |
20090 | return resultobj; | |
20091 | fail: | |
20092 | { | |
20093 | if (arg3) delete [] arg3; | |
20094 | } | |
20095 | return NULL; | |
20096 | } | |
20097 | ||
20098 | ||
20099 | SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20100 | PyObject *resultobj = 0; | |
20101 | wxDC *arg1 = (wxDC *) 0 ; | |
20102 | int arg2 ; | |
20103 | wxPoint *arg3 = (wxPoint *) 0 ; | |
20104 | int arg4 = (int) 0 ; | |
20105 | int arg5 = (int) 0 ; | |
20106 | int arg6 = (int) wxODDEVEN_RULE ; | |
20107 | void *argp1 = 0 ; | |
20108 | int res1 = 0 ; | |
20109 | int val4 ; | |
20110 | int ecode4 = 0 ; | |
20111 | int val5 ; | |
20112 | int ecode5 = 0 ; | |
20113 | int val6 ; | |
20114 | int ecode6 = 0 ; | |
20115 | PyObject * obj0 = 0 ; | |
20116 | PyObject * obj1 = 0 ; | |
20117 | PyObject * obj2 = 0 ; | |
20118 | PyObject * obj3 = 0 ; | |
20119 | PyObject * obj4 = 0 ; | |
20120 | char * kwnames[] = { | |
20121 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
20122 | }; | |
20123 | ||
20124 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20125 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20126 | if (!SWIG_IsOK(res1)) { | |
20127 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20128 | } | |
20129 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20130 | { | |
20131 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
20132 | if (arg3 == NULL) SWIG_fail; | |
20133 | } | |
20134 | if (obj2) { | |
20135 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
20136 | if (!SWIG_IsOK(ecode4)) { | |
20137 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
20138 | } | |
20139 | arg4 = static_cast< int >(val4); | |
20140 | } | |
20141 | if (obj3) { | |
20142 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
20143 | if (!SWIG_IsOK(ecode5)) { | |
20144 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
20145 | } | |
20146 | arg5 = static_cast< int >(val5); | |
20147 | } | |
20148 | if (obj4) { | |
20149 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
20150 | if (!SWIG_IsOK(ecode6)) { | |
20151 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
20152 | } | |
20153 | arg6 = static_cast< int >(val6); | |
20154 | } | |
20155 | { | |
20156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20157 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
20158 | wxPyEndAllowThreads(__tstate); | |
20159 | if (PyErr_Occurred()) SWIG_fail; | |
20160 | } | |
20161 | resultobj = SWIG_Py_Void(); | |
20162 | { | |
20163 | if (arg3) delete [] arg3; | |
20164 | } | |
20165 | return resultobj; | |
20166 | fail: | |
20167 | { | |
20168 | if (arg3) delete [] arg3; | |
20169 | } | |
20170 | return NULL; | |
20171 | } | |
20172 | ||
20173 | ||
20174 | SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20175 | PyObject *resultobj = 0; | |
20176 | wxDC *arg1 = (wxDC *) 0 ; | |
20177 | wxString *arg2 = 0 ; | |
20178 | wxRect *arg3 = 0 ; | |
20179 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
20180 | int arg5 = (int) -1 ; | |
20181 | void *argp1 = 0 ; | |
20182 | int res1 = 0 ; | |
20183 | bool temp2 = false ; | |
20184 | wxRect temp3 ; | |
20185 | int val4 ; | |
20186 | int ecode4 = 0 ; | |
20187 | int val5 ; | |
20188 | int ecode5 = 0 ; | |
20189 | PyObject * obj0 = 0 ; | |
20190 | PyObject * obj1 = 0 ; | |
20191 | PyObject * obj2 = 0 ; | |
20192 | PyObject * obj3 = 0 ; | |
20193 | PyObject * obj4 = 0 ; | |
20194 | char * kwnames[] = { | |
20195 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
20196 | }; | |
20197 | ||
20198 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20199 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20200 | if (!SWIG_IsOK(res1)) { | |
20201 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20202 | } | |
20203 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20204 | { | |
20205 | arg2 = wxString_in_helper(obj1); | |
20206 | if (arg2 == NULL) SWIG_fail; | |
20207 | temp2 = true; | |
20208 | } | |
20209 | { | |
20210 | arg3 = &temp3; | |
20211 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
20212 | } | |
20213 | if (obj3) { | |
20214 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20215 | if (!SWIG_IsOK(ecode4)) { | |
20216 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
20217 | } | |
20218 | arg4 = static_cast< int >(val4); | |
20219 | } | |
20220 | if (obj4) { | |
20221 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20222 | if (!SWIG_IsOK(ecode5)) { | |
20223 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
20224 | } | |
20225 | arg5 = static_cast< int >(val5); | |
20226 | } | |
20227 | { | |
20228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20229 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
20230 | wxPyEndAllowThreads(__tstate); | |
20231 | if (PyErr_Occurred()) SWIG_fail; | |
20232 | } | |
20233 | resultobj = SWIG_Py_Void(); | |
20234 | { | |
20235 | if (temp2) | |
20236 | delete arg2; | |
20237 | } | |
20238 | return resultobj; | |
20239 | fail: | |
20240 | { | |
20241 | if (temp2) | |
20242 | delete arg2; | |
20243 | } | |
20244 | return NULL; | |
20245 | } | |
20246 | ||
20247 | ||
20248 | SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20249 | PyObject *resultobj = 0; | |
20250 | wxDC *arg1 = (wxDC *) 0 ; | |
20251 | wxString *arg2 = 0 ; | |
20252 | wxBitmap *arg3 = 0 ; | |
20253 | wxRect *arg4 = 0 ; | |
20254 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
20255 | int arg6 = (int) -1 ; | |
20256 | wxRect result; | |
20257 | void *argp1 = 0 ; | |
20258 | int res1 = 0 ; | |
20259 | bool temp2 = false ; | |
20260 | void *argp3 = 0 ; | |
20261 | int res3 = 0 ; | |
20262 | wxRect temp4 ; | |
20263 | int val5 ; | |
20264 | int ecode5 = 0 ; | |
20265 | int val6 ; | |
20266 | int ecode6 = 0 ; | |
20267 | PyObject * obj0 = 0 ; | |
20268 | PyObject * obj1 = 0 ; | |
20269 | PyObject * obj2 = 0 ; | |
20270 | PyObject * obj3 = 0 ; | |
20271 | PyObject * obj4 = 0 ; | |
20272 | PyObject * obj5 = 0 ; | |
20273 | char * kwnames[] = { | |
20274 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
20275 | }; | |
20276 | ||
20277 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
20278 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20279 | if (!SWIG_IsOK(res1)) { | |
20280 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20281 | } | |
20282 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20283 | { | |
20284 | arg2 = wxString_in_helper(obj1); | |
20285 | if (arg2 == NULL) SWIG_fail; | |
20286 | temp2 = true; | |
20287 | } | |
20288 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
20289 | if (!SWIG_IsOK(res3)) { | |
20290 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
20291 | } | |
20292 | if (!argp3) { | |
20293 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
20294 | } | |
20295 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
20296 | { | |
20297 | arg4 = &temp4; | |
20298 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
20299 | } | |
20300 | if (obj4) { | |
20301 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20302 | if (!SWIG_IsOK(ecode5)) { | |
20303 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
20304 | } | |
20305 | arg5 = static_cast< int >(val5); | |
20306 | } | |
20307 | if (obj5) { | |
20308 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
20309 | if (!SWIG_IsOK(ecode6)) { | |
20310 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
20311 | } | |
20312 | arg6 = static_cast< int >(val6); | |
20313 | } | |
20314 | { | |
20315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20316 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
20317 | wxPyEndAllowThreads(__tstate); | |
20318 | if (PyErr_Occurred()) SWIG_fail; | |
20319 | } | |
20320 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
20321 | { | |
20322 | if (temp2) | |
20323 | delete arg2; | |
20324 | } | |
20325 | return resultobj; | |
20326 | fail: | |
20327 | { | |
20328 | if (temp2) | |
20329 | delete arg2; | |
20330 | } | |
20331 | return NULL; | |
20332 | } | |
20333 | ||
20334 | ||
20335 | SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20336 | PyObject *resultobj = 0; | |
20337 | wxDC *arg1 = (wxDC *) 0 ; | |
20338 | int arg2 ; | |
20339 | wxPoint *arg3 = (wxPoint *) 0 ; | |
20340 | void *argp1 = 0 ; | |
20341 | int res1 = 0 ; | |
20342 | PyObject * obj0 = 0 ; | |
20343 | PyObject * obj1 = 0 ; | |
20344 | char * kwnames[] = { | |
20345 | (char *) "self",(char *) "points", NULL | |
20346 | }; | |
20347 | ||
20348 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
20349 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20350 | if (!SWIG_IsOK(res1)) { | |
20351 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20352 | } | |
20353 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20354 | { | |
20355 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
20356 | if (arg3 == NULL) SWIG_fail; | |
20357 | } | |
20358 | { | |
20359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20360 | (arg1)->DrawSpline(arg2,arg3); | |
20361 | wxPyEndAllowThreads(__tstate); | |
20362 | if (PyErr_Occurred()) SWIG_fail; | |
20363 | } | |
20364 | resultobj = SWIG_Py_Void(); | |
20365 | { | |
20366 | if (arg3) delete [] arg3; | |
20367 | } | |
20368 | return resultobj; | |
20369 | fail: | |
20370 | { | |
20371 | if (arg3) delete [] arg3; | |
20372 | } | |
20373 | return NULL; | |
20374 | } | |
20375 | ||
20376 | ||
20377 | SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20378 | PyObject *resultobj = 0; | |
20379 | wxDC *arg1 = (wxDC *) 0 ; | |
20380 | void *argp1 = 0 ; | |
20381 | int res1 = 0 ; | |
20382 | PyObject *swig_obj[1] ; | |
20383 | ||
20384 | if (!args) SWIG_fail; | |
20385 | swig_obj[0] = args; | |
20386 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20387 | if (!SWIG_IsOK(res1)) { | |
20388 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20389 | } | |
20390 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20391 | { | |
20392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20393 | (arg1)->Clear(); | |
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_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20405 | PyObject *resultobj = 0; | |
20406 | wxDC *arg1 = (wxDC *) 0 ; | |
20407 | wxString *arg2 = 0 ; | |
20408 | bool result; | |
20409 | void *argp1 = 0 ; | |
20410 | int res1 = 0 ; | |
20411 | bool temp2 = false ; | |
20412 | PyObject * obj0 = 0 ; | |
20413 | PyObject * obj1 = 0 ; | |
20414 | char * kwnames[] = { | |
20415 | (char *) "self",(char *) "message", NULL | |
20416 | }; | |
20417 | ||
20418 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",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_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20422 | } | |
20423 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20424 | { | |
20425 | arg2 = wxString_in_helper(obj1); | |
20426 | if (arg2 == NULL) SWIG_fail; | |
20427 | temp2 = true; | |
20428 | } | |
20429 | { | |
20430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20431 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
20432 | wxPyEndAllowThreads(__tstate); | |
20433 | if (PyErr_Occurred()) SWIG_fail; | |
20434 | } | |
20435 | { | |
20436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20437 | } | |
20438 | { | |
20439 | if (temp2) | |
20440 | delete arg2; | |
20441 | } | |
20442 | return resultobj; | |
20443 | fail: | |
20444 | { | |
20445 | if (temp2) | |
20446 | delete arg2; | |
20447 | } | |
20448 | return NULL; | |
20449 | } | |
20450 | ||
20451 | ||
20452 | SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20453 | PyObject *resultobj = 0; | |
20454 | wxDC *arg1 = (wxDC *) 0 ; | |
20455 | void *argp1 = 0 ; | |
20456 | int res1 = 0 ; | |
20457 | PyObject *swig_obj[1] ; | |
20458 | ||
20459 | if (!args) SWIG_fail; | |
20460 | swig_obj[0] = args; | |
20461 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20462 | if (!SWIG_IsOK(res1)) { | |
20463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20464 | } | |
20465 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20466 | { | |
20467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20468 | (arg1)->EndDoc(); | |
20469 | wxPyEndAllowThreads(__tstate); | |
20470 | if (PyErr_Occurred()) SWIG_fail; | |
20471 | } | |
20472 | resultobj = SWIG_Py_Void(); | |
20473 | return resultobj; | |
20474 | fail: | |
20475 | return NULL; | |
20476 | } | |
20477 | ||
20478 | ||
20479 | SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20480 | PyObject *resultobj = 0; | |
20481 | wxDC *arg1 = (wxDC *) 0 ; | |
20482 | void *argp1 = 0 ; | |
20483 | int res1 = 0 ; | |
20484 | PyObject *swig_obj[1] ; | |
20485 | ||
20486 | if (!args) SWIG_fail; | |
20487 | swig_obj[0] = args; | |
20488 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20489 | if (!SWIG_IsOK(res1)) { | |
20490 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20491 | } | |
20492 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20493 | { | |
20494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20495 | (arg1)->StartPage(); | |
20496 | wxPyEndAllowThreads(__tstate); | |
20497 | if (PyErr_Occurred()) SWIG_fail; | |
20498 | } | |
20499 | resultobj = SWIG_Py_Void(); | |
20500 | return resultobj; | |
20501 | fail: | |
20502 | return NULL; | |
20503 | } | |
20504 | ||
20505 | ||
20506 | SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20507 | PyObject *resultobj = 0; | |
20508 | wxDC *arg1 = (wxDC *) 0 ; | |
20509 | void *argp1 = 0 ; | |
20510 | int res1 = 0 ; | |
20511 | PyObject *swig_obj[1] ; | |
20512 | ||
20513 | if (!args) SWIG_fail; | |
20514 | swig_obj[0] = args; | |
20515 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20516 | if (!SWIG_IsOK(res1)) { | |
20517 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20518 | } | |
20519 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20520 | { | |
20521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20522 | (arg1)->EndPage(); | |
20523 | wxPyEndAllowThreads(__tstate); | |
20524 | if (PyErr_Occurred()) SWIG_fail; | |
20525 | } | |
20526 | resultobj = SWIG_Py_Void(); | |
20527 | return resultobj; | |
20528 | fail: | |
20529 | return NULL; | |
20530 | } | |
20531 | ||
20532 | ||
20533 | SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20534 | PyObject *resultobj = 0; | |
20535 | wxDC *arg1 = (wxDC *) 0 ; | |
20536 | wxFont *arg2 = 0 ; | |
20537 | void *argp1 = 0 ; | |
20538 | int res1 = 0 ; | |
20539 | void *argp2 = 0 ; | |
20540 | int res2 = 0 ; | |
20541 | PyObject * obj0 = 0 ; | |
20542 | PyObject * obj1 = 0 ; | |
20543 | char * kwnames[] = { | |
20544 | (char *) "self",(char *) "font", NULL | |
20545 | }; | |
20546 | ||
20547 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
20548 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20549 | if (!SWIG_IsOK(res1)) { | |
20550 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20551 | } | |
20552 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20553 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
20554 | if (!SWIG_IsOK(res2)) { | |
20555 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
20556 | } | |
20557 | if (!argp2) { | |
20558 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
20559 | } | |
20560 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
20561 | { | |
20562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20563 | (arg1)->SetFont((wxFont const &)*arg2); | |
20564 | wxPyEndAllowThreads(__tstate); | |
20565 | if (PyErr_Occurred()) SWIG_fail; | |
20566 | } | |
20567 | resultobj = SWIG_Py_Void(); | |
20568 | return resultobj; | |
20569 | fail: | |
20570 | return NULL; | |
20571 | } | |
20572 | ||
20573 | ||
20574 | SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20575 | PyObject *resultobj = 0; | |
20576 | wxDC *arg1 = (wxDC *) 0 ; | |
20577 | wxPen *arg2 = 0 ; | |
20578 | void *argp1 = 0 ; | |
20579 | int res1 = 0 ; | |
20580 | void *argp2 = 0 ; | |
20581 | int res2 = 0 ; | |
20582 | PyObject * obj0 = 0 ; | |
20583 | PyObject * obj1 = 0 ; | |
20584 | char * kwnames[] = { | |
20585 | (char *) "self",(char *) "pen", NULL | |
20586 | }; | |
20587 | ||
20588 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
20589 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20590 | if (!SWIG_IsOK(res1)) { | |
20591 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20592 | } | |
20593 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20594 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
20595 | if (!SWIG_IsOK(res2)) { | |
20596 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
20597 | } | |
20598 | if (!argp2) { | |
20599 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
20600 | } | |
20601 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
20602 | { | |
20603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20604 | (arg1)->SetPen((wxPen const &)*arg2); | |
20605 | wxPyEndAllowThreads(__tstate); | |
20606 | if (PyErr_Occurred()) SWIG_fail; | |
20607 | } | |
20608 | resultobj = SWIG_Py_Void(); | |
20609 | return resultobj; | |
20610 | fail: | |
20611 | return NULL; | |
20612 | } | |
20613 | ||
20614 | ||
20615 | SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20616 | PyObject *resultobj = 0; | |
20617 | wxDC *arg1 = (wxDC *) 0 ; | |
20618 | wxBrush *arg2 = 0 ; | |
20619 | void *argp1 = 0 ; | |
20620 | int res1 = 0 ; | |
20621 | void *argp2 = 0 ; | |
20622 | int res2 = 0 ; | |
20623 | PyObject * obj0 = 0 ; | |
20624 | PyObject * obj1 = 0 ; | |
20625 | char * kwnames[] = { | |
20626 | (char *) "self",(char *) "brush", NULL | |
20627 | }; | |
20628 | ||
20629 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
20630 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20631 | if (!SWIG_IsOK(res1)) { | |
20632 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20633 | } | |
20634 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20635 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
20636 | if (!SWIG_IsOK(res2)) { | |
20637 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20638 | } | |
20639 | if (!argp2) { | |
20640 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20641 | } | |
20642 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
20643 | { | |
20644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20645 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
20646 | wxPyEndAllowThreads(__tstate); | |
20647 | if (PyErr_Occurred()) SWIG_fail; | |
20648 | } | |
20649 | resultobj = SWIG_Py_Void(); | |
20650 | return resultobj; | |
20651 | fail: | |
20652 | return NULL; | |
20653 | } | |
20654 | ||
20655 | ||
20656 | SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20657 | PyObject *resultobj = 0; | |
20658 | wxDC *arg1 = (wxDC *) 0 ; | |
20659 | wxBrush *arg2 = 0 ; | |
20660 | void *argp1 = 0 ; | |
20661 | int res1 = 0 ; | |
20662 | void *argp2 = 0 ; | |
20663 | int res2 = 0 ; | |
20664 | PyObject * obj0 = 0 ; | |
20665 | PyObject * obj1 = 0 ; | |
20666 | char * kwnames[] = { | |
20667 | (char *) "self",(char *) "brush", NULL | |
20668 | }; | |
20669 | ||
20670 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
20671 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20672 | if (!SWIG_IsOK(res1)) { | |
20673 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20674 | } | |
20675 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20676 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
20677 | if (!SWIG_IsOK(res2)) { | |
20678 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20679 | } | |
20680 | if (!argp2) { | |
20681 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20682 | } | |
20683 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
20684 | { | |
20685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20686 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
20687 | wxPyEndAllowThreads(__tstate); | |
20688 | if (PyErr_Occurred()) SWIG_fail; | |
20689 | } | |
20690 | resultobj = SWIG_Py_Void(); | |
20691 | return resultobj; | |
20692 | fail: | |
20693 | return NULL; | |
20694 | } | |
20695 | ||
20696 | ||
20697 | SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20698 | PyObject *resultobj = 0; | |
20699 | wxDC *arg1 = (wxDC *) 0 ; | |
20700 | int arg2 ; | |
20701 | void *argp1 = 0 ; | |
20702 | int res1 = 0 ; | |
20703 | int val2 ; | |
20704 | int ecode2 = 0 ; | |
20705 | PyObject * obj0 = 0 ; | |
20706 | PyObject * obj1 = 0 ; | |
20707 | char * kwnames[] = { | |
20708 | (char *) "self",(char *) "mode", NULL | |
20709 | }; | |
20710 | ||
20711 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
20712 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20713 | if (!SWIG_IsOK(res1)) { | |
20714 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20715 | } | |
20716 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20717 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20718 | if (!SWIG_IsOK(ecode2)) { | |
20719 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
20720 | } | |
20721 | arg2 = static_cast< int >(val2); | |
20722 | { | |
20723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20724 | (arg1)->SetBackgroundMode(arg2); | |
20725 | wxPyEndAllowThreads(__tstate); | |
20726 | if (PyErr_Occurred()) SWIG_fail; | |
20727 | } | |
20728 | resultobj = SWIG_Py_Void(); | |
20729 | return resultobj; | |
20730 | fail: | |
20731 | return NULL; | |
20732 | } | |
20733 | ||
20734 | ||
20735 | SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20736 | PyObject *resultobj = 0; | |
20737 | wxDC *arg1 = (wxDC *) 0 ; | |
20738 | wxPalette *arg2 = 0 ; | |
20739 | void *argp1 = 0 ; | |
20740 | int res1 = 0 ; | |
20741 | void *argp2 = 0 ; | |
20742 | int res2 = 0 ; | |
20743 | PyObject * obj0 = 0 ; | |
20744 | PyObject * obj1 = 0 ; | |
20745 | char * kwnames[] = { | |
20746 | (char *) "self",(char *) "palette", NULL | |
20747 | }; | |
20748 | ||
20749 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
20750 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20751 | if (!SWIG_IsOK(res1)) { | |
20752 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20753 | } | |
20754 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20755 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
20756 | if (!SWIG_IsOK(res2)) { | |
20757 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
20758 | } | |
20759 | if (!argp2) { | |
20760 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
20761 | } | |
20762 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
20763 | { | |
20764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20765 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
20766 | wxPyEndAllowThreads(__tstate); | |
20767 | if (PyErr_Occurred()) SWIG_fail; | |
20768 | } | |
20769 | resultobj = SWIG_Py_Void(); | |
20770 | return resultobj; | |
20771 | fail: | |
20772 | return NULL; | |
20773 | } | |
20774 | ||
20775 | ||
20776 | SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20777 | PyObject *resultobj = 0; | |
20778 | wxDC *arg1 = (wxDC *) 0 ; | |
20779 | void *argp1 = 0 ; | |
20780 | int res1 = 0 ; | |
20781 | PyObject *swig_obj[1] ; | |
20782 | ||
20783 | if (!args) SWIG_fail; | |
20784 | swig_obj[0] = args; | |
20785 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20786 | if (!SWIG_IsOK(res1)) { | |
20787 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20788 | } | |
20789 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20790 | { | |
20791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20792 | (arg1)->DestroyClippingRegion(); | |
20793 | wxPyEndAllowThreads(__tstate); | |
20794 | if (PyErr_Occurred()) SWIG_fail; | |
20795 | } | |
20796 | resultobj = SWIG_Py_Void(); | |
20797 | return resultobj; | |
20798 | fail: | |
20799 | return NULL; | |
20800 | } | |
20801 | ||
20802 | ||
20803 | SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20804 | PyObject *resultobj = 0; | |
20805 | wxDC *arg1 = (wxDC *) 0 ; | |
20806 | int *arg2 = (int *) 0 ; | |
20807 | int *arg3 = (int *) 0 ; | |
20808 | int *arg4 = (int *) 0 ; | |
20809 | int *arg5 = (int *) 0 ; | |
20810 | void *argp1 = 0 ; | |
20811 | int res1 = 0 ; | |
20812 | int temp2 ; | |
20813 | int res2 = SWIG_TMPOBJ ; | |
20814 | int temp3 ; | |
20815 | int res3 = SWIG_TMPOBJ ; | |
20816 | int temp4 ; | |
20817 | int res4 = SWIG_TMPOBJ ; | |
20818 | int temp5 ; | |
20819 | int res5 = SWIG_TMPOBJ ; | |
20820 | PyObject *swig_obj[1] ; | |
20821 | ||
20822 | arg2 = &temp2; | |
20823 | arg3 = &temp3; | |
20824 | arg4 = &temp4; | |
20825 | arg5 = &temp5; | |
20826 | if (!args) SWIG_fail; | |
20827 | swig_obj[0] = args; | |
20828 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20829 | if (!SWIG_IsOK(res1)) { | |
20830 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20831 | } | |
20832 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20833 | { | |
20834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20835 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
20836 | wxPyEndAllowThreads(__tstate); | |
20837 | if (PyErr_Occurred()) SWIG_fail; | |
20838 | } | |
20839 | resultobj = SWIG_Py_Void(); | |
20840 | if (SWIG_IsTmpObj(res2)) { | |
20841 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
20842 | } else { | |
20843 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20844 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
20845 | } | |
20846 | if (SWIG_IsTmpObj(res3)) { | |
20847 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
20848 | } else { | |
20849 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20850 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
20851 | } | |
20852 | if (SWIG_IsTmpObj(res4)) { | |
20853 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
20854 | } else { | |
20855 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20856 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
20857 | } | |
20858 | if (SWIG_IsTmpObj(res5)) { | |
20859 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
20860 | } else { | |
20861 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20862 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
20863 | } | |
20864 | return resultobj; | |
20865 | fail: | |
20866 | return NULL; | |
20867 | } | |
20868 | ||
20869 | ||
20870 | SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20871 | PyObject *resultobj = 0; | |
20872 | wxDC *arg1 = (wxDC *) 0 ; | |
20873 | wxRect result; | |
20874 | void *argp1 = 0 ; | |
20875 | int res1 = 0 ; | |
20876 | PyObject *swig_obj[1] ; | |
20877 | ||
20878 | if (!args) SWIG_fail; | |
20879 | swig_obj[0] = args; | |
20880 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20881 | if (!SWIG_IsOK(res1)) { | |
20882 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20883 | } | |
20884 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20885 | { | |
20886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20887 | result = wxDC_GetClippingRect(arg1); | |
20888 | wxPyEndAllowThreads(__tstate); | |
20889 | if (PyErr_Occurred()) SWIG_fail; | |
20890 | } | |
20891 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
20892 | return resultobj; | |
20893 | fail: | |
20894 | return NULL; | |
20895 | } | |
20896 | ||
20897 | ||
20898 | SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20899 | PyObject *resultobj = 0; | |
20900 | wxDC *arg1 = (wxDC *) 0 ; | |
20901 | int result; | |
20902 | void *argp1 = 0 ; | |
20903 | int res1 = 0 ; | |
20904 | PyObject *swig_obj[1] ; | |
20905 | ||
20906 | if (!args) SWIG_fail; | |
20907 | swig_obj[0] = args; | |
20908 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20909 | if (!SWIG_IsOK(res1)) { | |
20910 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20911 | } | |
20912 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20913 | { | |
20914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20915 | result = (int)((wxDC const *)arg1)->GetCharHeight(); | |
20916 | wxPyEndAllowThreads(__tstate); | |
20917 | if (PyErr_Occurred()) SWIG_fail; | |
20918 | } | |
20919 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20920 | return resultobj; | |
20921 | fail: | |
20922 | return NULL; | |
20923 | } | |
20924 | ||
20925 | ||
20926 | SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20927 | PyObject *resultobj = 0; | |
20928 | wxDC *arg1 = (wxDC *) 0 ; | |
20929 | int result; | |
20930 | void *argp1 = 0 ; | |
20931 | int res1 = 0 ; | |
20932 | PyObject *swig_obj[1] ; | |
20933 | ||
20934 | if (!args) SWIG_fail; | |
20935 | swig_obj[0] = args; | |
20936 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20937 | if (!SWIG_IsOK(res1)) { | |
20938 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20939 | } | |
20940 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20941 | { | |
20942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20943 | result = (int)((wxDC const *)arg1)->GetCharWidth(); | |
20944 | wxPyEndAllowThreads(__tstate); | |
20945 | if (PyErr_Occurred()) SWIG_fail; | |
20946 | } | |
20947 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20948 | return resultobj; | |
20949 | fail: | |
20950 | return NULL; | |
20951 | } | |
20952 | ||
20953 | ||
20954 | SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20955 | PyObject *resultobj = 0; | |
20956 | wxDC *arg1 = (wxDC *) 0 ; | |
20957 | wxString *arg2 = 0 ; | |
20958 | int *arg3 = (int *) 0 ; | |
20959 | int *arg4 = (int *) 0 ; | |
20960 | void *argp1 = 0 ; | |
20961 | int res1 = 0 ; | |
20962 | bool temp2 = false ; | |
20963 | int temp3 ; | |
20964 | int res3 = SWIG_TMPOBJ ; | |
20965 | int temp4 ; | |
20966 | int res4 = SWIG_TMPOBJ ; | |
20967 | PyObject * obj0 = 0 ; | |
20968 | PyObject * obj1 = 0 ; | |
20969 | char * kwnames[] = { | |
20970 | (char *) "self",(char *) "string", NULL | |
20971 | }; | |
20972 | ||
20973 | arg3 = &temp3; | |
20974 | arg4 = &temp4; | |
20975 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; | |
20976 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20977 | if (!SWIG_IsOK(res1)) { | |
20978 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20979 | } | |
20980 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20981 | { | |
20982 | arg2 = wxString_in_helper(obj1); | |
20983 | if (arg2 == NULL) SWIG_fail; | |
20984 | temp2 = true; | |
20985 | } | |
20986 | { | |
20987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20988 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
20989 | wxPyEndAllowThreads(__tstate); | |
20990 | if (PyErr_Occurred()) SWIG_fail; | |
20991 | } | |
20992 | resultobj = SWIG_Py_Void(); | |
20993 | if (SWIG_IsTmpObj(res3)) { | |
20994 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
20995 | } else { | |
20996 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20997 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
20998 | } | |
20999 | if (SWIG_IsTmpObj(res4)) { | |
21000 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21001 | } else { | |
21002 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21003 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21004 | } | |
21005 | { | |
21006 | if (temp2) | |
21007 | delete arg2; | |
21008 | } | |
21009 | return resultobj; | |
21010 | fail: | |
21011 | { | |
21012 | if (temp2) | |
21013 | delete arg2; | |
21014 | } | |
21015 | return NULL; | |
21016 | } | |
21017 | ||
21018 | ||
21019 | SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21020 | PyObject *resultobj = 0; | |
21021 | wxDC *arg1 = (wxDC *) 0 ; | |
21022 | wxString *arg2 = 0 ; | |
21023 | int *arg3 = (int *) 0 ; | |
21024 | int *arg4 = (int *) 0 ; | |
21025 | int *arg5 = (int *) 0 ; | |
21026 | int *arg6 = (int *) 0 ; | |
21027 | wxFont *arg7 = (wxFont *) NULL ; | |
21028 | void *argp1 = 0 ; | |
21029 | int res1 = 0 ; | |
21030 | bool temp2 = false ; | |
21031 | int temp3 ; | |
21032 | int res3 = SWIG_TMPOBJ ; | |
21033 | int temp4 ; | |
21034 | int res4 = SWIG_TMPOBJ ; | |
21035 | int temp5 ; | |
21036 | int res5 = SWIG_TMPOBJ ; | |
21037 | int temp6 ; | |
21038 | int res6 = SWIG_TMPOBJ ; | |
21039 | void *argp7 = 0 ; | |
21040 | int res7 = 0 ; | |
21041 | PyObject * obj0 = 0 ; | |
21042 | PyObject * obj1 = 0 ; | |
21043 | PyObject * obj2 = 0 ; | |
21044 | char * kwnames[] = { | |
21045 | (char *) "self",(char *) "string",(char *) "font", NULL | |
21046 | }; | |
21047 | ||
21048 | arg3 = &temp3; | |
21049 | arg4 = &temp4; | |
21050 | arg5 = &temp5; | |
21051 | arg6 = &temp6; | |
21052 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21053 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21054 | if (!SWIG_IsOK(res1)) { | |
21055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21056 | } | |
21057 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21058 | { | |
21059 | arg2 = wxString_in_helper(obj1); | |
21060 | if (arg2 == NULL) SWIG_fail; | |
21061 | temp2 = true; | |
21062 | } | |
21063 | if (obj2) { | |
21064 | res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 ); | |
21065 | if (!SWIG_IsOK(res7)) { | |
21066 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'"); | |
093d3ff1 | 21067 | } |
0085ce49 RD |
21068 | arg7 = reinterpret_cast< wxFont * >(argp7); |
21069 | } | |
21070 | { | |
21071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21072 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
21073 | wxPyEndAllowThreads(__tstate); | |
21074 | if (PyErr_Occurred()) SWIG_fail; | |
21075 | } | |
21076 | resultobj = SWIG_Py_Void(); | |
21077 | if (SWIG_IsTmpObj(res3)) { | |
21078 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21079 | } else { | |
21080 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21081 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21082 | } | |
21083 | if (SWIG_IsTmpObj(res4)) { | |
21084 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21085 | } else { | |
21086 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21087 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21088 | } | |
21089 | if (SWIG_IsTmpObj(res5)) { | |
21090 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
21091 | } else { | |
21092 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21093 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
21094 | } | |
21095 | if (SWIG_IsTmpObj(res6)) { | |
21096 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6))); | |
21097 | } else { | |
21098 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21099 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags)); | |
21100 | } | |
21101 | { | |
21102 | if (temp2) | |
21103 | delete arg2; | |
21104 | } | |
21105 | return resultobj; | |
21106 | fail: | |
21107 | { | |
21108 | if (temp2) | |
21109 | delete arg2; | |
21110 | } | |
21111 | return NULL; | |
21112 | } | |
21113 | ||
21114 | ||
21115 | SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21116 | PyObject *resultobj = 0; | |
21117 | wxDC *arg1 = (wxDC *) 0 ; | |
21118 | wxString *arg2 = 0 ; | |
21119 | int *arg3 = (int *) 0 ; | |
21120 | int *arg4 = (int *) 0 ; | |
21121 | int *arg5 = (int *) 0 ; | |
21122 | wxFont *arg6 = (wxFont *) NULL ; | |
21123 | void *argp1 = 0 ; | |
21124 | int res1 = 0 ; | |
21125 | bool temp2 = false ; | |
21126 | int temp3 ; | |
21127 | int res3 = SWIG_TMPOBJ ; | |
21128 | int temp4 ; | |
21129 | int res4 = SWIG_TMPOBJ ; | |
21130 | int temp5 ; | |
21131 | int res5 = SWIG_TMPOBJ ; | |
21132 | void *argp6 = 0 ; | |
21133 | int res6 = 0 ; | |
21134 | PyObject * obj0 = 0 ; | |
21135 | PyObject * obj1 = 0 ; | |
21136 | PyObject * obj2 = 0 ; | |
21137 | char * kwnames[] = { | |
21138 | (char *) "self",(char *) "text",(char *) "font", NULL | |
21139 | }; | |
21140 | ||
21141 | arg3 = &temp3; | |
21142 | arg4 = &temp4; | |
21143 | arg5 = &temp5; | |
21144 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21145 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21146 | if (!SWIG_IsOK(res1)) { | |
21147 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21148 | } | |
21149 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21150 | { | |
21151 | arg2 = wxString_in_helper(obj1); | |
21152 | if (arg2 == NULL) SWIG_fail; | |
21153 | temp2 = true; | |
21154 | } | |
21155 | if (obj2) { | |
21156 | res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 ); | |
21157 | if (!SWIG_IsOK(res6)) { | |
21158 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'"); | |
093d3ff1 | 21159 | } |
0085ce49 RD |
21160 | arg6 = reinterpret_cast< wxFont * >(argp6); |
21161 | } | |
21162 | { | |
21163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21164 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
21165 | wxPyEndAllowThreads(__tstate); | |
21166 | if (PyErr_Occurred()) SWIG_fail; | |
21167 | } | |
21168 | resultobj = SWIG_Py_Void(); | |
21169 | if (SWIG_IsTmpObj(res3)) { | |
21170 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21171 | } else { | |
21172 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21173 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21174 | } | |
21175 | if (SWIG_IsTmpObj(res4)) { | |
21176 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21177 | } else { | |
21178 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21179 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21180 | } | |
21181 | if (SWIG_IsTmpObj(res5)) { | |
21182 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
21183 | } else { | |
21184 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21185 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
21186 | } | |
21187 | { | |
21188 | if (temp2) | |
21189 | delete arg2; | |
21190 | } | |
21191 | return resultobj; | |
21192 | fail: | |
21193 | { | |
21194 | if (temp2) | |
21195 | delete arg2; | |
21196 | } | |
21197 | return NULL; | |
21198 | } | |
21199 | ||
21200 | ||
21201 | SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21202 | PyObject *resultobj = 0; | |
21203 | wxDC *arg1 = (wxDC *) 0 ; | |
21204 | wxString *arg2 = 0 ; | |
21205 | wxArrayInt result; | |
21206 | void *argp1 = 0 ; | |
21207 | int res1 = 0 ; | |
21208 | bool temp2 = false ; | |
21209 | PyObject * obj0 = 0 ; | |
21210 | PyObject * obj1 = 0 ; | |
21211 | char * kwnames[] = { | |
21212 | (char *) "self",(char *) "text", NULL | |
21213 | }; | |
21214 | ||
21215 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; | |
21216 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21217 | if (!SWIG_IsOK(res1)) { | |
21218 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21219 | } | |
21220 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21221 | { | |
21222 | arg2 = wxString_in_helper(obj1); | |
21223 | if (arg2 == NULL) SWIG_fail; | |
21224 | temp2 = true; | |
21225 | } | |
21226 | { | |
21227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21228 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
21229 | wxPyEndAllowThreads(__tstate); | |
21230 | if (PyErr_Occurred()) SWIG_fail; | |
21231 | } | |
21232 | { | |
b39fe951 | 21233 | resultobj = wxArrayInt2PyList_helper(result); |
0085ce49 RD |
21234 | } |
21235 | { | |
21236 | if (temp2) | |
21237 | delete arg2; | |
21238 | } | |
21239 | return resultobj; | |
21240 | fail: | |
21241 | { | |
21242 | if (temp2) | |
21243 | delete arg2; | |
21244 | } | |
21245 | return NULL; | |
21246 | } | |
21247 | ||
21248 | ||
21249 | SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21250 | PyObject *resultobj = 0; | |
21251 | wxDC *arg1 = (wxDC *) 0 ; | |
21252 | wxSize result; | |
21253 | void *argp1 = 0 ; | |
21254 | int res1 = 0 ; | |
21255 | PyObject *swig_obj[1] ; | |
21256 | ||
21257 | if (!args) SWIG_fail; | |
21258 | swig_obj[0] = args; | |
21259 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21260 | if (!SWIG_IsOK(res1)) { | |
21261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21262 | } | |
21263 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21264 | { | |
21265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21266 | result = (arg1)->GetSize(); | |
21267 | wxPyEndAllowThreads(__tstate); | |
21268 | if (PyErr_Occurred()) SWIG_fail; | |
21269 | } | |
21270 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21271 | return resultobj; | |
21272 | fail: | |
21273 | return NULL; | |
21274 | } | |
21275 | ||
21276 | ||
21277 | SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21278 | PyObject *resultobj = 0; | |
21279 | wxDC *arg1 = (wxDC *) 0 ; | |
21280 | int *arg2 = (int *) 0 ; | |
21281 | int *arg3 = (int *) 0 ; | |
21282 | void *argp1 = 0 ; | |
21283 | int res1 = 0 ; | |
21284 | int temp2 ; | |
21285 | int res2 = SWIG_TMPOBJ ; | |
21286 | int temp3 ; | |
21287 | int res3 = SWIG_TMPOBJ ; | |
21288 | PyObject *swig_obj[1] ; | |
21289 | ||
21290 | arg2 = &temp2; | |
21291 | arg3 = &temp3; | |
21292 | if (!args) SWIG_fail; | |
21293 | swig_obj[0] = args; | |
21294 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21295 | if (!SWIG_IsOK(res1)) { | |
21296 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21297 | } | |
21298 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21299 | { | |
21300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21301 | (arg1)->GetSize(arg2,arg3); | |
21302 | wxPyEndAllowThreads(__tstate); | |
21303 | if (PyErr_Occurred()) SWIG_fail; | |
21304 | } | |
21305 | resultobj = SWIG_Py_Void(); | |
21306 | if (SWIG_IsTmpObj(res2)) { | |
21307 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21308 | } else { | |
21309 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21310 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21311 | } | |
21312 | if (SWIG_IsTmpObj(res3)) { | |
21313 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21314 | } else { | |
21315 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21316 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21317 | } | |
21318 | return resultobj; | |
21319 | fail: | |
21320 | return NULL; | |
21321 | } | |
21322 | ||
21323 | ||
21324 | SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21325 | PyObject *resultobj = 0; | |
21326 | wxDC *arg1 = (wxDC *) 0 ; | |
21327 | wxSize result; | |
21328 | void *argp1 = 0 ; | |
21329 | int res1 = 0 ; | |
21330 | PyObject *swig_obj[1] ; | |
21331 | ||
21332 | if (!args) SWIG_fail; | |
21333 | swig_obj[0] = args; | |
21334 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21335 | if (!SWIG_IsOK(res1)) { | |
21336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21337 | } | |
21338 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21339 | { | |
21340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21341 | result = ((wxDC const *)arg1)->GetSizeMM(); | |
21342 | wxPyEndAllowThreads(__tstate); | |
21343 | if (PyErr_Occurred()) SWIG_fail; | |
21344 | } | |
21345 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21346 | return resultobj; | |
21347 | fail: | |
21348 | return NULL; | |
21349 | } | |
21350 | ||
21351 | ||
21352 | SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21353 | PyObject *resultobj = 0; | |
21354 | wxDC *arg1 = (wxDC *) 0 ; | |
21355 | int *arg2 = (int *) 0 ; | |
21356 | int *arg3 = (int *) 0 ; | |
21357 | void *argp1 = 0 ; | |
21358 | int res1 = 0 ; | |
21359 | int temp2 ; | |
21360 | int res2 = SWIG_TMPOBJ ; | |
21361 | int temp3 ; | |
21362 | int res3 = SWIG_TMPOBJ ; | |
21363 | PyObject *swig_obj[1] ; | |
21364 | ||
21365 | arg2 = &temp2; | |
21366 | arg3 = &temp3; | |
21367 | if (!args) SWIG_fail; | |
21368 | swig_obj[0] = args; | |
21369 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21370 | if (!SWIG_IsOK(res1)) { | |
21371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21372 | } | |
21373 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21374 | { | |
21375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21376 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
21377 | wxPyEndAllowThreads(__tstate); | |
21378 | if (PyErr_Occurred()) SWIG_fail; | |
21379 | } | |
21380 | resultobj = SWIG_Py_Void(); | |
21381 | if (SWIG_IsTmpObj(res2)) { | |
21382 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21383 | } else { | |
21384 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21385 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21386 | } | |
21387 | if (SWIG_IsTmpObj(res3)) { | |
21388 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21389 | } else { | |
21390 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21391 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21392 | } | |
21393 | return resultobj; | |
21394 | fail: | |
21395 | return NULL; | |
21396 | } | |
21397 | ||
21398 | ||
21399 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21400 | PyObject *resultobj = 0; | |
21401 | wxDC *arg1 = (wxDC *) 0 ; | |
21402 | int arg2 ; | |
21403 | int result; | |
21404 | void *argp1 = 0 ; | |
21405 | int res1 = 0 ; | |
21406 | int val2 ; | |
21407 | int ecode2 = 0 ; | |
21408 | PyObject * obj0 = 0 ; | |
21409 | PyObject * obj1 = 0 ; | |
21410 | char * kwnames[] = { | |
21411 | (char *) "self",(char *) "x", NULL | |
21412 | }; | |
21413 | ||
21414 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail; | |
21415 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21416 | if (!SWIG_IsOK(res1)) { | |
21417 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21418 | } | |
21419 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21420 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21421 | if (!SWIG_IsOK(ecode2)) { | |
21422 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'"); | |
21423 | } | |
21424 | arg2 = static_cast< int >(val2); | |
21425 | { | |
21426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21427 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); | |
21428 | wxPyEndAllowThreads(__tstate); | |
21429 | if (PyErr_Occurred()) SWIG_fail; | |
21430 | } | |
21431 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21432 | return resultobj; | |
21433 | fail: | |
21434 | return NULL; | |
21435 | } | |
21436 | ||
21437 | ||
21438 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21439 | PyObject *resultobj = 0; | |
21440 | wxDC *arg1 = (wxDC *) 0 ; | |
21441 | int arg2 ; | |
21442 | int result; | |
21443 | void *argp1 = 0 ; | |
21444 | int res1 = 0 ; | |
21445 | int val2 ; | |
21446 | int ecode2 = 0 ; | |
21447 | PyObject * obj0 = 0 ; | |
21448 | PyObject * obj1 = 0 ; | |
21449 | char * kwnames[] = { | |
21450 | (char *) "self",(char *) "y", NULL | |
21451 | }; | |
21452 | ||
21453 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail; | |
21454 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21455 | if (!SWIG_IsOK(res1)) { | |
21456 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21457 | } | |
21458 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21459 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21460 | if (!SWIG_IsOK(ecode2)) { | |
21461 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'"); | |
21462 | } | |
21463 | arg2 = static_cast< int >(val2); | |
21464 | { | |
21465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21466 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); | |
21467 | wxPyEndAllowThreads(__tstate); | |
21468 | if (PyErr_Occurred()) SWIG_fail; | |
21469 | } | |
21470 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21471 | return resultobj; | |
21472 | fail: | |
21473 | return NULL; | |
21474 | } | |
21475 | ||
21476 | ||
21477 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21478 | PyObject *resultobj = 0; | |
21479 | wxDC *arg1 = (wxDC *) 0 ; | |
21480 | int arg2 ; | |
21481 | int result; | |
21482 | void *argp1 = 0 ; | |
21483 | int res1 = 0 ; | |
21484 | int val2 ; | |
21485 | int ecode2 = 0 ; | |
21486 | PyObject * obj0 = 0 ; | |
21487 | PyObject * obj1 = 0 ; | |
21488 | char * kwnames[] = { | |
21489 | (char *) "self",(char *) "x", NULL | |
21490 | }; | |
21491 | ||
21492 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
21493 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21494 | if (!SWIG_IsOK(res1)) { | |
21495 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21496 | } | |
21497 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21498 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21499 | if (!SWIG_IsOK(ecode2)) { | |
21500 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'"); | |
21501 | } | |
21502 | arg2 = static_cast< int >(val2); | |
21503 | { | |
21504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21505 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); | |
21506 | wxPyEndAllowThreads(__tstate); | |
21507 | if (PyErr_Occurred()) SWIG_fail; | |
21508 | } | |
21509 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21510 | return resultobj; | |
21511 | fail: | |
21512 | return NULL; | |
21513 | } | |
21514 | ||
21515 | ||
21516 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21517 | PyObject *resultobj = 0; | |
21518 | wxDC *arg1 = (wxDC *) 0 ; | |
21519 | int arg2 ; | |
21520 | int result; | |
21521 | void *argp1 = 0 ; | |
21522 | int res1 = 0 ; | |
21523 | int val2 ; | |
21524 | int ecode2 = 0 ; | |
21525 | PyObject * obj0 = 0 ; | |
21526 | PyObject * obj1 = 0 ; | |
21527 | char * kwnames[] = { | |
21528 | (char *) "self",(char *) "y", NULL | |
21529 | }; | |
21530 | ||
21531 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
21532 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21533 | if (!SWIG_IsOK(res1)) { | |
21534 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21535 | } | |
21536 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21537 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21538 | if (!SWIG_IsOK(ecode2)) { | |
21539 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'"); | |
21540 | } | |
21541 | arg2 = static_cast< int >(val2); | |
21542 | { | |
21543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21544 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); | |
21545 | wxPyEndAllowThreads(__tstate); | |
21546 | if (PyErr_Occurred()) SWIG_fail; | |
21547 | } | |
21548 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21549 | return resultobj; | |
21550 | fail: | |
21551 | return NULL; | |
21552 | } | |
21553 | ||
21554 | ||
21555 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21556 | PyObject *resultobj = 0; | |
21557 | wxDC *arg1 = (wxDC *) 0 ; | |
21558 | int arg2 ; | |
21559 | int result; | |
21560 | void *argp1 = 0 ; | |
21561 | int res1 = 0 ; | |
21562 | int val2 ; | |
21563 | int ecode2 = 0 ; | |
21564 | PyObject * obj0 = 0 ; | |
21565 | PyObject * obj1 = 0 ; | |
21566 | char * kwnames[] = { | |
21567 | (char *) "self",(char *) "x", NULL | |
21568 | }; | |
21569 | ||
21570 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail; | |
21571 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21572 | if (!SWIG_IsOK(res1)) { | |
21573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21574 | } | |
21575 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21576 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21577 | if (!SWIG_IsOK(ecode2)) { | |
21578 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'"); | |
21579 | } | |
21580 | arg2 = static_cast< int >(val2); | |
21581 | { | |
21582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21583 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); | |
21584 | wxPyEndAllowThreads(__tstate); | |
21585 | if (PyErr_Occurred()) SWIG_fail; | |
21586 | } | |
21587 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21588 | return resultobj; | |
21589 | fail: | |
21590 | return NULL; | |
21591 | } | |
21592 | ||
21593 | ||
21594 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21595 | PyObject *resultobj = 0; | |
21596 | wxDC *arg1 = (wxDC *) 0 ; | |
21597 | int arg2 ; | |
21598 | int result; | |
21599 | void *argp1 = 0 ; | |
21600 | int res1 = 0 ; | |
21601 | int val2 ; | |
21602 | int ecode2 = 0 ; | |
21603 | PyObject * obj0 = 0 ; | |
21604 | PyObject * obj1 = 0 ; | |
21605 | char * kwnames[] = { | |
21606 | (char *) "self",(char *) "y", NULL | |
21607 | }; | |
21608 | ||
21609 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail; | |
21610 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21611 | if (!SWIG_IsOK(res1)) { | |
21612 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21613 | } | |
21614 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21615 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21616 | if (!SWIG_IsOK(ecode2)) { | |
21617 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'"); | |
21618 | } | |
21619 | arg2 = static_cast< int >(val2); | |
21620 | { | |
21621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21622 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); | |
21623 | wxPyEndAllowThreads(__tstate); | |
21624 | if (PyErr_Occurred()) SWIG_fail; | |
21625 | } | |
21626 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21627 | return resultobj; | |
21628 | fail: | |
21629 | return NULL; | |
21630 | } | |
21631 | ||
21632 | ||
21633 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21634 | PyObject *resultobj = 0; | |
21635 | wxDC *arg1 = (wxDC *) 0 ; | |
21636 | int arg2 ; | |
21637 | int result; | |
21638 | void *argp1 = 0 ; | |
21639 | int res1 = 0 ; | |
21640 | int val2 ; | |
21641 | int ecode2 = 0 ; | |
21642 | PyObject * obj0 = 0 ; | |
21643 | PyObject * obj1 = 0 ; | |
21644 | char * kwnames[] = { | |
21645 | (char *) "self",(char *) "x", NULL | |
21646 | }; | |
21647 | ||
21648 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
21649 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21650 | if (!SWIG_IsOK(res1)) { | |
21651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21652 | } | |
21653 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21654 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21655 | if (!SWIG_IsOK(ecode2)) { | |
21656 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'"); | |
21657 | } | |
21658 | arg2 = static_cast< int >(val2); | |
21659 | { | |
21660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21661 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); | |
21662 | wxPyEndAllowThreads(__tstate); | |
21663 | if (PyErr_Occurred()) SWIG_fail; | |
21664 | } | |
21665 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21666 | return resultobj; | |
21667 | fail: | |
21668 | return NULL; | |
21669 | } | |
21670 | ||
21671 | ||
21672 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21673 | PyObject *resultobj = 0; | |
21674 | wxDC *arg1 = (wxDC *) 0 ; | |
21675 | int arg2 ; | |
21676 | int result; | |
21677 | void *argp1 = 0 ; | |
21678 | int res1 = 0 ; | |
21679 | int val2 ; | |
21680 | int ecode2 = 0 ; | |
21681 | PyObject * obj0 = 0 ; | |
21682 | PyObject * obj1 = 0 ; | |
21683 | char * kwnames[] = { | |
21684 | (char *) "self",(char *) "y", NULL | |
21685 | }; | |
21686 | ||
21687 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
21688 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21689 | if (!SWIG_IsOK(res1)) { | |
21690 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21691 | } | |
21692 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21693 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21694 | if (!SWIG_IsOK(ecode2)) { | |
21695 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'"); | |
21696 | } | |
21697 | arg2 = static_cast< int >(val2); | |
21698 | { | |
21699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21700 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); | |
21701 | wxPyEndAllowThreads(__tstate); | |
21702 | if (PyErr_Occurred()) SWIG_fail; | |
21703 | } | |
21704 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21705 | return resultobj; | |
21706 | fail: | |
21707 | return NULL; | |
21708 | } | |
21709 | ||
21710 | ||
21711 | SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21712 | PyObject *resultobj = 0; | |
21713 | wxDC *arg1 = (wxDC *) 0 ; | |
21714 | bool result; | |
21715 | void *argp1 = 0 ; | |
21716 | int res1 = 0 ; | |
21717 | PyObject *swig_obj[1] ; | |
21718 | ||
21719 | if (!args) SWIG_fail; | |
21720 | swig_obj[0] = args; | |
21721 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21722 | if (!SWIG_IsOK(res1)) { | |
21723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21724 | } | |
21725 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21726 | { | |
21727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21728 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
21729 | wxPyEndAllowThreads(__tstate); | |
21730 | if (PyErr_Occurred()) SWIG_fail; | |
21731 | } | |
21732 | { | |
21733 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21734 | } | |
21735 | return resultobj; | |
21736 | fail: | |
21737 | return NULL; | |
21738 | } | |
21739 | ||
21740 | ||
21741 | SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21742 | PyObject *resultobj = 0; | |
21743 | wxDC *arg1 = (wxDC *) 0 ; | |
21744 | bool result; | |
21745 | void *argp1 = 0 ; | |
21746 | int res1 = 0 ; | |
21747 | PyObject *swig_obj[1] ; | |
21748 | ||
21749 | if (!args) SWIG_fail; | |
21750 | swig_obj[0] = args; | |
21751 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21752 | if (!SWIG_IsOK(res1)) { | |
21753 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21754 | } | |
21755 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21756 | { | |
21757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21758 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
21759 | wxPyEndAllowThreads(__tstate); | |
21760 | if (PyErr_Occurred()) SWIG_fail; | |
21761 | } | |
21762 | { | |
21763 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21764 | } | |
21765 | return resultobj; | |
21766 | fail: | |
21767 | return NULL; | |
21768 | } | |
21769 | ||
21770 | ||
21771 | SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21772 | PyObject *resultobj = 0; | |
21773 | wxDC *arg1 = (wxDC *) 0 ; | |
21774 | int result; | |
21775 | void *argp1 = 0 ; | |
21776 | int res1 = 0 ; | |
21777 | PyObject *swig_obj[1] ; | |
21778 | ||
21779 | if (!args) SWIG_fail; | |
21780 | swig_obj[0] = args; | |
21781 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21782 | if (!SWIG_IsOK(res1)) { | |
21783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21784 | } | |
21785 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21786 | { | |
21787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21788 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
21789 | wxPyEndAllowThreads(__tstate); | |
21790 | if (PyErr_Occurred()) SWIG_fail; | |
21791 | } | |
21792 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21793 | return resultobj; | |
21794 | fail: | |
21795 | return NULL; | |
21796 | } | |
21797 | ||
21798 | ||
21799 | SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21800 | PyObject *resultobj = 0; | |
21801 | wxDC *arg1 = (wxDC *) 0 ; | |
21802 | wxSize result; | |
21803 | void *argp1 = 0 ; | |
21804 | int res1 = 0 ; | |
21805 | PyObject *swig_obj[1] ; | |
21806 | ||
21807 | if (!args) SWIG_fail; | |
21808 | swig_obj[0] = args; | |
21809 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21810 | if (!SWIG_IsOK(res1)) { | |
21811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21812 | } | |
21813 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21814 | { | |
21815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21816 | result = ((wxDC const *)arg1)->GetPPI(); | |
21817 | wxPyEndAllowThreads(__tstate); | |
21818 | if (PyErr_Occurred()) SWIG_fail; | |
21819 | } | |
21820 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21821 | return resultobj; | |
21822 | fail: | |
21823 | return NULL; | |
21824 | } | |
21825 | ||
21826 | ||
b39fe951 | 21827 | SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
21828 | PyObject *resultobj = 0; |
21829 | wxDC *arg1 = (wxDC *) 0 ; | |
21830 | bool result; | |
21831 | void *argp1 = 0 ; | |
21832 | int res1 = 0 ; | |
21833 | PyObject *swig_obj[1] ; | |
21834 | ||
21835 | if (!args) SWIG_fail; | |
21836 | swig_obj[0] = args; | |
21837 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21838 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 21839 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'"); |
0085ce49 RD |
21840 | } |
21841 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21842 | { | |
21843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 21844 | result = (bool)((wxDC const *)arg1)->IsOk(); |
0085ce49 RD |
21845 | wxPyEndAllowThreads(__tstate); |
21846 | if (PyErr_Occurred()) SWIG_fail; | |
21847 | } | |
21848 | { | |
21849 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21850 | } | |
21851 | return resultobj; | |
21852 | fail: | |
21853 | return NULL; | |
21854 | } | |
21855 | ||
21856 | ||
21857 | SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21858 | PyObject *resultobj = 0; | |
21859 | wxDC *arg1 = (wxDC *) 0 ; | |
21860 | int result; | |
21861 | void *argp1 = 0 ; | |
21862 | int res1 = 0 ; | |
21863 | PyObject *swig_obj[1] ; | |
21864 | ||
21865 | if (!args) SWIG_fail; | |
21866 | swig_obj[0] = args; | |
21867 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21868 | if (!SWIG_IsOK(res1)) { | |
21869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21870 | } | |
21871 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21872 | { | |
21873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21874 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
21875 | wxPyEndAllowThreads(__tstate); | |
21876 | if (PyErr_Occurred()) SWIG_fail; | |
21877 | } | |
21878 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21879 | return resultobj; | |
21880 | fail: | |
21881 | return NULL; | |
21882 | } | |
21883 | ||
21884 | ||
21885 | SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21886 | PyObject *resultobj = 0; | |
21887 | wxDC *arg1 = (wxDC *) 0 ; | |
21888 | wxBrush *result = 0 ; | |
21889 | void *argp1 = 0 ; | |
21890 | int res1 = 0 ; | |
21891 | PyObject *swig_obj[1] ; | |
21892 | ||
21893 | if (!args) SWIG_fail; | |
21894 | swig_obj[0] = args; | |
21895 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21896 | if (!SWIG_IsOK(res1)) { | |
21897 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21898 | } | |
21899 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21900 | { | |
21901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21902 | { |
0085ce49 RD |
21903 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); |
21904 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 21905 | } |
0085ce49 RD |
21906 | wxPyEndAllowThreads(__tstate); |
21907 | if (PyErr_Occurred()) SWIG_fail; | |
21908 | } | |
21909 | { | |
21910 | wxBrush* resultptr = new wxBrush(*result); | |
21911 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
21912 | } | |
21913 | return resultobj; | |
21914 | fail: | |
21915 | return NULL; | |
21916 | } | |
21917 | ||
21918 | ||
21919 | SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21920 | PyObject *resultobj = 0; | |
21921 | wxDC *arg1 = (wxDC *) 0 ; | |
21922 | wxBrush *result = 0 ; | |
21923 | void *argp1 = 0 ; | |
21924 | int res1 = 0 ; | |
21925 | PyObject *swig_obj[1] ; | |
21926 | ||
21927 | if (!args) SWIG_fail; | |
21928 | swig_obj[0] = args; | |
21929 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21930 | if (!SWIG_IsOK(res1)) { | |
21931 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21932 | } | |
21933 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21934 | { | |
21935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21936 | { |
0085ce49 RD |
21937 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); |
21938 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 21939 | } |
0085ce49 RD |
21940 | wxPyEndAllowThreads(__tstate); |
21941 | if (PyErr_Occurred()) SWIG_fail; | |
21942 | } | |
21943 | { | |
21944 | wxBrush* resultptr = new wxBrush(*result); | |
21945 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
21946 | } | |
21947 | return resultobj; | |
21948 | fail: | |
21949 | return NULL; | |
21950 | } | |
21951 | ||
21952 | ||
21953 | SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21954 | PyObject *resultobj = 0; | |
21955 | wxDC *arg1 = (wxDC *) 0 ; | |
21956 | wxFont *result = 0 ; | |
21957 | void *argp1 = 0 ; | |
21958 | int res1 = 0 ; | |
21959 | PyObject *swig_obj[1] ; | |
21960 | ||
21961 | if (!args) SWIG_fail; | |
21962 | swig_obj[0] = args; | |
21963 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21964 | if (!SWIG_IsOK(res1)) { | |
21965 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21966 | } | |
21967 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21968 | { | |
21969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21970 | { |
0085ce49 RD |
21971 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); |
21972 | result = (wxFont *) &_result_ref; | |
093d3ff1 | 21973 | } |
0085ce49 RD |
21974 | wxPyEndAllowThreads(__tstate); |
21975 | if (PyErr_Occurred()) SWIG_fail; | |
21976 | } | |
21977 | { | |
21978 | wxFont* resultptr = new wxFont(*result); | |
21979 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
21980 | } | |
21981 | return resultobj; | |
21982 | fail: | |
21983 | return NULL; | |
21984 | } | |
21985 | ||
21986 | ||
21987 | SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21988 | PyObject *resultobj = 0; | |
21989 | wxDC *arg1 = (wxDC *) 0 ; | |
21990 | wxPen *result = 0 ; | |
21991 | void *argp1 = 0 ; | |
21992 | int res1 = 0 ; | |
21993 | PyObject *swig_obj[1] ; | |
21994 | ||
21995 | if (!args) SWIG_fail; | |
21996 | swig_obj[0] = args; | |
21997 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21998 | if (!SWIG_IsOK(res1)) { | |
21999 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22000 | } | |
22001 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22002 | { | |
22003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22004 | { |
0085ce49 RD |
22005 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); |
22006 | result = (wxPen *) &_result_ref; | |
093d3ff1 | 22007 | } |
0085ce49 RD |
22008 | wxPyEndAllowThreads(__tstate); |
22009 | if (PyErr_Occurred()) SWIG_fail; | |
22010 | } | |
22011 | { | |
22012 | wxPen* resultptr = new wxPen(*result); | |
22013 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
22014 | } | |
22015 | return resultobj; | |
22016 | fail: | |
22017 | return NULL; | |
22018 | } | |
22019 | ||
22020 | ||
22021 | SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22022 | PyObject *resultobj = 0; | |
22023 | wxDC *arg1 = (wxDC *) 0 ; | |
22024 | wxColour *result = 0 ; | |
22025 | void *argp1 = 0 ; | |
22026 | int res1 = 0 ; | |
22027 | PyObject *swig_obj[1] ; | |
22028 | ||
22029 | if (!args) SWIG_fail; | |
22030 | swig_obj[0] = args; | |
22031 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22032 | if (!SWIG_IsOK(res1)) { | |
22033 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22034 | } | |
22035 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22036 | { | |
22037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22038 | { |
0085ce49 RD |
22039 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); |
22040 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 22041 | } |
0085ce49 RD |
22042 | wxPyEndAllowThreads(__tstate); |
22043 | if (PyErr_Occurred()) SWIG_fail; | |
22044 | } | |
22045 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
22046 | return resultobj; | |
22047 | fail: | |
22048 | return NULL; | |
22049 | } | |
22050 | ||
22051 | ||
22052 | SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22053 | PyObject *resultobj = 0; | |
22054 | wxDC *arg1 = (wxDC *) 0 ; | |
22055 | wxColour *result = 0 ; | |
22056 | void *argp1 = 0 ; | |
22057 | int res1 = 0 ; | |
22058 | PyObject *swig_obj[1] ; | |
22059 | ||
22060 | if (!args) SWIG_fail; | |
22061 | swig_obj[0] = args; | |
22062 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22063 | if (!SWIG_IsOK(res1)) { | |
22064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22065 | } | |
22066 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22067 | { | |
22068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22069 | { |
0085ce49 RD |
22070 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); |
22071 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 22072 | } |
0085ce49 RD |
22073 | wxPyEndAllowThreads(__tstate); |
22074 | if (PyErr_Occurred()) SWIG_fail; | |
22075 | } | |
22076 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
22077 | return resultobj; | |
22078 | fail: | |
22079 | return NULL; | |
22080 | } | |
22081 | ||
22082 | ||
22083 | SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22084 | PyObject *resultobj = 0; | |
22085 | wxDC *arg1 = (wxDC *) 0 ; | |
22086 | wxColour *arg2 = 0 ; | |
22087 | void *argp1 = 0 ; | |
22088 | int res1 = 0 ; | |
22089 | wxColour temp2 ; | |
22090 | PyObject * obj0 = 0 ; | |
22091 | PyObject * obj1 = 0 ; | |
22092 | char * kwnames[] = { | |
22093 | (char *) "self",(char *) "colour", NULL | |
22094 | }; | |
22095 | ||
22096 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22097 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22098 | if (!SWIG_IsOK(res1)) { | |
22099 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22100 | } | |
22101 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22102 | { | |
22103 | arg2 = &temp2; | |
22104 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22105 | } | |
22106 | { | |
22107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22108 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
22109 | wxPyEndAllowThreads(__tstate); | |
22110 | if (PyErr_Occurred()) SWIG_fail; | |
22111 | } | |
22112 | resultobj = SWIG_Py_Void(); | |
22113 | return resultobj; | |
22114 | fail: | |
22115 | return NULL; | |
22116 | } | |
22117 | ||
22118 | ||
22119 | SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22120 | PyObject *resultobj = 0; | |
22121 | wxDC *arg1 = (wxDC *) 0 ; | |
22122 | wxColour *arg2 = 0 ; | |
22123 | void *argp1 = 0 ; | |
22124 | int res1 = 0 ; | |
22125 | wxColour temp2 ; | |
22126 | PyObject * obj0 = 0 ; | |
22127 | PyObject * obj1 = 0 ; | |
22128 | char * kwnames[] = { | |
22129 | (char *) "self",(char *) "colour", NULL | |
22130 | }; | |
22131 | ||
22132 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22133 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22134 | if (!SWIG_IsOK(res1)) { | |
22135 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22136 | } | |
22137 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22138 | { | |
22139 | arg2 = &temp2; | |
22140 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22141 | } | |
22142 | { | |
22143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22144 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
22145 | wxPyEndAllowThreads(__tstate); | |
22146 | if (PyErr_Occurred()) SWIG_fail; | |
22147 | } | |
22148 | resultobj = SWIG_Py_Void(); | |
22149 | return resultobj; | |
22150 | fail: | |
22151 | return NULL; | |
22152 | } | |
22153 | ||
22154 | ||
22155 | SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22156 | PyObject *resultobj = 0; | |
22157 | wxDC *arg1 = (wxDC *) 0 ; | |
22158 | int result; | |
22159 | void *argp1 = 0 ; | |
22160 | int res1 = 0 ; | |
22161 | PyObject *swig_obj[1] ; | |
22162 | ||
22163 | if (!args) SWIG_fail; | |
22164 | swig_obj[0] = args; | |
22165 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22166 | if (!SWIG_IsOK(res1)) { | |
22167 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22168 | } | |
22169 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22170 | { | |
22171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22172 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
22173 | wxPyEndAllowThreads(__tstate); | |
22174 | if (PyErr_Occurred()) SWIG_fail; | |
22175 | } | |
22176 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22177 | return resultobj; | |
22178 | fail: | |
22179 | return NULL; | |
22180 | } | |
22181 | ||
22182 | ||
22183 | SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22184 | PyObject *resultobj = 0; | |
22185 | wxDC *arg1 = (wxDC *) 0 ; | |
22186 | int arg2 ; | |
22187 | void *argp1 = 0 ; | |
22188 | int res1 = 0 ; | |
22189 | int val2 ; | |
22190 | int ecode2 = 0 ; | |
22191 | PyObject * obj0 = 0 ; | |
22192 | PyObject * obj1 = 0 ; | |
22193 | char * kwnames[] = { | |
22194 | (char *) "self",(char *) "mode", NULL | |
22195 | }; | |
22196 | ||
22197 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
22198 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22199 | if (!SWIG_IsOK(res1)) { | |
22200 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22201 | } | |
22202 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22203 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22204 | if (!SWIG_IsOK(ecode2)) { | |
22205 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'"); | |
22206 | } | |
22207 | arg2 = static_cast< int >(val2); | |
22208 | { | |
22209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22210 | (arg1)->SetMapMode(arg2); | |
22211 | wxPyEndAllowThreads(__tstate); | |
22212 | if (PyErr_Occurred()) SWIG_fail; | |
22213 | } | |
22214 | resultobj = SWIG_Py_Void(); | |
22215 | return resultobj; | |
22216 | fail: | |
22217 | return NULL; | |
22218 | } | |
22219 | ||
22220 | ||
22221 | SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22222 | PyObject *resultobj = 0; | |
22223 | wxDC *arg1 = (wxDC *) 0 ; | |
22224 | double *arg2 = (double *) 0 ; | |
22225 | double *arg3 = (double *) 0 ; | |
22226 | void *argp1 = 0 ; | |
22227 | int res1 = 0 ; | |
22228 | double temp2 ; | |
22229 | int res2 = SWIG_TMPOBJ ; | |
22230 | double temp3 ; | |
22231 | int res3 = SWIG_TMPOBJ ; | |
22232 | PyObject *swig_obj[1] ; | |
22233 | ||
22234 | arg2 = &temp2; | |
22235 | arg3 = &temp3; | |
22236 | if (!args) SWIG_fail; | |
22237 | swig_obj[0] = args; | |
22238 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22239 | if (!SWIG_IsOK(res1)) { | |
22240 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22241 | } | |
22242 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22243 | { | |
22244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22245 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
22246 | wxPyEndAllowThreads(__tstate); | |
22247 | if (PyErr_Occurred()) SWIG_fail; | |
22248 | } | |
22249 | resultobj = SWIG_Py_Void(); | |
22250 | if (SWIG_IsTmpObj(res2)) { | |
22251 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
22252 | } else { | |
22253 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22254 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
22255 | } | |
22256 | if (SWIG_IsTmpObj(res3)) { | |
22257 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
22258 | } else { | |
22259 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22260 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
22261 | } | |
22262 | return resultobj; | |
22263 | fail: | |
22264 | return NULL; | |
22265 | } | |
22266 | ||
22267 | ||
22268 | SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22269 | PyObject *resultobj = 0; | |
22270 | wxDC *arg1 = (wxDC *) 0 ; | |
22271 | double arg2 ; | |
22272 | double arg3 ; | |
22273 | void *argp1 = 0 ; | |
22274 | int res1 = 0 ; | |
22275 | double val2 ; | |
22276 | int ecode2 = 0 ; | |
22277 | double val3 ; | |
22278 | int ecode3 = 0 ; | |
22279 | PyObject * obj0 = 0 ; | |
22280 | PyObject * obj1 = 0 ; | |
22281 | PyObject * obj2 = 0 ; | |
22282 | char * kwnames[] = { | |
22283 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22284 | }; | |
22285 | ||
22286 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22287 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22288 | if (!SWIG_IsOK(res1)) { | |
22289 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22290 | } | |
22291 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22292 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
22293 | if (!SWIG_IsOK(ecode2)) { | |
22294 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'"); | |
22295 | } | |
22296 | arg2 = static_cast< double >(val2); | |
22297 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
22298 | if (!SWIG_IsOK(ecode3)) { | |
22299 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'"); | |
22300 | } | |
22301 | arg3 = static_cast< double >(val3); | |
22302 | { | |
22303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22304 | (arg1)->SetUserScale(arg2,arg3); | |
22305 | wxPyEndAllowThreads(__tstate); | |
22306 | if (PyErr_Occurred()) SWIG_fail; | |
22307 | } | |
22308 | resultobj = SWIG_Py_Void(); | |
22309 | return resultobj; | |
22310 | fail: | |
22311 | return NULL; | |
22312 | } | |
22313 | ||
22314 | ||
22315 | SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22316 | PyObject *resultobj = 0; | |
22317 | wxDC *arg1 = (wxDC *) 0 ; | |
22318 | double *arg2 = (double *) 0 ; | |
22319 | double *arg3 = (double *) 0 ; | |
22320 | void *argp1 = 0 ; | |
22321 | int res1 = 0 ; | |
22322 | double temp2 ; | |
22323 | int res2 = SWIG_TMPOBJ ; | |
22324 | double temp3 ; | |
22325 | int res3 = SWIG_TMPOBJ ; | |
22326 | PyObject *swig_obj[1] ; | |
22327 | ||
22328 | arg2 = &temp2; | |
22329 | arg3 = &temp3; | |
22330 | if (!args) SWIG_fail; | |
22331 | swig_obj[0] = args; | |
22332 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22333 | if (!SWIG_IsOK(res1)) { | |
22334 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22335 | } | |
22336 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22337 | { | |
22338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22339 | (arg1)->GetLogicalScale(arg2,arg3); | |
22340 | wxPyEndAllowThreads(__tstate); | |
22341 | if (PyErr_Occurred()) SWIG_fail; | |
22342 | } | |
22343 | resultobj = SWIG_Py_Void(); | |
22344 | if (SWIG_IsTmpObj(res2)) { | |
22345 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
22346 | } else { | |
22347 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22348 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
22349 | } | |
22350 | if (SWIG_IsTmpObj(res3)) { | |
22351 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
22352 | } else { | |
22353 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22354 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
22355 | } | |
22356 | return resultobj; | |
22357 | fail: | |
22358 | return NULL; | |
22359 | } | |
22360 | ||
22361 | ||
22362 | SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22363 | PyObject *resultobj = 0; | |
22364 | wxDC *arg1 = (wxDC *) 0 ; | |
22365 | double arg2 ; | |
22366 | double arg3 ; | |
22367 | void *argp1 = 0 ; | |
22368 | int res1 = 0 ; | |
22369 | double val2 ; | |
22370 | int ecode2 = 0 ; | |
22371 | double val3 ; | |
22372 | int ecode3 = 0 ; | |
22373 | PyObject * obj0 = 0 ; | |
22374 | PyObject * obj1 = 0 ; | |
22375 | PyObject * obj2 = 0 ; | |
22376 | char * kwnames[] = { | |
22377 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22378 | }; | |
22379 | ||
22380 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22381 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22382 | if (!SWIG_IsOK(res1)) { | |
22383 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22384 | } | |
22385 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22386 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
22387 | if (!SWIG_IsOK(ecode2)) { | |
22388 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'"); | |
22389 | } | |
22390 | arg2 = static_cast< double >(val2); | |
22391 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
22392 | if (!SWIG_IsOK(ecode3)) { | |
22393 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'"); | |
22394 | } | |
22395 | arg3 = static_cast< double >(val3); | |
22396 | { | |
22397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22398 | (arg1)->SetLogicalScale(arg2,arg3); | |
22399 | wxPyEndAllowThreads(__tstate); | |
22400 | if (PyErr_Occurred()) SWIG_fail; | |
22401 | } | |
22402 | resultobj = SWIG_Py_Void(); | |
22403 | return resultobj; | |
22404 | fail: | |
22405 | return NULL; | |
22406 | } | |
22407 | ||
22408 | ||
22409 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22410 | PyObject *resultobj = 0; | |
22411 | wxDC *arg1 = (wxDC *) 0 ; | |
22412 | wxPoint result; | |
22413 | void *argp1 = 0 ; | |
22414 | int res1 = 0 ; | |
22415 | PyObject *swig_obj[1] ; | |
22416 | ||
22417 | if (!args) SWIG_fail; | |
22418 | swig_obj[0] = args; | |
22419 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22420 | if (!SWIG_IsOK(res1)) { | |
22421 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22422 | } | |
22423 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22424 | { | |
22425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22426 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); | |
22427 | wxPyEndAllowThreads(__tstate); | |
22428 | if (PyErr_Occurred()) SWIG_fail; | |
22429 | } | |
22430 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
22431 | return resultobj; | |
22432 | fail: | |
22433 | return NULL; | |
22434 | } | |
22435 | ||
22436 | ||
22437 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22438 | PyObject *resultobj = 0; | |
22439 | wxDC *arg1 = (wxDC *) 0 ; | |
22440 | int *arg2 = (int *) 0 ; | |
22441 | int *arg3 = (int *) 0 ; | |
22442 | void *argp1 = 0 ; | |
22443 | int res1 = 0 ; | |
22444 | int temp2 ; | |
22445 | int res2 = SWIG_TMPOBJ ; | |
22446 | int temp3 ; | |
22447 | int res3 = SWIG_TMPOBJ ; | |
22448 | PyObject *swig_obj[1] ; | |
22449 | ||
22450 | arg2 = &temp2; | |
22451 | arg3 = &temp3; | |
22452 | if (!args) SWIG_fail; | |
22453 | swig_obj[0] = args; | |
22454 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22455 | if (!SWIG_IsOK(res1)) { | |
22456 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22457 | } | |
22458 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22459 | { | |
22460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22461 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); | |
22462 | wxPyEndAllowThreads(__tstate); | |
22463 | if (PyErr_Occurred()) SWIG_fail; | |
22464 | } | |
22465 | resultobj = SWIG_Py_Void(); | |
22466 | if (SWIG_IsTmpObj(res2)) { | |
22467 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22468 | } else { | |
22469 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22470 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22471 | } | |
22472 | if (SWIG_IsTmpObj(res3)) { | |
22473 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22474 | } else { | |
22475 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22476 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22477 | } | |
22478 | return resultobj; | |
22479 | fail: | |
22480 | return NULL; | |
22481 | } | |
22482 | ||
22483 | ||
22484 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22485 | PyObject *resultobj = 0; | |
22486 | wxDC *arg1 = (wxDC *) 0 ; | |
22487 | int arg2 ; | |
22488 | int arg3 ; | |
22489 | void *argp1 = 0 ; | |
22490 | int res1 = 0 ; | |
22491 | int val2 ; | |
22492 | int ecode2 = 0 ; | |
22493 | int val3 ; | |
22494 | int ecode3 = 0 ; | |
22495 | PyObject * obj0 = 0 ; | |
22496 | PyObject * obj1 = 0 ; | |
22497 | PyObject * obj2 = 0 ; | |
22498 | char * kwnames[] = { | |
22499 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22500 | }; | |
22501 | ||
22502 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22503 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22504 | if (!SWIG_IsOK(res1)) { | |
22505 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22506 | } | |
22507 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22508 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22509 | if (!SWIG_IsOK(ecode2)) { | |
22510 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'"); | |
22511 | } | |
22512 | arg2 = static_cast< int >(val2); | |
22513 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22514 | if (!SWIG_IsOK(ecode3)) { | |
22515 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'"); | |
22516 | } | |
22517 | arg3 = static_cast< int >(val3); | |
22518 | { | |
22519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22520 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
22521 | wxPyEndAllowThreads(__tstate); | |
22522 | if (PyErr_Occurred()) SWIG_fail; | |
22523 | } | |
22524 | resultobj = SWIG_Py_Void(); | |
22525 | return resultobj; | |
22526 | fail: | |
22527 | return NULL; | |
22528 | } | |
22529 | ||
22530 | ||
22531 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22532 | PyObject *resultobj = 0; | |
22533 | wxDC *arg1 = (wxDC *) 0 ; | |
22534 | wxPoint *arg2 = 0 ; | |
22535 | void *argp1 = 0 ; | |
22536 | int res1 = 0 ; | |
22537 | wxPoint temp2 ; | |
22538 | PyObject * obj0 = 0 ; | |
22539 | PyObject * obj1 = 0 ; | |
22540 | char * kwnames[] = { | |
22541 | (char *) "self",(char *) "point", NULL | |
22542 | }; | |
22543 | ||
22544 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
22545 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22546 | if (!SWIG_IsOK(res1)) { | |
22547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22548 | } | |
22549 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22550 | { | |
22551 | arg2 = &temp2; | |
22552 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22553 | } | |
22554 | { | |
22555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22556 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); | |
22557 | wxPyEndAllowThreads(__tstate); | |
22558 | if (PyErr_Occurred()) SWIG_fail; | |
22559 | } | |
22560 | resultobj = SWIG_Py_Void(); | |
22561 | return resultobj; | |
22562 | fail: | |
22563 | return NULL; | |
22564 | } | |
22565 | ||
22566 | ||
22567 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22568 | PyObject *resultobj = 0; | |
22569 | wxDC *arg1 = (wxDC *) 0 ; | |
22570 | wxPoint result; | |
22571 | void *argp1 = 0 ; | |
22572 | int res1 = 0 ; | |
22573 | PyObject *swig_obj[1] ; | |
22574 | ||
22575 | if (!args) SWIG_fail; | |
22576 | swig_obj[0] = args; | |
22577 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22578 | if (!SWIG_IsOK(res1)) { | |
22579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22580 | } | |
22581 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22582 | { | |
22583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22584 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); | |
22585 | wxPyEndAllowThreads(__tstate); | |
22586 | if (PyErr_Occurred()) SWIG_fail; | |
22587 | } | |
22588 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
22589 | return resultobj; | |
22590 | fail: | |
22591 | return NULL; | |
22592 | } | |
22593 | ||
22594 | ||
22595 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22596 | PyObject *resultobj = 0; | |
22597 | wxDC *arg1 = (wxDC *) 0 ; | |
22598 | int *arg2 = (int *) 0 ; | |
22599 | int *arg3 = (int *) 0 ; | |
22600 | void *argp1 = 0 ; | |
22601 | int res1 = 0 ; | |
22602 | int temp2 ; | |
22603 | int res2 = SWIG_TMPOBJ ; | |
22604 | int temp3 ; | |
22605 | int res3 = SWIG_TMPOBJ ; | |
22606 | PyObject *swig_obj[1] ; | |
22607 | ||
22608 | arg2 = &temp2; | |
22609 | arg3 = &temp3; | |
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_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22615 | } | |
22616 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22617 | { | |
22618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22619 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); | |
22620 | wxPyEndAllowThreads(__tstate); | |
22621 | if (PyErr_Occurred()) SWIG_fail; | |
22622 | } | |
22623 | resultobj = SWIG_Py_Void(); | |
22624 | if (SWIG_IsTmpObj(res2)) { | |
22625 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22626 | } else { | |
22627 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22628 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22629 | } | |
22630 | if (SWIG_IsTmpObj(res3)) { | |
22631 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22632 | } else { | |
22633 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22634 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22635 | } | |
22636 | return resultobj; | |
22637 | fail: | |
22638 | return NULL; | |
22639 | } | |
22640 | ||
22641 | ||
22642 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22643 | PyObject *resultobj = 0; | |
22644 | wxDC *arg1 = (wxDC *) 0 ; | |
22645 | int arg2 ; | |
22646 | int arg3 ; | |
22647 | void *argp1 = 0 ; | |
22648 | int res1 = 0 ; | |
22649 | int val2 ; | |
22650 | int ecode2 = 0 ; | |
22651 | int val3 ; | |
22652 | int ecode3 = 0 ; | |
22653 | PyObject * obj0 = 0 ; | |
22654 | PyObject * obj1 = 0 ; | |
22655 | PyObject * obj2 = 0 ; | |
22656 | char * kwnames[] = { | |
22657 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22658 | }; | |
22659 | ||
22660 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22661 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22662 | if (!SWIG_IsOK(res1)) { | |
22663 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22664 | } | |
22665 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22666 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22667 | if (!SWIG_IsOK(ecode2)) { | |
22668 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'"); | |
22669 | } | |
22670 | arg2 = static_cast< int >(val2); | |
22671 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22672 | if (!SWIG_IsOK(ecode3)) { | |
22673 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'"); | |
22674 | } | |
22675 | arg3 = static_cast< int >(val3); | |
22676 | { | |
22677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22678 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
22679 | wxPyEndAllowThreads(__tstate); | |
22680 | if (PyErr_Occurred()) SWIG_fail; | |
22681 | } | |
22682 | resultobj = SWIG_Py_Void(); | |
22683 | return resultobj; | |
22684 | fail: | |
22685 | return NULL; | |
22686 | } | |
22687 | ||
22688 | ||
22689 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22690 | PyObject *resultobj = 0; | |
22691 | wxDC *arg1 = (wxDC *) 0 ; | |
22692 | wxPoint *arg2 = 0 ; | |
22693 | void *argp1 = 0 ; | |
22694 | int res1 = 0 ; | |
22695 | wxPoint temp2 ; | |
22696 | PyObject * obj0 = 0 ; | |
22697 | PyObject * obj1 = 0 ; | |
22698 | char * kwnames[] = { | |
22699 | (char *) "self",(char *) "point", NULL | |
22700 | }; | |
22701 | ||
22702 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
22703 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22704 | if (!SWIG_IsOK(res1)) { | |
22705 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22706 | } | |
22707 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22708 | { | |
22709 | arg2 = &temp2; | |
22710 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22711 | } | |
22712 | { | |
22713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22714 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); | |
22715 | wxPyEndAllowThreads(__tstate); | |
22716 | if (PyErr_Occurred()) SWIG_fail; | |
22717 | } | |
22718 | resultobj = SWIG_Py_Void(); | |
22719 | return resultobj; | |
22720 | fail: | |
22721 | return NULL; | |
22722 | } | |
22723 | ||
22724 | ||
22725 | SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22726 | PyObject *resultobj = 0; | |
22727 | wxDC *arg1 = (wxDC *) 0 ; | |
22728 | bool arg2 ; | |
22729 | bool arg3 ; | |
22730 | void *argp1 = 0 ; | |
22731 | int res1 = 0 ; | |
22732 | bool val2 ; | |
22733 | int ecode2 = 0 ; | |
22734 | bool val3 ; | |
22735 | int ecode3 = 0 ; | |
22736 | PyObject * obj0 = 0 ; | |
22737 | PyObject * obj1 = 0 ; | |
22738 | PyObject * obj2 = 0 ; | |
22739 | char * kwnames[] = { | |
22740 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
22741 | }; | |
22742 | ||
22743 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22744 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22745 | if (!SWIG_IsOK(res1)) { | |
22746 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22747 | } | |
22748 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22749 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
22750 | if (!SWIG_IsOK(ecode2)) { | |
22751 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'"); | |
22752 | } | |
22753 | arg2 = static_cast< bool >(val2); | |
22754 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
22755 | if (!SWIG_IsOK(ecode3)) { | |
22756 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'"); | |
22757 | } | |
22758 | arg3 = static_cast< bool >(val3); | |
22759 | { | |
22760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22761 | (arg1)->SetAxisOrientation(arg2,arg3); | |
22762 | wxPyEndAllowThreads(__tstate); | |
22763 | if (PyErr_Occurred()) SWIG_fail; | |
22764 | } | |
22765 | resultobj = SWIG_Py_Void(); | |
22766 | return resultobj; | |
22767 | fail: | |
22768 | return NULL; | |
22769 | } | |
22770 | ||
22771 | ||
22772 | SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22773 | PyObject *resultobj = 0; | |
22774 | wxDC *arg1 = (wxDC *) 0 ; | |
22775 | int result; | |
22776 | void *argp1 = 0 ; | |
22777 | int res1 = 0 ; | |
22778 | PyObject *swig_obj[1] ; | |
22779 | ||
22780 | if (!args) SWIG_fail; | |
22781 | swig_obj[0] = args; | |
22782 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22783 | if (!SWIG_IsOK(res1)) { | |
22784 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22785 | } | |
22786 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22787 | { | |
22788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22789 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
22790 | wxPyEndAllowThreads(__tstate); | |
22791 | if (PyErr_Occurred()) SWIG_fail; | |
22792 | } | |
22793 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22794 | return resultobj; | |
22795 | fail: | |
22796 | return NULL; | |
22797 | } | |
22798 | ||
22799 | ||
22800 | SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22801 | PyObject *resultobj = 0; | |
22802 | wxDC *arg1 = (wxDC *) 0 ; | |
22803 | int arg2 ; | |
22804 | void *argp1 = 0 ; | |
22805 | int res1 = 0 ; | |
22806 | int val2 ; | |
22807 | int ecode2 = 0 ; | |
22808 | PyObject * obj0 = 0 ; | |
22809 | PyObject * obj1 = 0 ; | |
22810 | char * kwnames[] = { | |
22811 | (char *) "self",(char *) "function", NULL | |
22812 | }; | |
22813 | ||
22814 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
22815 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22816 | if (!SWIG_IsOK(res1)) { | |
22817 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22818 | } | |
22819 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22820 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22821 | if (!SWIG_IsOK(ecode2)) { | |
22822 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
22823 | } | |
22824 | arg2 = static_cast< int >(val2); | |
22825 | { | |
22826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22827 | (arg1)->SetLogicalFunction(arg2); | |
22828 | wxPyEndAllowThreads(__tstate); | |
22829 | if (PyErr_Occurred()) SWIG_fail; | |
22830 | } | |
22831 | resultobj = SWIG_Py_Void(); | |
22832 | return resultobj; | |
22833 | fail: | |
22834 | return NULL; | |
22835 | } | |
22836 | ||
22837 | ||
22838 | SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22839 | PyObject *resultobj = 0; | |
22840 | wxDC *arg1 = (wxDC *) 0 ; | |
22841 | void *argp1 = 0 ; | |
22842 | int res1 = 0 ; | |
22843 | PyObject *swig_obj[1] ; | |
22844 | ||
22845 | if (!args) SWIG_fail; | |
22846 | swig_obj[0] = args; | |
22847 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22848 | if (!SWIG_IsOK(res1)) { | |
22849 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22850 | } | |
22851 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22852 | { | |
22853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22854 | (arg1)->ComputeScaleAndOrigin(); | |
22855 | wxPyEndAllowThreads(__tstate); | |
22856 | if (PyErr_Occurred()) SWIG_fail; | |
22857 | } | |
22858 | resultobj = SWIG_Py_Void(); | |
22859 | return resultobj; | |
22860 | fail: | |
22861 | return NULL; | |
22862 | } | |
22863 | ||
22864 | ||
22865 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22866 | PyObject *resultobj = 0; | |
22867 | wxDC *arg1 = (wxDC *) 0 ; | |
22868 | int arg2 ; | |
22869 | int arg3 ; | |
22870 | void *argp1 = 0 ; | |
22871 | int res1 = 0 ; | |
22872 | int val2 ; | |
22873 | int ecode2 = 0 ; | |
22874 | int val3 ; | |
22875 | int ecode3 = 0 ; | |
22876 | PyObject * obj0 = 0 ; | |
22877 | PyObject * obj1 = 0 ; | |
22878 | PyObject * obj2 = 0 ; | |
22879 | char * kwnames[] = { | |
22880 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22881 | }; | |
22882 | ||
22883 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22884 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22885 | if (!SWIG_IsOK(res1)) { | |
22886 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22887 | } | |
22888 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22889 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22890 | if (!SWIG_IsOK(ecode2)) { | |
22891 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'"); | |
22892 | } | |
22893 | arg2 = static_cast< int >(val2); | |
22894 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22895 | if (!SWIG_IsOK(ecode3)) { | |
22896 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'"); | |
22897 | } | |
22898 | arg3 = static_cast< int >(val3); | |
22899 | { | |
22900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22901 | (arg1)->CalcBoundingBox(arg2,arg3); | |
22902 | wxPyEndAllowThreads(__tstate); | |
22903 | if (PyErr_Occurred()) SWIG_fail; | |
22904 | } | |
22905 | resultobj = SWIG_Py_Void(); | |
22906 | return resultobj; | |
22907 | fail: | |
22908 | return NULL; | |
22909 | } | |
22910 | ||
22911 | ||
22912 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22913 | PyObject *resultobj = 0; | |
22914 | wxDC *arg1 = (wxDC *) 0 ; | |
22915 | wxPoint *arg2 = 0 ; | |
22916 | void *argp1 = 0 ; | |
22917 | int res1 = 0 ; | |
22918 | wxPoint temp2 ; | |
22919 | PyObject * obj0 = 0 ; | |
22920 | PyObject * obj1 = 0 ; | |
22921 | char * kwnames[] = { | |
22922 | (char *) "self",(char *) "point", NULL | |
22923 | }; | |
22924 | ||
22925 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
22926 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22927 | if (!SWIG_IsOK(res1)) { | |
22928 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22929 | } | |
22930 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22931 | { | |
22932 | arg2 = &temp2; | |
22933 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22934 | } | |
22935 | { | |
22936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22937 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); | |
22938 | wxPyEndAllowThreads(__tstate); | |
22939 | if (PyErr_Occurred()) SWIG_fail; | |
22940 | } | |
22941 | resultobj = SWIG_Py_Void(); | |
22942 | return resultobj; | |
22943 | fail: | |
22944 | return NULL; | |
22945 | } | |
22946 | ||
22947 | ||
22948 | SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22949 | PyObject *resultobj = 0; | |
22950 | wxDC *arg1 = (wxDC *) 0 ; | |
22951 | void *argp1 = 0 ; | |
22952 | int res1 = 0 ; | |
22953 | PyObject *swig_obj[1] ; | |
22954 | ||
22955 | if (!args) SWIG_fail; | |
22956 | swig_obj[0] = args; | |
22957 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22958 | if (!SWIG_IsOK(res1)) { | |
22959 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22960 | } | |
22961 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22962 | { | |
22963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22964 | (arg1)->ResetBoundingBox(); | |
22965 | wxPyEndAllowThreads(__tstate); | |
22966 | if (PyErr_Occurred()) SWIG_fail; | |
22967 | } | |
22968 | resultobj = SWIG_Py_Void(); | |
22969 | return resultobj; | |
22970 | fail: | |
22971 | return NULL; | |
22972 | } | |
22973 | ||
22974 | ||
22975 | SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22976 | PyObject *resultobj = 0; | |
22977 | wxDC *arg1 = (wxDC *) 0 ; | |
22978 | int result; | |
22979 | void *argp1 = 0 ; | |
22980 | int res1 = 0 ; | |
22981 | PyObject *swig_obj[1] ; | |
22982 | ||
22983 | if (!args) SWIG_fail; | |
22984 | swig_obj[0] = args; | |
22985 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22986 | if (!SWIG_IsOK(res1)) { | |
22987 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22988 | } | |
22989 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22990 | { | |
22991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22992 | result = (int)((wxDC const *)arg1)->MinX(); | |
22993 | wxPyEndAllowThreads(__tstate); | |
22994 | if (PyErr_Occurred()) SWIG_fail; | |
22995 | } | |
22996 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22997 | return resultobj; | |
22998 | fail: | |
22999 | return NULL; | |
23000 | } | |
23001 | ||
23002 | ||
23003 | SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23004 | PyObject *resultobj = 0; | |
23005 | wxDC *arg1 = (wxDC *) 0 ; | |
23006 | int result; | |
23007 | void *argp1 = 0 ; | |
23008 | int res1 = 0 ; | |
23009 | PyObject *swig_obj[1] ; | |
23010 | ||
23011 | if (!args) SWIG_fail; | |
23012 | swig_obj[0] = args; | |
23013 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23014 | if (!SWIG_IsOK(res1)) { | |
23015 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23016 | } | |
23017 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23018 | { | |
23019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23020 | result = (int)((wxDC const *)arg1)->MaxX(); | |
23021 | wxPyEndAllowThreads(__tstate); | |
23022 | if (PyErr_Occurred()) SWIG_fail; | |
23023 | } | |
23024 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23025 | return resultobj; | |
23026 | fail: | |
23027 | return NULL; | |
23028 | } | |
23029 | ||
23030 | ||
23031 | SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23032 | PyObject *resultobj = 0; | |
23033 | wxDC *arg1 = (wxDC *) 0 ; | |
23034 | int result; | |
23035 | void *argp1 = 0 ; | |
23036 | int res1 = 0 ; | |
23037 | PyObject *swig_obj[1] ; | |
23038 | ||
23039 | if (!args) SWIG_fail; | |
23040 | swig_obj[0] = args; | |
23041 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23042 | if (!SWIG_IsOK(res1)) { | |
23043 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23044 | } | |
23045 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23046 | { | |
23047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23048 | result = (int)((wxDC const *)arg1)->MinY(); | |
23049 | wxPyEndAllowThreads(__tstate); | |
23050 | if (PyErr_Occurred()) SWIG_fail; | |
23051 | } | |
23052 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23053 | return resultobj; | |
23054 | fail: | |
23055 | return NULL; | |
23056 | } | |
23057 | ||
23058 | ||
23059 | SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23060 | PyObject *resultobj = 0; | |
23061 | wxDC *arg1 = (wxDC *) 0 ; | |
23062 | int result; | |
23063 | void *argp1 = 0 ; | |
23064 | int res1 = 0 ; | |
23065 | PyObject *swig_obj[1] ; | |
23066 | ||
23067 | if (!args) SWIG_fail; | |
23068 | swig_obj[0] = args; | |
23069 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23070 | if (!SWIG_IsOK(res1)) { | |
23071 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23072 | } | |
23073 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23074 | { | |
23075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23076 | result = (int)((wxDC const *)arg1)->MaxY(); | |
23077 | wxPyEndAllowThreads(__tstate); | |
23078 | if (PyErr_Occurred()) SWIG_fail; | |
23079 | } | |
23080 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23081 | return resultobj; | |
23082 | fail: | |
23083 | return NULL; | |
23084 | } | |
23085 | ||
23086 | ||
23087 | SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23088 | PyObject *resultobj = 0; | |
23089 | wxDC *arg1 = (wxDC *) 0 ; | |
23090 | int *arg2 = (int *) 0 ; | |
23091 | int *arg3 = (int *) 0 ; | |
23092 | int *arg4 = (int *) 0 ; | |
23093 | int *arg5 = (int *) 0 ; | |
23094 | void *argp1 = 0 ; | |
23095 | int res1 = 0 ; | |
23096 | int temp2 ; | |
23097 | int res2 = SWIG_TMPOBJ ; | |
23098 | int temp3 ; | |
23099 | int res3 = SWIG_TMPOBJ ; | |
23100 | int temp4 ; | |
23101 | int res4 = SWIG_TMPOBJ ; | |
23102 | int temp5 ; | |
23103 | int res5 = SWIG_TMPOBJ ; | |
23104 | PyObject *swig_obj[1] ; | |
23105 | ||
23106 | arg2 = &temp2; | |
23107 | arg3 = &temp3; | |
23108 | arg4 = &temp4; | |
23109 | arg5 = &temp5; | |
23110 | if (!args) SWIG_fail; | |
23111 | swig_obj[0] = args; | |
23112 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23113 | if (!SWIG_IsOK(res1)) { | |
23114 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23115 | } | |
23116 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23117 | { | |
23118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23119 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
23120 | wxPyEndAllowThreads(__tstate); | |
23121 | if (PyErr_Occurred()) SWIG_fail; | |
23122 | } | |
23123 | resultobj = SWIG_Py_Void(); | |
23124 | if (SWIG_IsTmpObj(res2)) { | |
23125 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23126 | } else { | |
23127 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23128 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23129 | } | |
23130 | if (SWIG_IsTmpObj(res3)) { | |
23131 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23132 | } else { | |
23133 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23134 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23135 | } | |
23136 | if (SWIG_IsTmpObj(res4)) { | |
23137 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
23138 | } else { | |
23139 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23140 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
23141 | } | |
23142 | if (SWIG_IsTmpObj(res5)) { | |
23143 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
23144 | } else { | |
23145 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23146 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
23147 | } | |
23148 | return resultobj; | |
23149 | fail: | |
23150 | return NULL; | |
23151 | } | |
23152 | ||
23153 | ||
b39fe951 RD |
23154 | SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23155 | PyObject *resultobj = 0; | |
23156 | wxDC *arg1 = (wxDC *) 0 ; | |
23157 | wxLayoutDirection result; | |
23158 | void *argp1 = 0 ; | |
23159 | int res1 = 0 ; | |
23160 | PyObject *swig_obj[1] ; | |
23161 | ||
23162 | if (!args) SWIG_fail; | |
23163 | swig_obj[0] = args; | |
23164 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23165 | if (!SWIG_IsOK(res1)) { | |
23166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23167 | } | |
23168 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23169 | { | |
23170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23171 | result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection(); | |
23172 | wxPyEndAllowThreads(__tstate); | |
23173 | if (PyErr_Occurred()) SWIG_fail; | |
23174 | } | |
23175 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23176 | return resultobj; | |
23177 | fail: | |
23178 | return NULL; | |
23179 | } | |
23180 | ||
23181 | ||
23182 | SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23183 | PyObject *resultobj = 0; | |
23184 | wxDC *arg1 = (wxDC *) 0 ; | |
23185 | wxLayoutDirection arg2 ; | |
23186 | void *argp1 = 0 ; | |
23187 | int res1 = 0 ; | |
23188 | int val2 ; | |
23189 | int ecode2 = 0 ; | |
23190 | PyObject * obj0 = 0 ; | |
23191 | PyObject * obj1 = 0 ; | |
23192 | char * kwnames[] = { | |
23193 | (char *) "self",(char *) "dir", NULL | |
23194 | }; | |
23195 | ||
23196 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail; | |
23197 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23198 | if (!SWIG_IsOK(res1)) { | |
23199 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23200 | } | |
23201 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23202 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23203 | if (!SWIG_IsOK(ecode2)) { | |
23204 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'"); | |
23205 | } | |
23206 | arg2 = static_cast< wxLayoutDirection >(val2); | |
23207 | { | |
23208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23209 | (arg1)->SetLayoutDirection(arg2); | |
23210 | wxPyEndAllowThreads(__tstate); | |
23211 | if (PyErr_Occurred()) SWIG_fail; | |
23212 | } | |
23213 | resultobj = SWIG_Py_Void(); | |
23214 | return resultobj; | |
23215 | fail: | |
23216 | return NULL; | |
23217 | } | |
23218 | ||
23219 | ||
0085ce49 RD |
23220 | SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
23221 | PyObject *resultobj = 0; | |
23222 | wxDC *arg1 = (wxDC *) 0 ; | |
23223 | PyObject *arg2 = (PyObject *) 0 ; | |
23224 | PyObject *arg3 = (PyObject *) 0 ; | |
23225 | PyObject *arg4 = (PyObject *) 0 ; | |
23226 | PyObject *result = 0 ; | |
23227 | void *argp1 = 0 ; | |
23228 | int res1 = 0 ; | |
23229 | PyObject * obj0 = 0 ; | |
23230 | PyObject * obj1 = 0 ; | |
23231 | PyObject * obj2 = 0 ; | |
23232 | PyObject * obj3 = 0 ; | |
23233 | char * kwnames[] = { | |
23234 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23235 | }; | |
23236 | ||
23237 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23238 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23239 | if (!SWIG_IsOK(res1)) { | |
23240 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23241 | } | |
23242 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23243 | arg2 = obj1; | |
23244 | arg3 = obj2; | |
23245 | arg4 = obj3; | |
23246 | { | |
23247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23248 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
23249 | wxPyEndAllowThreads(__tstate); | |
23250 | if (PyErr_Occurred()) SWIG_fail; | |
23251 | } | |
23252 | resultobj = result; | |
23253 | return resultobj; | |
23254 | fail: | |
23255 | return NULL; | |
23256 | } | |
23257 | ||
23258 | ||
23259 | SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23260 | PyObject *resultobj = 0; | |
23261 | wxDC *arg1 = (wxDC *) 0 ; | |
23262 | PyObject *arg2 = (PyObject *) 0 ; | |
23263 | PyObject *arg3 = (PyObject *) 0 ; | |
23264 | PyObject *arg4 = (PyObject *) 0 ; | |
23265 | PyObject *result = 0 ; | |
23266 | void *argp1 = 0 ; | |
23267 | int res1 = 0 ; | |
23268 | PyObject * obj0 = 0 ; | |
23269 | PyObject * obj1 = 0 ; | |
23270 | PyObject * obj2 = 0 ; | |
23271 | PyObject * obj3 = 0 ; | |
23272 | char * kwnames[] = { | |
23273 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23274 | }; | |
23275 | ||
23276 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23277 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23278 | if (!SWIG_IsOK(res1)) { | |
23279 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23280 | } | |
23281 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23282 | arg2 = obj1; | |
23283 | arg3 = obj2; | |
23284 | arg4 = obj3; | |
23285 | { | |
23286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23287 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
23288 | wxPyEndAllowThreads(__tstate); | |
23289 | if (PyErr_Occurred()) SWIG_fail; | |
23290 | } | |
23291 | resultobj = result; | |
23292 | return resultobj; | |
23293 | fail: | |
23294 | return NULL; | |
23295 | } | |
23296 | ||
23297 | ||
23298 | SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23299 | PyObject *resultobj = 0; | |
23300 | wxDC *arg1 = (wxDC *) 0 ; | |
23301 | PyObject *arg2 = (PyObject *) 0 ; | |
23302 | PyObject *arg3 = (PyObject *) 0 ; | |
23303 | PyObject *arg4 = (PyObject *) 0 ; | |
23304 | PyObject *result = 0 ; | |
23305 | void *argp1 = 0 ; | |
23306 | int res1 = 0 ; | |
23307 | PyObject * obj0 = 0 ; | |
23308 | PyObject * obj1 = 0 ; | |
23309 | PyObject * obj2 = 0 ; | |
23310 | PyObject * obj3 = 0 ; | |
23311 | char * kwnames[] = { | |
23312 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23313 | }; | |
23314 | ||
23315 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23316 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23317 | if (!SWIG_IsOK(res1)) { | |
23318 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23319 | } | |
23320 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23321 | arg2 = obj1; | |
23322 | arg3 = obj2; | |
23323 | arg4 = obj3; | |
23324 | { | |
23325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23326 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
23327 | wxPyEndAllowThreads(__tstate); | |
23328 | if (PyErr_Occurred()) SWIG_fail; | |
23329 | } | |
23330 | resultobj = result; | |
23331 | return resultobj; | |
23332 | fail: | |
23333 | return NULL; | |
23334 | } | |
23335 | ||
23336 | ||
23337 | SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23338 | PyObject *resultobj = 0; | |
23339 | wxDC *arg1 = (wxDC *) 0 ; | |
23340 | PyObject *arg2 = (PyObject *) 0 ; | |
23341 | PyObject *arg3 = (PyObject *) 0 ; | |
23342 | PyObject *arg4 = (PyObject *) 0 ; | |
23343 | PyObject *result = 0 ; | |
23344 | void *argp1 = 0 ; | |
23345 | int res1 = 0 ; | |
23346 | PyObject * obj0 = 0 ; | |
23347 | PyObject * obj1 = 0 ; | |
23348 | PyObject * obj2 = 0 ; | |
23349 | PyObject * obj3 = 0 ; | |
23350 | char * kwnames[] = { | |
23351 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23352 | }; | |
23353 | ||
23354 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23355 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23356 | if (!SWIG_IsOK(res1)) { | |
23357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23358 | } | |
23359 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23360 | arg2 = obj1; | |
23361 | arg3 = obj2; | |
23362 | arg4 = obj3; | |
23363 | { | |
23364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23365 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
23366 | wxPyEndAllowThreads(__tstate); | |
23367 | if (PyErr_Occurred()) SWIG_fail; | |
23368 | } | |
23369 | resultobj = result; | |
23370 | return resultobj; | |
23371 | fail: | |
23372 | return NULL; | |
23373 | } | |
23374 | ||
23375 | ||
23376 | SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23377 | PyObject *resultobj = 0; | |
23378 | wxDC *arg1 = (wxDC *) 0 ; | |
23379 | PyObject *arg2 = (PyObject *) 0 ; | |
23380 | PyObject *arg3 = (PyObject *) 0 ; | |
23381 | PyObject *arg4 = (PyObject *) 0 ; | |
23382 | PyObject *result = 0 ; | |
23383 | void *argp1 = 0 ; | |
23384 | int res1 = 0 ; | |
23385 | PyObject * obj0 = 0 ; | |
23386 | PyObject * obj1 = 0 ; | |
23387 | PyObject * obj2 = 0 ; | |
23388 | PyObject * obj3 = 0 ; | |
23389 | char * kwnames[] = { | |
23390 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23391 | }; | |
23392 | ||
23393 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23394 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23395 | if (!SWIG_IsOK(res1)) { | |
23396 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23397 | } | |
23398 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23399 | arg2 = obj1; | |
23400 | arg3 = obj2; | |
23401 | arg4 = obj3; | |
23402 | { | |
23403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23404 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
23405 | wxPyEndAllowThreads(__tstate); | |
23406 | if (PyErr_Occurred()) SWIG_fail; | |
23407 | } | |
23408 | resultobj = result; | |
23409 | return resultobj; | |
23410 | fail: | |
23411 | return NULL; | |
23412 | } | |
23413 | ||
23414 | ||
23415 | SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23416 | PyObject *resultobj = 0; | |
23417 | wxDC *arg1 = (wxDC *) 0 ; | |
23418 | PyObject *arg2 = (PyObject *) 0 ; | |
23419 | PyObject *arg3 = (PyObject *) 0 ; | |
23420 | PyObject *arg4 = (PyObject *) 0 ; | |
23421 | PyObject *arg5 = (PyObject *) 0 ; | |
23422 | PyObject *result = 0 ; | |
23423 | void *argp1 = 0 ; | |
23424 | int res1 = 0 ; | |
23425 | PyObject * obj0 = 0 ; | |
23426 | PyObject * obj1 = 0 ; | |
23427 | PyObject * obj2 = 0 ; | |
23428 | PyObject * obj3 = 0 ; | |
23429 | PyObject * obj4 = 0 ; | |
23430 | char * kwnames[] = { | |
23431 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
23432 | }; | |
23433 | ||
23434 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
23435 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23436 | if (!SWIG_IsOK(res1)) { | |
23437 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23438 | } | |
23439 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23440 | arg2 = obj1; | |
23441 | arg3 = obj2; | |
23442 | arg4 = obj3; | |
23443 | arg5 = obj4; | |
23444 | { | |
23445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23446 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
23447 | wxPyEndAllowThreads(__tstate); | |
23448 | if (PyErr_Occurred()) SWIG_fail; | |
23449 | } | |
23450 | resultobj = result; | |
23451 | return resultobj; | |
23452 | fail: | |
23453 | return NULL; | |
23454 | } | |
23455 | ||
23456 | ||
23457 | SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23458 | PyObject *obj; | |
23459 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23460 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj)); | |
23461 | return SWIG_Py_Void(); | |
23462 | } | |
23463 | ||
70d7cb34 RD |
23464 | SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
23465 | PyObject *resultobj = 0; | |
23466 | wxDC *arg1 = 0 ; | |
23467 | wxColour *arg2 = 0 ; | |
23468 | wxDCTextColourChanger *result = 0 ; | |
23469 | void *argp1 = 0 ; | |
23470 | int res1 = 0 ; | |
23471 | wxColour temp2 ; | |
23472 | PyObject * obj0 = 0 ; | |
23473 | PyObject * obj1 = 0 ; | |
23474 | char * kwnames[] = { | |
23475 | (char *) "dc",(char *) "col", NULL | |
23476 | }; | |
23477 | ||
23478 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
23479 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23480 | if (!SWIG_IsOK(res1)) { | |
23481 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23482 | } | |
23483 | if (!argp1) { | |
23484 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23485 | } | |
23486 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23487 | { | |
23488 | arg2 = &temp2; | |
23489 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23490 | } | |
23491 | { | |
23492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23493 | result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2); | |
23494 | wxPyEndAllowThreads(__tstate); | |
23495 | if (PyErr_Occurred()) SWIG_fail; | |
23496 | } | |
23497 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 ); | |
23498 | return resultobj; | |
23499 | fail: | |
23500 | return NULL; | |
23501 | } | |
23502 | ||
23503 | ||
23504 | SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23505 | PyObject *resultobj = 0; | |
23506 | wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ; | |
23507 | void *argp1 = 0 ; | |
23508 | int res1 = 0 ; | |
23509 | PyObject *swig_obj[1] ; | |
23510 | ||
23511 | if (!args) SWIG_fail; | |
23512 | swig_obj[0] = args; | |
23513 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 ); | |
23514 | if (!SWIG_IsOK(res1)) { | |
23515 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'"); | |
23516 | } | |
23517 | arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1); | |
23518 | { | |
23519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23520 | delete arg1; | |
23521 | ||
23522 | wxPyEndAllowThreads(__tstate); | |
23523 | if (PyErr_Occurred()) SWIG_fail; | |
23524 | } | |
23525 | resultobj = SWIG_Py_Void(); | |
23526 | return resultobj; | |
23527 | fail: | |
23528 | return NULL; | |
23529 | } | |
23530 | ||
23531 | ||
23532 | SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23533 | PyObject *obj; | |
23534 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23535 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj)); | |
23536 | return SWIG_Py_Void(); | |
23537 | } | |
23538 | ||
23539 | SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23540 | return SWIG_Python_InitShadowInstance(args); | |
23541 | } | |
23542 | ||
23543 | SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23544 | PyObject *resultobj = 0; | |
23545 | wxDC *arg1 = 0 ; | |
23546 | wxPen *arg2 = 0 ; | |
23547 | wxDCPenChanger *result = 0 ; | |
23548 | void *argp1 = 0 ; | |
23549 | int res1 = 0 ; | |
23550 | void *argp2 = 0 ; | |
23551 | int res2 = 0 ; | |
23552 | PyObject * obj0 = 0 ; | |
23553 | PyObject * obj1 = 0 ; | |
23554 | char * kwnames[] = { | |
23555 | (char *) "dc",(char *) "pen", NULL | |
23556 | }; | |
23557 | ||
23558 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
23559 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23560 | if (!SWIG_IsOK(res1)) { | |
23561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23562 | } | |
23563 | if (!argp1) { | |
23564 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23565 | } | |
23566 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23567 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
23568 | if (!SWIG_IsOK(res2)) { | |
23569 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
23570 | } | |
23571 | if (!argp2) { | |
23572 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
23573 | } | |
23574 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
23575 | { | |
23576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23577 | result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2); | |
23578 | wxPyEndAllowThreads(__tstate); | |
23579 | if (PyErr_Occurred()) SWIG_fail; | |
23580 | } | |
23581 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 ); | |
23582 | return resultobj; | |
23583 | fail: | |
23584 | return NULL; | |
23585 | } | |
23586 | ||
23587 | ||
23588 | SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23589 | PyObject *resultobj = 0; | |
23590 | wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ; | |
23591 | void *argp1 = 0 ; | |
23592 | int res1 = 0 ; | |
23593 | PyObject *swig_obj[1] ; | |
23594 | ||
23595 | if (!args) SWIG_fail; | |
23596 | swig_obj[0] = args; | |
23597 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 ); | |
23598 | if (!SWIG_IsOK(res1)) { | |
23599 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'"); | |
23600 | } | |
23601 | arg1 = reinterpret_cast< wxDCPenChanger * >(argp1); | |
23602 | { | |
23603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23604 | delete arg1; | |
23605 | ||
23606 | wxPyEndAllowThreads(__tstate); | |
23607 | if (PyErr_Occurred()) SWIG_fail; | |
23608 | } | |
23609 | resultobj = SWIG_Py_Void(); | |
23610 | return resultobj; | |
23611 | fail: | |
23612 | return NULL; | |
23613 | } | |
23614 | ||
23615 | ||
23616 | SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23617 | PyObject *obj; | |
23618 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23619 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj)); | |
23620 | return SWIG_Py_Void(); | |
23621 | } | |
23622 | ||
23623 | SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23624 | return SWIG_Python_InitShadowInstance(args); | |
23625 | } | |
23626 | ||
23627 | SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23628 | PyObject *resultobj = 0; | |
23629 | wxDC *arg1 = 0 ; | |
23630 | wxBrush *arg2 = 0 ; | |
23631 | wxDCBrushChanger *result = 0 ; | |
23632 | void *argp1 = 0 ; | |
23633 | int res1 = 0 ; | |
23634 | void *argp2 = 0 ; | |
23635 | int res2 = 0 ; | |
23636 | PyObject * obj0 = 0 ; | |
23637 | PyObject * obj1 = 0 ; | |
23638 | char * kwnames[] = { | |
23639 | (char *) "dc",(char *) "brush", NULL | |
23640 | }; | |
23641 | ||
23642 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
23643 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23644 | if (!SWIG_IsOK(res1)) { | |
23645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23646 | } | |
23647 | if (!argp1) { | |
23648 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23649 | } | |
23650 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23651 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
23652 | if (!SWIG_IsOK(res2)) { | |
23653 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
23654 | } | |
23655 | if (!argp2) { | |
23656 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
23657 | } | |
23658 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
23659 | { | |
23660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23661 | result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2); | |
23662 | wxPyEndAllowThreads(__tstate); | |
23663 | if (PyErr_Occurred()) SWIG_fail; | |
23664 | } | |
23665 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 ); | |
23666 | return resultobj; | |
23667 | fail: | |
23668 | return NULL; | |
23669 | } | |
23670 | ||
23671 | ||
23672 | SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23673 | PyObject *resultobj = 0; | |
23674 | wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ; | |
23675 | void *argp1 = 0 ; | |
23676 | int res1 = 0 ; | |
23677 | PyObject *swig_obj[1] ; | |
23678 | ||
23679 | if (!args) SWIG_fail; | |
23680 | swig_obj[0] = args; | |
23681 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 ); | |
23682 | if (!SWIG_IsOK(res1)) { | |
23683 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'"); | |
23684 | } | |
23685 | arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1); | |
23686 | { | |
23687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23688 | delete arg1; | |
23689 | ||
23690 | wxPyEndAllowThreads(__tstate); | |
23691 | if (PyErr_Occurred()) SWIG_fail; | |
23692 | } | |
23693 | resultobj = SWIG_Py_Void(); | |
23694 | return resultobj; | |
23695 | fail: | |
23696 | return NULL; | |
23697 | } | |
23698 | ||
23699 | ||
23700 | SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23701 | PyObject *obj; | |
23702 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23703 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj)); | |
23704 | return SWIG_Py_Void(); | |
23705 | } | |
23706 | ||
23707 | SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23708 | return SWIG_Python_InitShadowInstance(args); | |
23709 | } | |
23710 | ||
23711 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
23712 | PyObject *resultobj = 0; | |
23713 | wxDC *arg1 = 0 ; | |
23714 | wxRegion *arg2 = 0 ; | |
23715 | wxDCClipper *result = 0 ; | |
23716 | void *argp1 = 0 ; | |
23717 | int res1 = 0 ; | |
23718 | void *argp2 = 0 ; | |
23719 | int res2 = 0 ; | |
23720 | ||
23721 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
23722 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23723 | if (!SWIG_IsOK(res1)) { | |
23724 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23725 | } | |
23726 | if (!argp1) { | |
23727 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23728 | } | |
23729 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23730 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
23731 | if (!SWIG_IsOK(res2)) { | |
23732 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
23733 | } | |
23734 | if (!argp2) { | |
23735 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
23736 | } | |
23737 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
23738 | { | |
23739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23740 | result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2); | |
23741 | wxPyEndAllowThreads(__tstate); | |
23742 | if (PyErr_Occurred()) SWIG_fail; | |
23743 | } | |
23744 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
23745 | return resultobj; | |
23746 | fail: | |
23747 | return NULL; | |
23748 | } | |
23749 | ||
23750 | ||
23751 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
23752 | PyObject *resultobj = 0; | |
23753 | wxDC *arg1 = 0 ; | |
23754 | wxRect *arg2 = 0 ; | |
23755 | wxDCClipper *result = 0 ; | |
23756 | void *argp1 = 0 ; | |
23757 | int res1 = 0 ; | |
23758 | wxRect temp2 ; | |
23759 | ||
23760 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
23761 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23762 | if (!SWIG_IsOK(res1)) { | |
23763 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23764 | } | |
23765 | if (!argp1) { | |
23766 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23767 | } | |
23768 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23769 | { | |
23770 | arg2 = &temp2; | |
23771 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
23772 | } | |
23773 | { | |
23774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23775 | result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2); | |
23776 | wxPyEndAllowThreads(__tstate); | |
23777 | if (PyErr_Occurred()) SWIG_fail; | |
23778 | } | |
23779 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
23780 | return resultobj; | |
23781 | fail: | |
23782 | return NULL; | |
23783 | } | |
23784 | ||
23785 | ||
23786 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
23787 | PyObject *resultobj = 0; | |
23788 | wxDC *arg1 = 0 ; | |
23789 | int arg2 ; | |
23790 | int arg3 ; | |
23791 | int arg4 ; | |
23792 | int arg5 ; | |
23793 | wxDCClipper *result = 0 ; | |
23794 | void *argp1 = 0 ; | |
23795 | int res1 = 0 ; | |
23796 | int val2 ; | |
23797 | int ecode2 = 0 ; | |
23798 | int val3 ; | |
23799 | int ecode3 = 0 ; | |
23800 | int val4 ; | |
23801 | int ecode4 = 0 ; | |
23802 | int val5 ; | |
23803 | int ecode5 = 0 ; | |
23804 | ||
23805 | if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; | |
23806 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23807 | if (!SWIG_IsOK(res1)) { | |
23808 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23809 | } | |
23810 | if (!argp1) { | |
23811 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23812 | } | |
23813 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23814 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
23815 | if (!SWIG_IsOK(ecode2)) { | |
23816 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'"); | |
23817 | } | |
23818 | arg2 = static_cast< int >(val2); | |
23819 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
23820 | if (!SWIG_IsOK(ecode3)) { | |
23821 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'"); | |
23822 | } | |
23823 | arg3 = static_cast< int >(val3); | |
23824 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
23825 | if (!SWIG_IsOK(ecode4)) { | |
23826 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'"); | |
23827 | } | |
23828 | arg4 = static_cast< int >(val4); | |
23829 | ecode5 = SWIG_AsVal_int(swig_obj[4], &val5); | |
23830 | if (!SWIG_IsOK(ecode5)) { | |
23831 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'"); | |
23832 | } | |
23833 | arg5 = static_cast< int >(val5); | |
23834 | { | |
23835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23836 | result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5); | |
23837 | wxPyEndAllowThreads(__tstate); | |
23838 | if (PyErr_Occurred()) SWIG_fail; | |
23839 | } | |
23840 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
23841 | return resultobj; | |
23842 | fail: | |
23843 | return NULL; | |
23844 | } | |
23845 | ||
23846 | ||
23847 | SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) { | |
23848 | int argc; | |
23849 | PyObject *argv[6]; | |
23850 | ||
23851 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail; | |
23852 | --argc; | |
23853 | if (argc == 2) { | |
23854 | int _v = 0; | |
23855 | { | |
23856 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0); | |
23857 | _v = SWIG_CheckState(res); | |
23858 | } | |
23859 | if (!_v) goto check_1; | |
23860 | return _wrap_new_DCClipper__SWIG_0(self, argc, argv); | |
23861 | } | |
23862 | check_1: | |
23863 | ||
23864 | if (argc == 2) { | |
23865 | return _wrap_new_DCClipper__SWIG_1(self, argc, argv); | |
23866 | } | |
23867 | if (argc == 5) { | |
23868 | return _wrap_new_DCClipper__SWIG_2(self, argc, argv); | |
23869 | } | |
23870 | ||
23871 | fail: | |
23872 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'"); | |
23873 | return NULL; | |
23874 | } | |
23875 | ||
23876 | ||
23877 | SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23878 | PyObject *resultobj = 0; | |
23879 | wxDCClipper *arg1 = (wxDCClipper *) 0 ; | |
23880 | void *argp1 = 0 ; | |
23881 | int res1 = 0 ; | |
23882 | PyObject *swig_obj[1] ; | |
23883 | ||
23884 | if (!args) SWIG_fail; | |
23885 | swig_obj[0] = args; | |
23886 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 ); | |
23887 | if (!SWIG_IsOK(res1)) { | |
23888 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'"); | |
23889 | } | |
23890 | arg1 = reinterpret_cast< wxDCClipper * >(argp1); | |
23891 | { | |
23892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23893 | delete arg1; | |
23894 | ||
23895 | wxPyEndAllowThreads(__tstate); | |
23896 | if (PyErr_Occurred()) SWIG_fail; | |
23897 | } | |
23898 | resultobj = SWIG_Py_Void(); | |
23899 | return resultobj; | |
23900 | fail: | |
23901 | return NULL; | |
23902 | } | |
23903 | ||
23904 | ||
23905 | SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23906 | PyObject *obj; | |
23907 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23908 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj)); | |
23909 | return SWIG_Py_Void(); | |
23910 | } | |
23911 | ||
23912 | SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23913 | return SWIG_Python_InitShadowInstance(args); | |
23914 | } | |
23915 | ||
8e99bda9 | 23916 | SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 23917 | PyObject *resultobj = 0; |
8f514ab4 | 23918 | wxBitmap &arg1_defvalue = wxNullBitmap ; |
8e99bda9 | 23919 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; |
0085ce49 | 23920 | wxMemoryDC *result = 0 ; |
8e99bda9 RD |
23921 | void *argp1 = 0 ; |
23922 | int res1 = 0 ; | |
23923 | PyObject * obj0 = 0 ; | |
23924 | char * kwnames[] = { | |
23925 | (char *) "bitmap", NULL | |
23926 | }; | |
0085ce49 | 23927 | |
8e99bda9 RD |
23928 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail; |
23929 | if (obj0) { | |
8f514ab4 | 23930 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 ); |
8e99bda9 | 23931 | if (!SWIG_IsOK(res1)) { |
8f514ab4 | 23932 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'"); |
8e99bda9 RD |
23933 | } |
23934 | if (!argp1) { | |
8f514ab4 | 23935 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'"); |
8e99bda9 RD |
23936 | } |
23937 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
23938 | } | |
0085ce49 RD |
23939 | { |
23940 | if (!wxPyCheckForApp()) SWIG_fail; | |
23941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8f514ab4 | 23942 | result = (wxMemoryDC *)new wxMemoryDC(*arg1); |
0085ce49 RD |
23943 | wxPyEndAllowThreads(__tstate); |
23944 | if (PyErr_Occurred()) SWIG_fail; | |
23945 | } | |
23946 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 ); | |
23947 | return resultobj; | |
23948 | fail: | |
23949 | return NULL; | |
23950 | } | |
23951 | ||
23952 | ||
23953 | SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23954 | PyObject *resultobj = 0; | |
23955 | wxDC *arg1 = (wxDC *) 0 ; | |
23956 | wxMemoryDC *result = 0 ; | |
23957 | void *argp1 = 0 ; | |
23958 | int res1 = 0 ; | |
23959 | PyObject * obj0 = 0 ; | |
23960 | char * kwnames[] = { | |
23961 | (char *) "oldDC", NULL | |
23962 | }; | |
23963 | ||
23964 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail; | |
23965 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23966 | if (!SWIG_IsOK(res1)) { | |
23967 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23968 | } | |
23969 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23970 | { | |
23971 | if (!wxPyCheckForApp()) SWIG_fail; | |
23972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23973 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
23974 | wxPyEndAllowThreads(__tstate); | |
23975 | if (PyErr_Occurred()) SWIG_fail; | |
23976 | } | |
23977 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 ); | |
23978 | return resultobj; | |
23979 | fail: | |
23980 | return NULL; | |
23981 | } | |
23982 | ||
23983 | ||
23984 | SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23985 | PyObject *resultobj = 0; | |
23986 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
23987 | wxBitmap *arg2 = 0 ; | |
23988 | void *argp1 = 0 ; | |
23989 | int res1 = 0 ; | |
23990 | void *argp2 = 0 ; | |
23991 | int res2 = 0 ; | |
23992 | PyObject * obj0 = 0 ; | |
23993 | PyObject * obj1 = 0 ; | |
23994 | char * kwnames[] = { | |
23995 | (char *) "self",(char *) "bitmap", NULL | |
23996 | }; | |
23997 | ||
23998 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail; | |
23999 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 ); | |
24000 | if (!SWIG_IsOK(res1)) { | |
24001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'"); | |
24002 | } | |
24003 | arg1 = reinterpret_cast< wxMemoryDC * >(argp1); | |
8f514ab4 RD |
24004 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 ); |
24005 | if (!SWIG_IsOK(res2)) { | |
24006 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
24007 | } | |
24008 | if (!argp2) { | |
24009 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
24010 | } | |
24011 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
24012 | { | |
24013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24014 | (arg1)->SelectObject(*arg2); | |
24015 | wxPyEndAllowThreads(__tstate); | |
24016 | if (PyErr_Occurred()) SWIG_fail; | |
24017 | } | |
24018 | resultobj = SWIG_Py_Void(); | |
24019 | return resultobj; | |
24020 | fail: | |
24021 | return NULL; | |
24022 | } | |
24023 | ||
24024 | ||
24025 | SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24026 | PyObject *resultobj = 0; | |
24027 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
24028 | wxBitmap *arg2 = 0 ; | |
24029 | void *argp1 = 0 ; | |
24030 | int res1 = 0 ; | |
24031 | void *argp2 = 0 ; | |
24032 | int res2 = 0 ; | |
24033 | PyObject * obj0 = 0 ; | |
24034 | PyObject * obj1 = 0 ; | |
24035 | char * kwnames[] = { | |
24036 | (char *) "self",(char *) "bmp", NULL | |
24037 | }; | |
24038 | ||
24039 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail; | |
24040 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 ); | |
24041 | if (!SWIG_IsOK(res1)) { | |
24042 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'"); | |
24043 | } | |
24044 | arg1 = reinterpret_cast< wxMemoryDC * >(argp1); | |
0085ce49 RD |
24045 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); |
24046 | if (!SWIG_IsOK(res2)) { | |
8f514ab4 | 24047 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'"); |
0085ce49 RD |
24048 | } |
24049 | if (!argp2) { | |
8f514ab4 | 24050 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'"); |
0085ce49 RD |
24051 | } |
24052 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
24053 | { | |
24054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8f514ab4 | 24055 | (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2); |
0085ce49 RD |
24056 | wxPyEndAllowThreads(__tstate); |
24057 | if (PyErr_Occurred()) SWIG_fail; | |
24058 | } | |
24059 | resultobj = SWIG_Py_Void(); | |
24060 | return resultobj; | |
24061 | fail: | |
24062 | return NULL; | |
24063 | } | |
24064 | ||
24065 | ||
24066 | SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24067 | PyObject *obj; | |
24068 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24069 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj)); | |
24070 | return SWIG_Py_Void(); | |
24071 | } | |
24072 | ||
24073 | SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24074 | return SWIG_Python_InitShadowInstance(args); | |
24075 | } | |
24076 | ||
24f6c4e8 RD |
24077 | SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24078 | PyObject *resultobj = 0; | |
24079 | wxScreenDC *result = 0 ; | |
24080 | ||
24081 | if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail; | |
24082 | { | |
24083 | if (!wxPyCheckForApp()) SWIG_fail; | |
24084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24085 | result = (wxScreenDC *)new wxScreenDC(); | |
24086 | wxPyEndAllowThreads(__tstate); | |
24087 | if (PyErr_Occurred()) SWIG_fail; | |
24088 | } | |
24089 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 ); | |
24090 | return resultobj; | |
24091 | fail: | |
24092 | return NULL; | |
24093 | } | |
24094 | ||
24095 | ||
24096 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24097 | PyObject *resultobj = 0; | |
24098 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
24099 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24100 | bool result; | |
24101 | void *argp1 = 0 ; | |
24102 | int res1 = 0 ; | |
24103 | void *argp2 = 0 ; | |
24104 | int res2 = 0 ; | |
24105 | PyObject * obj0 = 0 ; | |
24106 | PyObject * obj1 = 0 ; | |
24107 | char * kwnames[] = { | |
24108 | (char *) "self",(char *) "window", NULL | |
24109 | }; | |
24110 | ||
24111 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail; | |
24112 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
24113 | if (!SWIG_IsOK(res1)) { | |
24114 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
24115 | } | |
24116 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
24117 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24118 | if (!SWIG_IsOK(res2)) { | |
24119 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
24120 | } | |
24121 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
24122 | { | |
24123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24124 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
24125 | wxPyEndAllowThreads(__tstate); | |
24126 | if (PyErr_Occurred()) SWIG_fail; | |
24127 | } | |
24128 | { | |
24129 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24130 | } | |
24131 | return resultobj; | |
24132 | fail: | |
24133 | return NULL; | |
24134 | } | |
24135 | ||
24136 | ||
24137 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24138 | PyObject *resultobj = 0; | |
24139 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
24140 | wxRect *arg2 = (wxRect *) NULL ; | |
24141 | bool result; | |
24142 | void *argp1 = 0 ; | |
24143 | int res1 = 0 ; | |
24144 | void *argp2 = 0 ; | |
24145 | int res2 = 0 ; | |
24146 | PyObject * obj0 = 0 ; | |
24147 | PyObject * obj1 = 0 ; | |
24148 | char * kwnames[] = { | |
24149 | (char *) "self",(char *) "rect", NULL | |
24150 | }; | |
24151 | ||
24152 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail; | |
24153 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
24154 | if (!SWIG_IsOK(res1)) { | |
24155 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
24156 | } | |
24157 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
24158 | if (obj1) { | |
24159 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 ); | |
24160 | if (!SWIG_IsOK(res2)) { | |
24161 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'"); | |
24162 | } | |
24163 | arg2 = reinterpret_cast< wxRect * >(argp2); | |
24164 | } | |
24165 | { | |
24166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24167 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
24168 | wxPyEndAllowThreads(__tstate); | |
24169 | if (PyErr_Occurred()) SWIG_fail; | |
24170 | } | |
24171 | { | |
24172 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24173 | } | |
24174 | return resultobj; | |
24175 | fail: | |
24176 | return NULL; | |
24177 | } | |
24178 | ||
24179 | ||
24180 | SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24181 | PyObject *resultobj = 0; | |
24182 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
24183 | bool result; | |
24184 | void *argp1 = 0 ; | |
24185 | int res1 = 0 ; | |
24186 | PyObject *swig_obj[1] ; | |
24187 | ||
24188 | if (!args) SWIG_fail; | |
24189 | swig_obj[0] = args; | |
24190 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
24191 | if (!SWIG_IsOK(res1)) { | |
24192 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
24193 | } | |
24194 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
24195 | { | |
24196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24197 | result = (bool)(arg1)->EndDrawingOnTop(); | |
24198 | wxPyEndAllowThreads(__tstate); | |
24199 | if (PyErr_Occurred()) SWIG_fail; | |
24200 | } | |
24201 | { | |
24202 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24203 | } | |
24204 | return resultobj; | |
24205 | fail: | |
24206 | return NULL; | |
24207 | } | |
24208 | ||
24209 | ||
24210 | SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24211 | PyObject *obj; | |
24212 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24213 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj)); | |
24214 | return SWIG_Py_Void(); | |
24215 | } | |
24216 | ||
24217 | SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24218 | return SWIG_Python_InitShadowInstance(args); | |
24219 | } | |
24220 | ||
24221 | SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24222 | PyObject *resultobj = 0; | |
24223 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24224 | wxWindowDC *result = 0 ; | |
24225 | void *argp1 = 0 ; | |
24226 | int res1 = 0 ; | |
24227 | PyObject * obj0 = 0 ; | |
24228 | char * kwnames[] = { | |
24229 | (char *) "win", NULL | |
24230 | }; | |
24231 | ||
24232 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail; | |
24233 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24234 | if (!SWIG_IsOK(res1)) { | |
24235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24236 | } | |
24237 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24238 | { | |
24239 | if (!wxPyCheckForApp()) SWIG_fail; | |
24240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24241 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
24242 | wxPyEndAllowThreads(__tstate); | |
24243 | if (PyErr_Occurred()) SWIG_fail; | |
24244 | } | |
24245 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 ); | |
24246 | return resultobj; | |
24247 | fail: | |
24248 | return NULL; | |
24249 | } | |
24250 | ||
24251 | ||
24252 | SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24253 | PyObject *obj; | |
24254 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24255 | SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj)); | |
24256 | return SWIG_Py_Void(); | |
24257 | } | |
24258 | ||
24259 | SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24260 | return SWIG_Python_InitShadowInstance(args); | |
24261 | } | |
24262 | ||
24263 | SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24264 | PyObject *resultobj = 0; | |
24265 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24266 | wxClientDC *result = 0 ; | |
24267 | void *argp1 = 0 ; | |
24268 | int res1 = 0 ; | |
24269 | PyObject * obj0 = 0 ; | |
24270 | char * kwnames[] = { | |
24271 | (char *) "win", NULL | |
24272 | }; | |
24273 | ||
24274 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail; | |
24275 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24276 | if (!SWIG_IsOK(res1)) { | |
24277 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24278 | } | |
24279 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24280 | { | |
24281 | if (!wxPyCheckForApp()) SWIG_fail; | |
24282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24283 | result = (wxClientDC *)new wxClientDC(arg1); | |
24284 | wxPyEndAllowThreads(__tstate); | |
24285 | if (PyErr_Occurred()) SWIG_fail; | |
24286 | } | |
24287 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 ); | |
24288 | return resultobj; | |
24289 | fail: | |
24290 | return NULL; | |
24291 | } | |
24292 | ||
24293 | ||
24294 | SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24295 | PyObject *obj; | |
24296 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24297 | SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj)); | |
24298 | return SWIG_Py_Void(); | |
24299 | } | |
24300 | ||
24301 | SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24302 | return SWIG_Python_InitShadowInstance(args); | |
24303 | } | |
24304 | ||
24305 | SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24306 | PyObject *resultobj = 0; | |
24307 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24308 | wxPaintDC *result = 0 ; | |
24309 | void *argp1 = 0 ; | |
24310 | int res1 = 0 ; | |
24311 | PyObject * obj0 = 0 ; | |
24312 | char * kwnames[] = { | |
24313 | (char *) "win", NULL | |
24314 | }; | |
24315 | ||
24316 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail; | |
24317 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24318 | if (!SWIG_IsOK(res1)) { | |
24319 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24320 | } | |
24321 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24322 | { | |
24323 | if (!wxPyCheckForApp()) SWIG_fail; | |
24324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24325 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
24326 | wxPyEndAllowThreads(__tstate); | |
24327 | if (PyErr_Occurred()) SWIG_fail; | |
24328 | } | |
24329 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 ); | |
24330 | return resultobj; | |
24331 | fail: | |
24332 | return NULL; | |
24333 | } | |
24334 | ||
24335 | ||
24336 | SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24337 | PyObject *obj; | |
24338 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24339 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj)); | |
24340 | return SWIG_Py_Void(); | |
24341 | } | |
24342 | ||
24343 | SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24344 | return SWIG_Python_InitShadowInstance(args); | |
24345 | } | |
24346 | ||
0085ce49 RD |
24347 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
24348 | PyObject *resultobj = 0; | |
24349 | wxDC *arg1 = (wxDC *) 0 ; | |
24350 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
24351 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
24352 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
24353 | wxBufferedDC *result = 0 ; | |
24354 | void *argp1 = 0 ; | |
24355 | int res1 = 0 ; | |
24356 | void *argp2 = 0 ; | |
24357 | int res2 = 0 ; | |
24358 | int val3 ; | |
24359 | int ecode3 = 0 ; | |
24360 | ||
24361 | if ((nobjs < 1) || (nobjs > 3)) SWIG_fail; | |
24362 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24363 | if (!SWIG_IsOK(res1)) { | |
24364 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24365 | } | |
24366 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24367 | if (swig_obj[1]) { | |
24368 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
24369 | if (!SWIG_IsOK(res2)) { | |
24370 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 24371 | } |
0085ce49 RD |
24372 | if (!argp2) { |
24373 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 24374 | } |
0085ce49 RD |
24375 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
24376 | } | |
24377 | if (swig_obj[2]) { | |
24378 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
24379 | if (!SWIG_IsOK(ecode3)) { | |
24380 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
24381 | } | |
24382 | arg3 = static_cast< int >(val3); | |
24383 | } | |
24384 | { | |
24385 | if (!wxPyCheckForApp()) SWIG_fail; | |
24386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24387 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3); | |
24388 | wxPyEndAllowThreads(__tstate); | |
24389 | if (PyErr_Occurred()) SWIG_fail; | |
24390 | } | |
24391 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
24392 | return resultobj; | |
24393 | fail: | |
24394 | return NULL; | |
24395 | } | |
24396 | ||
24397 | ||
24398 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
24399 | PyObject *resultobj = 0; | |
24400 | wxDC *arg1 = (wxDC *) 0 ; | |
24401 | wxSize *arg2 = 0 ; | |
24402 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
24403 | wxBufferedDC *result = 0 ; | |
24404 | void *argp1 = 0 ; | |
24405 | int res1 = 0 ; | |
24406 | wxSize temp2 ; | |
24407 | int val3 ; | |
24408 | int ecode3 = 0 ; | |
24409 | ||
24410 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
24411 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24412 | if (!SWIG_IsOK(res1)) { | |
24413 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24414 | } | |
24415 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24416 | { | |
24417 | arg2 = &temp2; | |
24418 | if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail; | |
24419 | } | |
24420 | if (swig_obj[2]) { | |
24421 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
24422 | if (!SWIG_IsOK(ecode3)) { | |
24423 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
24424 | } | |
24425 | arg3 = static_cast< int >(val3); | |
24426 | } | |
24427 | { | |
24428 | if (!wxPyCheckForApp()) SWIG_fail; | |
24429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24430 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3); | |
24431 | wxPyEndAllowThreads(__tstate); | |
24432 | if (PyErr_Occurred()) SWIG_fail; | |
24433 | } | |
24434 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
24435 | return resultobj; | |
24436 | fail: | |
24437 | return NULL; | |
24438 | } | |
24439 | ||
24440 | ||
24441 | SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
24442 | int argc; | |
8e99bda9 | 24443 | PyObject *argv[4]; |
0085ce49 | 24444 | |
8e99bda9 | 24445 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail; |
0085ce49 RD |
24446 | --argc; |
24447 | if ((argc >= 1) && (argc <= 3)) { | |
24448 | int _v = 0; | |
24449 | if (argc > 1) { | |
24450 | { | |
24451 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0); | |
24452 | _v = SWIG_CheckState(res); | |
24453 | } | |
24454 | if (!_v) goto check_1; | |
093d3ff1 | 24455 | } |
0085ce49 RD |
24456 | return _wrap_new_BufferedDC__SWIG_0(self, argc, argv); |
24457 | } | |
24458 | check_1: | |
24459 | ||
24460 | if ((argc >= 2) && (argc <= 3)) { | |
24461 | return _wrap_new_BufferedDC__SWIG_1(self, argc, argv); | |
24462 | } | |
24463 | ||
24464 | fail: | |
24465 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'"); | |
24466 | return NULL; | |
24467 | } | |
24468 | ||
24469 | ||
24470 | SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24471 | PyObject *resultobj = 0; | |
24472 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
24473 | void *argp1 = 0 ; | |
24474 | int res1 = 0 ; | |
24475 | PyObject *swig_obj[1] ; | |
24476 | ||
24477 | if (!args) SWIG_fail; | |
24478 | swig_obj[0] = args; | |
24479 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 ); | |
24480 | if (!SWIG_IsOK(res1)) { | |
24481 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
24482 | } | |
24483 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
24484 | { | |
24485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24486 | delete arg1; | |
24487 | ||
24488 | wxPyEndAllowThreads(__tstate); | |
24489 | if (PyErr_Occurred()) SWIG_fail; | |
24490 | } | |
24491 | resultobj = SWIG_Py_Void(); | |
24492 | return resultobj; | |
24493 | fail: | |
24494 | return NULL; | |
24495 | } | |
24496 | ||
24497 | ||
24498 | SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24499 | PyObject *resultobj = 0; | |
24500 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
24501 | void *argp1 = 0 ; | |
24502 | int res1 = 0 ; | |
24503 | PyObject *swig_obj[1] ; | |
24504 | ||
24505 | if (!args) SWIG_fail; | |
24506 | swig_obj[0] = args; | |
24507 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
24508 | if (!SWIG_IsOK(res1)) { | |
24509 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
24510 | } | |
24511 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
24512 | { | |
24513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24514 | (arg1)->UnMask(); | |
24515 | wxPyEndAllowThreads(__tstate); | |
24516 | if (PyErr_Occurred()) SWIG_fail; | |
24517 | } | |
24518 | resultobj = SWIG_Py_Void(); | |
24519 | return resultobj; | |
24520 | fail: | |
24521 | return NULL; | |
24522 | } | |
24523 | ||
24524 | ||
24525 | SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24526 | PyObject *obj; | |
24527 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24528 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj)); | |
24529 | return SWIG_Py_Void(); | |
24530 | } | |
24531 | ||
24532 | SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24533 | return SWIG_Python_InitShadowInstance(args); | |
24534 | } | |
24535 | ||
24536 | SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24537 | PyObject *resultobj = 0; | |
24538 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24539 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
24540 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
24541 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
24542 | wxBufferedPaintDC *result = 0 ; | |
24543 | void *argp1 = 0 ; | |
24544 | int res1 = 0 ; | |
24545 | void *argp2 = 0 ; | |
24546 | int res2 = 0 ; | |
24547 | int val3 ; | |
24548 | int ecode3 = 0 ; | |
24549 | PyObject * obj0 = 0 ; | |
24550 | PyObject * obj1 = 0 ; | |
24551 | PyObject * obj2 = 0 ; | |
24552 | char * kwnames[] = { | |
24553 | (char *) "window",(char *) "buffer",(char *) "style", NULL | |
24554 | }; | |
24555 | ||
24556 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24557 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24558 | if (!SWIG_IsOK(res1)) { | |
24559 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24560 | } | |
24561 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24562 | if (obj1) { | |
24563 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
24564 | if (!SWIG_IsOK(res2)) { | |
24565 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 24566 | } |
0085ce49 RD |
24567 | if (!argp2) { |
24568 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 24569 | } |
0085ce49 RD |
24570 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
24571 | } | |
24572 | if (obj2) { | |
24573 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
24574 | if (!SWIG_IsOK(ecode3)) { | |
24575 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'"); | |
24576 | } | |
24577 | arg3 = static_cast< int >(val3); | |
24578 | } | |
24579 | { | |
24580 | if (!wxPyCheckForApp()) SWIG_fail; | |
24581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24582 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3); | |
24583 | wxPyEndAllowThreads(__tstate); | |
24584 | if (PyErr_Occurred()) SWIG_fail; | |
24585 | } | |
24586 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 ); | |
24587 | return resultobj; | |
24588 | fail: | |
24589 | return NULL; | |
24590 | } | |
24591 | ||
24592 | ||
24593 | SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24594 | PyObject *obj; | |
24595 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24596 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj)); | |
24597 | return SWIG_Py_Void(); | |
24598 | } | |
24599 | ||
24600 | SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24601 | return SWIG_Python_InitShadowInstance(args); | |
24602 | } | |
24603 | ||
24f6c4e8 | 24604 | SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
24605 | PyObject *resultobj = 0; |
24606 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24f6c4e8 | 24607 | wxAutoBufferedPaintDC *result = 0 ; |
0085ce49 RD |
24608 | void *argp1 = 0 ; |
24609 | int res1 = 0 ; | |
24610 | PyObject * obj0 = 0 ; | |
24611 | char * kwnames[] = { | |
24612 | (char *) "win", NULL | |
24613 | }; | |
24614 | ||
24f6c4e8 | 24615 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail; |
0085ce49 RD |
24616 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); |
24617 | if (!SWIG_IsOK(res1)) { | |
24f6c4e8 | 24618 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); |
0085ce49 RD |
24619 | } |
24620 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24621 | { | |
0085ce49 | 24622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24f6c4e8 | 24623 | result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1); |
0085ce49 RD |
24624 | wxPyEndAllowThreads(__tstate); |
24625 | if (PyErr_Occurred()) SWIG_fail; | |
24626 | } | |
24f6c4e8 | 24627 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 ); |
0085ce49 RD |
24628 | return resultobj; |
24629 | fail: | |
24630 | return NULL; | |
24631 | } | |
24632 | ||
24633 | ||
24f6c4e8 | 24634 | SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
24635 | PyObject *obj; |
24636 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24f6c4e8 | 24637 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj)); |
0085ce49 RD |
24638 | return SWIG_Py_Void(); |
24639 | } | |
24640 | ||
24f6c4e8 | 24641 | SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
24642 | return SWIG_Python_InitShadowInstance(args); |
24643 | } | |
24644 | ||
8e99bda9 RD |
24645 | SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24646 | PyObject *resultobj = 0; | |
24647 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24648 | wxDC *result = 0 ; | |
24649 | void *argp1 = 0 ; | |
24650 | int res1 = 0 ; | |
24651 | PyObject * obj0 = 0 ; | |
24652 | char * kwnames[] = { | |
24653 | (char *) "window", NULL | |
24654 | }; | |
24655 | ||
24656 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail; | |
24657 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24658 | if (!SWIG_IsOK(res1)) { | |
24659 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24660 | } | |
24661 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24662 | { | |
24663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24664 | result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1); | |
24665 | wxPyEndAllowThreads(__tstate); | |
24666 | if (PyErr_Occurred()) SWIG_fail; | |
24667 | } | |
24668 | { | |
24669 | resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN); | |
24670 | } | |
24671 | return resultobj; | |
24672 | fail: | |
24673 | return NULL; | |
24674 | } | |
24675 | ||
24676 | ||
0085ce49 RD |
24677 | SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24678 | PyObject *resultobj = 0; | |
24679 | wxDC *arg1 = 0 ; | |
24680 | bool arg2 ; | |
24681 | wxMirrorDC *result = 0 ; | |
24682 | void *argp1 = 0 ; | |
24683 | int res1 = 0 ; | |
24684 | bool val2 ; | |
24685 | int ecode2 = 0 ; | |
24686 | PyObject * obj0 = 0 ; | |
24687 | PyObject * obj1 = 0 ; | |
24688 | char * kwnames[] = { | |
24689 | (char *) "dc",(char *) "mirror", NULL | |
24690 | }; | |
24691 | ||
24692 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
24693 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24694 | if (!SWIG_IsOK(res1)) { | |
24695 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24696 | } | |
24697 | if (!argp1) { | |
24698 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24699 | } | |
24700 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24701 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24702 | if (!SWIG_IsOK(ecode2)) { | |
24703 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'"); | |
24704 | } | |
24705 | arg2 = static_cast< bool >(val2); | |
24706 | { | |
24707 | if (!wxPyCheckForApp()) SWIG_fail; | |
24708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24709 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
24710 | wxPyEndAllowThreads(__tstate); | |
24711 | if (PyErr_Occurred()) SWIG_fail; | |
24712 | } | |
24713 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 ); | |
24714 | return resultobj; | |
24715 | fail: | |
24716 | return NULL; | |
24717 | } | |
24718 | ||
24719 | ||
24720 | SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24721 | PyObject *obj; | |
24722 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24723 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj)); | |
24724 | return SWIG_Py_Void(); | |
24725 | } | |
24726 | ||
24727 | SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24728 | return SWIG_Python_InitShadowInstance(args); | |
24729 | } | |
24730 | ||
24731 | SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24732 | PyObject *resultobj = 0; | |
24733 | wxPrintData *arg1 = 0 ; | |
24734 | wxPostScriptDC *result = 0 ; | |
24735 | void *argp1 = 0 ; | |
24736 | int res1 = 0 ; | |
24737 | PyObject * obj0 = 0 ; | |
24738 | char * kwnames[] = { | |
24739 | (char *) "printData", NULL | |
24740 | }; | |
24741 | ||
24742 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail; | |
24743 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
24744 | if (!SWIG_IsOK(res1)) { | |
24745 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24746 | } | |
24747 | if (!argp1) { | |
24748 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24749 | } | |
24750 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24751 | { | |
24752 | if (!wxPyCheckForApp()) SWIG_fail; | |
24753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24754 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
24755 | wxPyEndAllowThreads(__tstate); | |
24756 | if (PyErr_Occurred()) SWIG_fail; | |
24757 | } | |
24758 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 ); | |
24759 | return resultobj; | |
24760 | fail: | |
24761 | return NULL; | |
24762 | } | |
24763 | ||
24764 | ||
24765 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24766 | PyObject *resultobj = 0; | |
24767 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
24768 | wxPrintData *result = 0 ; | |
24769 | void *argp1 = 0 ; | |
24770 | int res1 = 0 ; | |
24771 | PyObject *swig_obj[1] ; | |
24772 | ||
24773 | if (!args) SWIG_fail; | |
24774 | swig_obj[0] = args; | |
24775 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
24776 | if (!SWIG_IsOK(res1)) { | |
24777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
24778 | } | |
24779 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
24780 | { | |
24781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e2950dbb | 24782 | { |
0085ce49 RD |
24783 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
24784 | result = (wxPrintData *) &_result_ref; | |
e2950dbb | 24785 | } |
0085ce49 RD |
24786 | wxPyEndAllowThreads(__tstate); |
24787 | if (PyErr_Occurred()) SWIG_fail; | |
24788 | } | |
24789 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24790 | return resultobj; | |
24791 | fail: | |
24792 | return NULL; | |
24793 | } | |
24794 | ||
24795 | ||
24796 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24797 | PyObject *resultobj = 0; | |
24798 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
24799 | wxPrintData *arg2 = 0 ; | |
24800 | void *argp1 = 0 ; | |
24801 | int res1 = 0 ; | |
24802 | void *argp2 = 0 ; | |
24803 | int res2 = 0 ; | |
24804 | PyObject * obj0 = 0 ; | |
24805 | PyObject * obj1 = 0 ; | |
24806 | char * kwnames[] = { | |
24807 | (char *) "self",(char *) "data", NULL | |
24808 | }; | |
24809 | ||
24810 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
24811 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
24812 | if (!SWIG_IsOK(res1)) { | |
24813 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
24814 | } | |
24815 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
24816 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
24817 | if (!SWIG_IsOK(res2)) { | |
24818 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
24819 | } | |
24820 | if (!argp2) { | |
24821 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
24822 | } | |
24823 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
24824 | { | |
24825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24826 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
24827 | wxPyEndAllowThreads(__tstate); | |
24828 | if (PyErr_Occurred()) SWIG_fail; | |
24829 | } | |
24830 | resultobj = SWIG_Py_Void(); | |
24831 | return resultobj; | |
24832 | fail: | |
24833 | return NULL; | |
24834 | } | |
24835 | ||
24836 | ||
24837 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24838 | PyObject *resultobj = 0; | |
24839 | int arg1 ; | |
24840 | int val1 ; | |
24841 | int ecode1 = 0 ; | |
24842 | PyObject * obj0 = 0 ; | |
24843 | char * kwnames[] = { | |
24844 | (char *) "ppi", NULL | |
24845 | }; | |
24846 | ||
24847 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail; | |
24848 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
24849 | if (!SWIG_IsOK(ecode1)) { | |
24850 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'"); | |
24851 | } | |
24852 | arg1 = static_cast< int >(val1); | |
24853 | { | |
24854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24855 | wxPostScriptDC::SetResolution(arg1); | |
24856 | wxPyEndAllowThreads(__tstate); | |
24857 | if (PyErr_Occurred()) SWIG_fail; | |
24858 | } | |
24859 | resultobj = SWIG_Py_Void(); | |
24860 | return resultobj; | |
24861 | fail: | |
24862 | return NULL; | |
24863 | } | |
24864 | ||
24865 | ||
24866 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24867 | PyObject *resultobj = 0; | |
24868 | int result; | |
24869 | ||
24870 | if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail; | |
24871 | { | |
24872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24873 | result = (int)wxPostScriptDC::GetResolution(); | |
24874 | wxPyEndAllowThreads(__tstate); | |
24875 | if (PyErr_Occurred()) SWIG_fail; | |
24876 | } | |
24877 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24878 | return resultobj; | |
24879 | fail: | |
24880 | return NULL; | |
24881 | } | |
24882 | ||
24883 | ||
24884 | SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24885 | PyObject *obj; | |
24886 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24887 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj)); | |
24888 | return SWIG_Py_Void(); | |
24889 | } | |
24890 | ||
24891 | SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24892 | return SWIG_Python_InitShadowInstance(args); | |
24893 | } | |
24894 | ||
24895 | SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24896 | PyObject *resultobj = 0; | |
24897 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24898 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24899 | wxMetaFile *result = 0 ; | |
24900 | bool temp1 = false ; | |
24901 | PyObject * obj0 = 0 ; | |
24902 | char * kwnames[] = { | |
24903 | (char *) "filename", NULL | |
24904 | }; | |
24905 | ||
24906 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail; | |
24907 | if (obj0) { | |
093d3ff1 | 24908 | { |
0085ce49 RD |
24909 | arg1 = wxString_in_helper(obj0); |
24910 | if (arg1 == NULL) SWIG_fail; | |
24911 | temp1 = true; | |
093d3ff1 | 24912 | } |
0085ce49 RD |
24913 | } |
24914 | { | |
24915 | if (!wxPyCheckForApp()) SWIG_fail; | |
24916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24917 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
24918 | wxPyEndAllowThreads(__tstate); | |
24919 | if (PyErr_Occurred()) SWIG_fail; | |
24920 | } | |
24921 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 ); | |
24922 | { | |
24923 | if (temp1) | |
24924 | delete arg1; | |
24925 | } | |
24926 | return resultobj; | |
24927 | fail: | |
24928 | { | |
24929 | if (temp1) | |
24930 | delete arg1; | |
24931 | } | |
24932 | return NULL; | |
24933 | } | |
24934 | ||
24935 | ||
24936 | SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24937 | PyObject *obj; | |
24938 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24939 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj)); | |
24940 | return SWIG_Py_Void(); | |
24941 | } | |
24942 | ||
24943 | SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24944 | return SWIG_Python_InitShadowInstance(args); | |
24945 | } | |
24946 | ||
24947 | SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24948 | PyObject *resultobj = 0; | |
24949 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24950 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24951 | int arg2 = (int) 0 ; | |
24952 | int arg3 = (int) 0 ; | |
24953 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
24954 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
24955 | wxMetaFileDC *result = 0 ; | |
24956 | bool temp1 = false ; | |
24957 | int val2 ; | |
24958 | int ecode2 = 0 ; | |
24959 | int val3 ; | |
24960 | int ecode3 = 0 ; | |
24961 | bool temp4 = false ; | |
24962 | PyObject * obj0 = 0 ; | |
24963 | PyObject * obj1 = 0 ; | |
24964 | PyObject * obj2 = 0 ; | |
24965 | PyObject * obj3 = 0 ; | |
24966 | char * kwnames[] = { | |
24967 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
24968 | }; | |
24969 | ||
24970 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
24971 | if (obj0) { | |
093d3ff1 | 24972 | { |
0085ce49 RD |
24973 | arg1 = wxString_in_helper(obj0); |
24974 | if (arg1 == NULL) SWIG_fail; | |
24975 | temp1 = true; | |
093d3ff1 | 24976 | } |
0085ce49 RD |
24977 | } |
24978 | if (obj1) { | |
24979 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24980 | if (!SWIG_IsOK(ecode2)) { | |
24981 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'"); | |
24982 | } | |
24983 | arg2 = static_cast< int >(val2); | |
24984 | } | |
24985 | if (obj2) { | |
24986 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
24987 | if (!SWIG_IsOK(ecode3)) { | |
24988 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'"); | |
24989 | } | |
24990 | arg3 = static_cast< int >(val3); | |
24991 | } | |
24992 | if (obj3) { | |
093d3ff1 | 24993 | { |
0085ce49 RD |
24994 | arg4 = wxString_in_helper(obj3); |
24995 | if (arg4 == NULL) SWIG_fail; | |
24996 | temp4 = true; | |
093d3ff1 | 24997 | } |
0085ce49 RD |
24998 | } |
24999 | { | |
25000 | if (!wxPyCheckForApp()) SWIG_fail; | |
25001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25002 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
25003 | wxPyEndAllowThreads(__tstate); | |
25004 | if (PyErr_Occurred()) SWIG_fail; | |
25005 | } | |
25006 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 ); | |
25007 | { | |
25008 | if (temp1) | |
25009 | delete arg1; | |
25010 | } | |
25011 | { | |
25012 | if (temp4) | |
25013 | delete arg4; | |
25014 | } | |
25015 | return resultobj; | |
25016 | fail: | |
25017 | { | |
25018 | if (temp1) | |
25019 | delete arg1; | |
25020 | } | |
25021 | { | |
25022 | if (temp4) | |
25023 | delete arg4; | |
25024 | } | |
25025 | return NULL; | |
25026 | } | |
25027 | ||
25028 | ||
25029 | SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25030 | PyObject *obj; | |
25031 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25032 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj)); | |
25033 | return SWIG_Py_Void(); | |
25034 | } | |
25035 | ||
25036 | SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25037 | return SWIG_Python_InitShadowInstance(args); | |
25038 | } | |
25039 | ||
25040 | SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25041 | PyObject *resultobj = 0; | |
25042 | wxPrintData *arg1 = 0 ; | |
25043 | wxPrinterDC *result = 0 ; | |
25044 | void *argp1 = 0 ; | |
25045 | int res1 = 0 ; | |
25046 | PyObject * obj0 = 0 ; | |
25047 | char * kwnames[] = { | |
25048 | (char *) "printData", NULL | |
25049 | }; | |
25050 | ||
25051 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail; | |
25052 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
25053 | if (!SWIG_IsOK(res1)) { | |
25054 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25055 | } | |
25056 | if (!argp1) { | |
25057 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25058 | } | |
25059 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
25060 | { | |
25061 | if (!wxPyCheckForApp()) SWIG_fail; | |
25062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25063 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
25064 | wxPyEndAllowThreads(__tstate); | |
25065 | if (PyErr_Occurred()) SWIG_fail; | |
25066 | } | |
25067 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 ); | |
25068 | return resultobj; | |
25069 | fail: | |
25070 | return NULL; | |
25071 | } | |
25072 | ||
25073 | ||
25074 | SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25075 | PyObject *obj; | |
25076 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25077 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj)); | |
25078 | return SWIG_Py_Void(); | |
25079 | } | |
25080 | ||
25081 | SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25082 | return SWIG_Python_InitShadowInstance(args); | |
25083 | } | |
25084 | ||
70d7cb34 RD |
25085 | SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25086 | PyObject *resultobj = 0; | |
25087 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ; | |
25088 | wxGraphicsObject *result = 0 ; | |
25089 | void *argp1 = 0 ; | |
25090 | int res1 = 0 ; | |
25091 | PyObject * obj0 = 0 ; | |
25092 | char * kwnames[] = { | |
25093 | (char *) "renderer", NULL | |
25094 | }; | |
25095 | ||
25096 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail; | |
25097 | if (obj0) { | |
25098 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
25099 | if (!SWIG_IsOK(res1)) { | |
25100 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
25101 | } | |
25102 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
25103 | } | |
25104 | { | |
25105 | result = (wxGraphicsObject *)new wxGraphicsObject(arg1); | |
25106 | if (PyErr_Occurred()) SWIG_fail; | |
25107 | } | |
25108 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 ); | |
25109 | return resultobj; | |
25110 | fail: | |
25111 | return NULL; | |
25112 | } | |
25113 | ||
25114 | ||
25115 | SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25116 | PyObject *resultobj = 0; | |
25117 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
25118 | void *argp1 = 0 ; | |
25119 | int res1 = 0 ; | |
25120 | PyObject *swig_obj[1] ; | |
25121 | ||
25122 | if (!args) SWIG_fail; | |
25123 | swig_obj[0] = args; | |
25124 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 ); | |
25125 | if (!SWIG_IsOK(res1)) { | |
25126 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'"); | |
25127 | } | |
25128 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
25129 | { | |
25130 | delete arg1; | |
25131 | ||
25132 | if (PyErr_Occurred()) SWIG_fail; | |
25133 | } | |
25134 | resultobj = SWIG_Py_Void(); | |
25135 | return resultobj; | |
25136 | fail: | |
25137 | return NULL; | |
25138 | } | |
25139 | ||
25140 | ||
25141 | SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25142 | PyObject *resultobj = 0; | |
25143 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
25144 | bool result; | |
25145 | void *argp1 = 0 ; | |
25146 | int res1 = 0 ; | |
25147 | PyObject *swig_obj[1] ; | |
25148 | ||
25149 | if (!args) SWIG_fail; | |
25150 | swig_obj[0] = args; | |
25151 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 ); | |
25152 | if (!SWIG_IsOK(res1)) { | |
25153 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'"); | |
25154 | } | |
25155 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
25156 | { | |
25157 | result = (bool)((wxGraphicsObject const *)arg1)->IsNull(); | |
25158 | if (PyErr_Occurred()) SWIG_fail; | |
25159 | } | |
25160 | { | |
25161 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25162 | } | |
25163 | return resultobj; | |
25164 | fail: | |
25165 | return NULL; | |
25166 | } | |
25167 | ||
25168 | ||
25169 | SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25170 | PyObject *resultobj = 0; | |
25171 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
25172 | wxGraphicsRenderer *result = 0 ; | |
25173 | void *argp1 = 0 ; | |
25174 | int res1 = 0 ; | |
25175 | PyObject *swig_obj[1] ; | |
25176 | ||
25177 | if (!args) SWIG_fail; | |
25178 | swig_obj[0] = args; | |
25179 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 ); | |
25180 | if (!SWIG_IsOK(res1)) { | |
25181 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'"); | |
25182 | } | |
25183 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
25184 | { | |
25185 | result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer(); | |
25186 | if (PyErr_Occurred()) SWIG_fail; | |
25187 | } | |
25188 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
25189 | return resultobj; | |
25190 | fail: | |
25191 | return NULL; | |
25192 | } | |
25193 | ||
25194 | ||
25195 | SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25196 | PyObject *obj; | |
25197 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25198 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj)); | |
25199 | return SWIG_Py_Void(); | |
25200 | } | |
25201 | ||
25202 | SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25203 | return SWIG_Python_InitShadowInstance(args); | |
25204 | } | |
25205 | ||
25206 | SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25207 | PyObject *resultobj = 0; | |
25208 | wxGraphicsPen *result = 0 ; | |
25209 | ||
25210 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail; | |
25211 | { | |
25212 | result = (wxGraphicsPen *)new wxGraphicsPen(); | |
25213 | if (PyErr_Occurred()) SWIG_fail; | |
25214 | } | |
25215 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 ); | |
25216 | return resultobj; | |
25217 | fail: | |
25218 | return NULL; | |
25219 | } | |
25220 | ||
25221 | ||
25222 | SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25223 | PyObject *resultobj = 0; | |
25224 | wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ; | |
25225 | void *argp1 = 0 ; | |
25226 | int res1 = 0 ; | |
25227 | PyObject *swig_obj[1] ; | |
25228 | ||
25229 | if (!args) SWIG_fail; | |
25230 | swig_obj[0] = args; | |
25231 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 ); | |
25232 | if (!SWIG_IsOK(res1)) { | |
25233 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'"); | |
25234 | } | |
25235 | arg1 = reinterpret_cast< wxGraphicsPen * >(argp1); | |
25236 | { | |
25237 | delete arg1; | |
25238 | ||
25239 | if (PyErr_Occurred()) SWIG_fail; | |
25240 | } | |
25241 | resultobj = SWIG_Py_Void(); | |
25242 | return resultobj; | |
25243 | fail: | |
25244 | return NULL; | |
25245 | } | |
25246 | ||
25247 | ||
25248 | SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25249 | PyObject *obj; | |
25250 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25251 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj)); | |
25252 | return SWIG_Py_Void(); | |
25253 | } | |
25254 | ||
25255 | SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25256 | return SWIG_Python_InitShadowInstance(args); | |
25257 | } | |
25258 | ||
25259 | SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25260 | PyObject *resultobj = 0; | |
25261 | wxGraphicsBrush *result = 0 ; | |
25262 | ||
25263 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail; | |
25264 | { | |
25265 | result = (wxGraphicsBrush *)new wxGraphicsBrush(); | |
25266 | if (PyErr_Occurred()) SWIG_fail; | |
25267 | } | |
25268 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 ); | |
25269 | return resultobj; | |
25270 | fail: | |
25271 | return NULL; | |
25272 | } | |
25273 | ||
25274 | ||
25275 | SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25276 | PyObject *resultobj = 0; | |
25277 | wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ; | |
25278 | void *argp1 = 0 ; | |
25279 | int res1 = 0 ; | |
25280 | PyObject *swig_obj[1] ; | |
25281 | ||
25282 | if (!args) SWIG_fail; | |
25283 | swig_obj[0] = args; | |
25284 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 ); | |
25285 | if (!SWIG_IsOK(res1)) { | |
25286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'"); | |
25287 | } | |
25288 | arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1); | |
25289 | { | |
25290 | delete arg1; | |
25291 | ||
25292 | if (PyErr_Occurred()) SWIG_fail; | |
25293 | } | |
25294 | resultobj = SWIG_Py_Void(); | |
25295 | return resultobj; | |
25296 | fail: | |
25297 | return NULL; | |
25298 | } | |
25299 | ||
25300 | ||
25301 | SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25302 | PyObject *obj; | |
25303 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25304 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj)); | |
25305 | return SWIG_Py_Void(); | |
25306 | } | |
25307 | ||
25308 | SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25309 | return SWIG_Python_InitShadowInstance(args); | |
25310 | } | |
25311 | ||
25312 | SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25313 | PyObject *resultobj = 0; | |
25314 | wxGraphicsFont *result = 0 ; | |
25315 | ||
25316 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail; | |
25317 | { | |
25318 | result = (wxGraphicsFont *)new wxGraphicsFont(); | |
25319 | if (PyErr_Occurred()) SWIG_fail; | |
25320 | } | |
25321 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 ); | |
25322 | return resultobj; | |
25323 | fail: | |
25324 | return NULL; | |
25325 | } | |
25326 | ||
25327 | ||
25328 | SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25329 | PyObject *resultobj = 0; | |
25330 | wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ; | |
25331 | void *argp1 = 0 ; | |
25332 | int res1 = 0 ; | |
25333 | PyObject *swig_obj[1] ; | |
25334 | ||
25335 | if (!args) SWIG_fail; | |
25336 | swig_obj[0] = args; | |
25337 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 ); | |
25338 | if (!SWIG_IsOK(res1)) { | |
25339 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'"); | |
25340 | } | |
25341 | arg1 = reinterpret_cast< wxGraphicsFont * >(argp1); | |
25342 | { | |
25343 | delete arg1; | |
25344 | ||
25345 | if (PyErr_Occurred()) SWIG_fail; | |
25346 | } | |
25347 | resultobj = SWIG_Py_Void(); | |
25348 | return resultobj; | |
25349 | fail: | |
25350 | return NULL; | |
25351 | } | |
25352 | ||
25353 | ||
25354 | SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25355 | PyObject *obj; | |
25356 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25357 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj)); | |
25358 | return SWIG_Py_Void(); | |
25359 | } | |
25360 | ||
25361 | SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25362 | return SWIG_Python_InitShadowInstance(args); | |
25363 | } | |
25364 | ||
8f514ab4 RD |
25365 | SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25366 | PyObject *resultobj = 0; | |
25367 | wxGraphicsMatrix *result = 0 ; | |
25368 | ||
25369 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail; | |
25370 | { | |
25371 | result = (wxGraphicsMatrix *)new wxGraphicsMatrix(); | |
25372 | if (PyErr_Occurred()) SWIG_fail; | |
25373 | } | |
25374 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 ); | |
25375 | return resultobj; | |
25376 | fail: | |
25377 | return NULL; | |
25378 | } | |
25379 | ||
25380 | ||
5c8c7dd3 | 25381 | SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 25382 | PyObject *resultobj = 0; |
5c8c7dd3 | 25383 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
0085ce49 RD |
25384 | void *argp1 = 0 ; |
25385 | int res1 = 0 ; | |
25386 | PyObject *swig_obj[1] ; | |
25387 | ||
25388 | if (!args) SWIG_fail; | |
25389 | swig_obj[0] = args; | |
5c8c7dd3 | 25390 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 ); |
0085ce49 | 25391 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25392 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
0085ce49 | 25393 | } |
5c8c7dd3 | 25394 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
0085ce49 | 25395 | { |
0085ce49 RD |
25396 | delete arg1; |
25397 | ||
0085ce49 RD |
25398 | if (PyErr_Occurred()) SWIG_fail; |
25399 | } | |
25400 | resultobj = SWIG_Py_Void(); | |
25401 | return resultobj; | |
25402 | fail: | |
25403 | return NULL; | |
25404 | } | |
25405 | ||
25406 | ||
5c8c7dd3 | 25407 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25408 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25409 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25410 | wxGraphicsMatrix *arg2 = 0 ; | |
70d7cb34 RD |
25411 | void *argp1 = 0 ; |
25412 | int res1 = 0 ; | |
5c8c7dd3 RD |
25413 | void *argp2 = 0 ; |
25414 | int res2 = 0 ; | |
25415 | PyObject * obj0 = 0 ; | |
25416 | PyObject * obj1 = 0 ; | |
25417 | char * kwnames[] = { | |
25418 | (char *) "self",(char *) "t", NULL | |
25419 | }; | |
70d7cb34 | 25420 | |
5c8c7dd3 RD |
25421 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail; |
25422 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 25423 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25424 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 25425 | } |
5c8c7dd3 RD |
25426 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25427 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
25428 | if (!SWIG_IsOK(res2)) { | |
25429 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
25430 | } | |
25431 | if (!argp2) { | |
25432 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
25433 | } | |
25434 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
70d7cb34 | 25435 | { |
5c8c7dd3 | 25436 | (arg1)->Concat((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
25437 | if (PyErr_Occurred()) SWIG_fail; |
25438 | } | |
5c8c7dd3 | 25439 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
25440 | return resultobj; |
25441 | fail: | |
25442 | return NULL; | |
25443 | } | |
25444 | ||
25445 | ||
5c8c7dd3 | 25446 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 25447 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25448 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25449 | wxGraphicsMatrix *arg2 = 0 ; | |
0085ce49 RD |
25450 | void *argp1 = 0 ; |
25451 | int res1 = 0 ; | |
5c8c7dd3 RD |
25452 | void *argp2 = 0 ; |
25453 | int res2 = 0 ; | |
25454 | PyObject * obj0 = 0 ; | |
25455 | PyObject * obj1 = 0 ; | |
25456 | char * kwnames[] = { | |
25457 | (char *) "self",(char *) "t", NULL | |
25458 | }; | |
0085ce49 | 25459 | |
5c8c7dd3 RD |
25460 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Copy",kwnames,&obj0,&obj1)) SWIG_fail; |
25461 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
0085ce49 | 25462 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Copy" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
0085ce49 | 25464 | } |
5c8c7dd3 RD |
25465 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25466 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
25467 | if (!SWIG_IsOK(res2)) { | |
25468 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
25469 | } | |
25470 | if (!argp2) { | |
25471 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
25472 | } | |
25473 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
0085ce49 | 25474 | { |
5c8c7dd3 | 25475 | wxGraphicsMatrix_Copy(arg1,(wxGraphicsMatrix const &)*arg2); |
0085ce49 RD |
25476 | if (PyErr_Occurred()) SWIG_fail; |
25477 | } | |
72ef6efb | 25478 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
25479 | return resultobj; |
25480 | fail: | |
25481 | return NULL; | |
25482 | } | |
25483 | ||
25484 | ||
5c8c7dd3 | 25485 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25486 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25487 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25488 | wxDouble arg2 = (wxDouble) 1.0 ; | |
25489 | wxDouble arg3 = (wxDouble) 0.0 ; | |
25490 | wxDouble arg4 = (wxDouble) 0.0 ; | |
25491 | wxDouble arg5 = (wxDouble) 1.0 ; | |
25492 | wxDouble arg6 = (wxDouble) 0.0 ; | |
25493 | wxDouble arg7 = (wxDouble) 0.0 ; | |
70d7cb34 RD |
25494 | void *argp1 = 0 ; |
25495 | int res1 = 0 ; | |
5c8c7dd3 RD |
25496 | double val2 ; |
25497 | int ecode2 = 0 ; | |
25498 | double val3 ; | |
25499 | int ecode3 = 0 ; | |
25500 | double val4 ; | |
25501 | int ecode4 = 0 ; | |
25502 | double val5 ; | |
25503 | int ecode5 = 0 ; | |
25504 | double val6 ; | |
25505 | int ecode6 = 0 ; | |
25506 | double val7 ; | |
25507 | int ecode7 = 0 ; | |
25508 | PyObject * obj0 = 0 ; | |
25509 | PyObject * obj1 = 0 ; | |
25510 | PyObject * obj2 = 0 ; | |
25511 | PyObject * obj3 = 0 ; | |
25512 | PyObject * obj4 = 0 ; | |
25513 | PyObject * obj5 = 0 ; | |
25514 | PyObject * obj6 = 0 ; | |
25515 | char * kwnames[] = { | |
25516 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL | |
25517 | }; | |
70d7cb34 | 25518 | |
5c8c7dd3 RD |
25519 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
25520 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 25521 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25522 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 25523 | } |
5c8c7dd3 RD |
25524 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25525 | if (obj1) { | |
25526 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
25527 | if (!SWIG_IsOK(ecode2)) { | |
25528 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25529 | } | |
25530 | arg2 = static_cast< wxDouble >(val2); | |
25531 | } | |
25532 | if (obj2) { | |
25533 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
25534 | if (!SWIG_IsOK(ecode3)) { | |
25535 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25536 | } | |
25537 | arg3 = static_cast< wxDouble >(val3); | |
25538 | } | |
25539 | if (obj3) { | |
25540 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
25541 | if (!SWIG_IsOK(ecode4)) { | |
25542 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'"); | |
25543 | } | |
25544 | arg4 = static_cast< wxDouble >(val4); | |
25545 | } | |
25546 | if (obj4) { | |
25547 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
25548 | if (!SWIG_IsOK(ecode5)) { | |
25549 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'"); | |
25550 | } | |
25551 | arg5 = static_cast< wxDouble >(val5); | |
25552 | } | |
25553 | if (obj5) { | |
25554 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
25555 | if (!SWIG_IsOK(ecode6)) { | |
25556 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'"); | |
25557 | } | |
25558 | arg6 = static_cast< wxDouble >(val6); | |
25559 | } | |
25560 | if (obj6) { | |
25561 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
25562 | if (!SWIG_IsOK(ecode7)) { | |
25563 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'"); | |
25564 | } | |
25565 | arg7 = static_cast< wxDouble >(val7); | |
70d7cb34 RD |
25566 | } |
25567 | { | |
5c8c7dd3 | 25568 | (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
25569 | if (PyErr_Occurred()) SWIG_fail; |
25570 | } | |
25571 | resultobj = SWIG_Py_Void(); | |
25572 | return resultobj; | |
25573 | fail: | |
25574 | return NULL; | |
25575 | } | |
25576 | ||
25577 | ||
5c8c7dd3 | 25578 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 25579 | PyObject *resultobj = 0; |
5c8c7dd3 | 25580 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
0085ce49 RD |
25581 | void *argp1 = 0 ; |
25582 | int res1 = 0 ; | |
5c8c7dd3 | 25583 | PyObject *swig_obj[1] ; |
0085ce49 | 25584 | |
5c8c7dd3 RD |
25585 | if (!args) SWIG_fail; |
25586 | swig_obj[0] = args; | |
25587 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
0085ce49 | 25588 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25589 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
0085ce49 | 25590 | } |
5c8c7dd3 | 25591 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
0085ce49 | 25592 | { |
5c8c7dd3 | 25593 | (arg1)->Invert(); |
0085ce49 RD |
25594 | if (PyErr_Occurred()) SWIG_fail; |
25595 | } | |
72ef6efb | 25596 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
25597 | return resultobj; |
25598 | fail: | |
25599 | return NULL; | |
25600 | } | |
25601 | ||
25602 | ||
5c8c7dd3 | 25603 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25604 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25605 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25606 | wxGraphicsMatrix *arg2 = 0 ; | |
25607 | bool result; | |
70d7cb34 RD |
25608 | void *argp1 = 0 ; |
25609 | int res1 = 0 ; | |
5c8c7dd3 RD |
25610 | void *argp2 = 0 ; |
25611 | int res2 = 0 ; | |
25612 | PyObject * obj0 = 0 ; | |
25613 | PyObject * obj1 = 0 ; | |
25614 | char * kwnames[] = { | |
25615 | (char *) "self",(char *) "t", NULL | |
25616 | }; | |
70d7cb34 | 25617 | |
5c8c7dd3 RD |
25618 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail; |
25619 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 25620 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25621 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); |
70d7cb34 | 25622 | } |
5c8c7dd3 RD |
25623 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25624 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
25625 | if (!SWIG_IsOK(res2)) { | |
25626 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
25627 | } | |
25628 | if (!argp2) { | |
25629 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
70d7cb34 | 25630 | } |
5c8c7dd3 | 25631 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); |
70d7cb34 | 25632 | { |
5c8c7dd3 | 25633 | result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
25634 | if (PyErr_Occurred()) SWIG_fail; |
25635 | } | |
5c8c7dd3 RD |
25636 | { |
25637 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25638 | } | |
70d7cb34 RD |
25639 | return resultobj; |
25640 | fail: | |
25641 | return NULL; | |
25642 | } | |
25643 | ||
25644 | ||
5c8c7dd3 RD |
25645 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25646 | PyObject *resultobj = 0; | |
25647 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
25648 | bool result; | |
25649 | void *argp1 = 0 ; | |
25650 | int res1 = 0 ; | |
25651 | PyObject *swig_obj[1] ; | |
70d7cb34 | 25652 | |
5c8c7dd3 RD |
25653 | if (!args) SWIG_fail; |
25654 | swig_obj[0] = args; | |
25655 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
25656 | if (!SWIG_IsOK(res1)) { | |
25657 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); | |
70d7cb34 | 25658 | } |
5c8c7dd3 RD |
25659 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25660 | { | |
25661 | result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity(); | |
25662 | if (PyErr_Occurred()) SWIG_fail; | |
70d7cb34 | 25663 | } |
5c8c7dd3 RD |
25664 | { |
25665 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25666 | } | |
25667 | return resultobj; | |
70d7cb34 | 25668 | fail: |
70d7cb34 RD |
25669 | return NULL; |
25670 | } | |
25671 | ||
25672 | ||
5c8c7dd3 | 25673 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 25674 | PyObject *resultobj = 0; |
5c8c7dd3 | 25675 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
72ef6efb RD |
25676 | wxDouble arg2 ; |
25677 | wxDouble arg3 ; | |
0085ce49 RD |
25678 | void *argp1 = 0 ; |
25679 | int res1 = 0 ; | |
72ef6efb RD |
25680 | double val2 ; |
25681 | int ecode2 = 0 ; | |
25682 | double val3 ; | |
25683 | int ecode3 = 0 ; | |
5c8c7dd3 RD |
25684 | PyObject * obj0 = 0 ; |
25685 | PyObject * obj1 = 0 ; | |
25686 | PyObject * obj2 = 0 ; | |
25687 | char * kwnames[] = { | |
25688 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
25689 | }; | |
72ef6efb | 25690 | |
5c8c7dd3 RD |
25691 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
25692 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
72ef6efb | 25693 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25694 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
72ef6efb | 25695 | } |
5c8c7dd3 RD |
25696 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25697 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
72ef6efb | 25698 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 25699 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
25700 | } |
25701 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 25702 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb | 25703 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 25704 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
25705 | } |
25706 | arg3 = static_cast< wxDouble >(val3); | |
72ef6efb | 25707 | { |
5c8c7dd3 | 25708 | (arg1)->Translate(arg2,arg3); |
72ef6efb RD |
25709 | if (PyErr_Occurred()) SWIG_fail; |
25710 | } | |
25711 | resultobj = SWIG_Py_Void(); | |
25712 | return resultobj; | |
25713 | fail: | |
25714 | return NULL; | |
25715 | } | |
25716 | ||
25717 | ||
5c8c7dd3 | 25718 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25719 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25720 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25721 | wxDouble arg2 ; | |
25722 | wxDouble arg3 ; | |
70d7cb34 RD |
25723 | void *argp1 = 0 ; |
25724 | int res1 = 0 ; | |
5c8c7dd3 RD |
25725 | double val2 ; |
25726 | int ecode2 = 0 ; | |
25727 | double val3 ; | |
25728 | int ecode3 = 0 ; | |
25729 | PyObject * obj0 = 0 ; | |
25730 | PyObject * obj1 = 0 ; | |
25731 | PyObject * obj2 = 0 ; | |
25732 | char * kwnames[] = { | |
25733 | (char *) "self",(char *) "xScale",(char *) "yScale", NULL | |
25734 | }; | |
70d7cb34 | 25735 | |
5c8c7dd3 RD |
25736 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
25737 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 25738 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25739 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 25740 | } |
5c8c7dd3 RD |
25741 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25742 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
25743 | if (!SWIG_IsOK(ecode2)) { | |
25744 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25745 | } | |
25746 | arg2 = static_cast< wxDouble >(val2); | |
25747 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
25748 | if (!SWIG_IsOK(ecode3)) { | |
25749 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25750 | } | |
25751 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 25752 | { |
5c8c7dd3 | 25753 | (arg1)->Scale(arg2,arg3); |
70d7cb34 RD |
25754 | if (PyErr_Occurred()) SWIG_fail; |
25755 | } | |
25756 | resultobj = SWIG_Py_Void(); | |
25757 | return resultobj; | |
25758 | fail: | |
25759 | return NULL; | |
25760 | } | |
25761 | ||
25762 | ||
5c8c7dd3 | 25763 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25764 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25765 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25766 | wxDouble arg2 ; | |
70d7cb34 RD |
25767 | void *argp1 = 0 ; |
25768 | int res1 = 0 ; | |
5c8c7dd3 RD |
25769 | double val2 ; |
25770 | int ecode2 = 0 ; | |
70d7cb34 RD |
25771 | PyObject * obj0 = 0 ; |
25772 | PyObject * obj1 = 0 ; | |
25773 | char * kwnames[] = { | |
5c8c7dd3 | 25774 | (char *) "self",(char *) "angle", NULL |
70d7cb34 RD |
25775 | }; |
25776 | ||
5c8c7dd3 RD |
25777 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail; |
25778 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 25779 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25780 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 25781 | } |
5c8c7dd3 RD |
25782 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25783 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
25784 | if (!SWIG_IsOK(ecode2)) { | |
25785 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25786 | } | |
25787 | arg2 = static_cast< wxDouble >(val2); | |
70d7cb34 | 25788 | { |
5c8c7dd3 | 25789 | (arg1)->Rotate(arg2); |
70d7cb34 RD |
25790 | if (PyErr_Occurred()) SWIG_fail; |
25791 | } | |
25792 | resultobj = SWIG_Py_Void(); | |
25793 | return resultobj; | |
25794 | fail: | |
25795 | return NULL; | |
25796 | } | |
25797 | ||
25798 | ||
5c8c7dd3 | 25799 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 25800 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25801 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25802 | wxDouble *arg2 = (wxDouble *) 0 ; | |
25803 | wxDouble *arg3 = (wxDouble *) 0 ; | |
72ef6efb RD |
25804 | void *argp1 = 0 ; |
25805 | int res1 = 0 ; | |
5c8c7dd3 RD |
25806 | wxDouble temp2 ; |
25807 | int res2 = 0 ; | |
25808 | wxDouble temp3 ; | |
25809 | int res3 = 0 ; | |
25810 | PyObject * obj0 = 0 ; | |
25811 | PyObject * obj1 = 0 ; | |
25812 | PyObject * obj2 = 0 ; | |
25813 | char * kwnames[] = { | |
25814 | (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL | |
25815 | }; | |
72ef6efb | 25816 | |
5c8c7dd3 RD |
25817 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
25818 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
72ef6efb | 25819 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 RD |
25820 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); |
25821 | } | |
25822 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
25823 | if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) { | |
25824 | double val; | |
25825 | int ecode = SWIG_AsVal_double(obj1, &val); | |
25826 | if (!SWIG_IsOK(ecode)) { | |
25827 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25828 | } | |
25829 | temp2 = static_cast< wxDouble >(val); | |
25830 | arg2 = &temp2; | |
25831 | res2 = SWIG_AddTmpMask(ecode); | |
25832 | } | |
25833 | if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) { | |
25834 | double val; | |
25835 | int ecode = SWIG_AsVal_double(obj2, &val); | |
25836 | if (!SWIG_IsOK(ecode)) { | |
25837 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25838 | } | |
25839 | temp3 = static_cast< wxDouble >(val); | |
25840 | arg3 = &temp3; | |
25841 | res3 = SWIG_AddTmpMask(ecode); | |
25842 | } | |
25843 | { | |
25844 | ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3); | |
25845 | if (PyErr_Occurred()) SWIG_fail; | |
72ef6efb RD |
25846 | } |
25847 | resultobj = SWIG_Py_Void(); | |
5c8c7dd3 RD |
25848 | if (SWIG_IsTmpObj(res2)) { |
25849 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
25850 | } else { | |
25851 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
25852 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
25853 | } | |
25854 | if (SWIG_IsTmpObj(res3)) { | |
25855 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
25856 | } else { | |
25857 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
25858 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
25859 | } | |
72ef6efb RD |
25860 | return resultobj; |
25861 | fail: | |
25862 | return NULL; | |
25863 | } | |
25864 | ||
25865 | ||
5c8c7dd3 RD |
25866 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25867 | PyObject *resultobj = 0; | |
25868 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
25869 | wxDouble *arg2 = (wxDouble *) 0 ; | |
25870 | wxDouble *arg3 = (wxDouble *) 0 ; | |
25871 | void *argp1 = 0 ; | |
25872 | int res1 = 0 ; | |
25873 | wxDouble temp2 ; | |
25874 | int res2 = 0 ; | |
25875 | wxDouble temp3 ; | |
25876 | int res3 = 0 ; | |
25877 | PyObject * obj0 = 0 ; | |
25878 | PyObject * obj1 = 0 ; | |
25879 | PyObject * obj2 = 0 ; | |
25880 | char * kwnames[] = { | |
25881 | (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL | |
25882 | }; | |
25883 | ||
25884 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25885 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
25886 | if (!SWIG_IsOK(res1)) { | |
25887 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); | |
25888 | } | |
25889 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
25890 | if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) { | |
25891 | double val; | |
25892 | int ecode = SWIG_AsVal_double(obj1, &val); | |
25893 | if (!SWIG_IsOK(ecode)) { | |
25894 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25895 | } | |
25896 | temp2 = static_cast< wxDouble >(val); | |
25897 | arg2 = &temp2; | |
25898 | res2 = SWIG_AddTmpMask(ecode); | |
25899 | } | |
25900 | if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) { | |
25901 | double val; | |
25902 | int ecode = SWIG_AsVal_double(obj2, &val); | |
25903 | if (!SWIG_IsOK(ecode)) { | |
25904 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25905 | } | |
25906 | temp3 = static_cast< wxDouble >(val); | |
25907 | arg3 = &temp3; | |
25908 | res3 = SWIG_AddTmpMask(ecode); | |
25909 | } | |
25910 | { | |
25911 | ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3); | |
25912 | if (PyErr_Occurred()) SWIG_fail; | |
25913 | } | |
25914 | resultobj = SWIG_Py_Void(); | |
25915 | if (SWIG_IsTmpObj(res2)) { | |
25916 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
25917 | } else { | |
25918 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
25919 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
25920 | } | |
25921 | if (SWIG_IsTmpObj(res3)) { | |
25922 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
25923 | } else { | |
25924 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
25925 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
25926 | } | |
25927 | return resultobj; | |
25928 | fail: | |
25929 | return NULL; | |
25930 | } | |
25931 | ||
25932 | ||
25933 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25934 | PyObject *resultobj = 0; | |
25935 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
25936 | void *result = 0 ; | |
25937 | void *argp1 = 0 ; | |
25938 | int res1 = 0 ; | |
25939 | PyObject *swig_obj[1] ; | |
25940 | ||
25941 | if (!args) SWIG_fail; | |
25942 | swig_obj[0] = args; | |
25943 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
25944 | if (!SWIG_IsOK(res1)) { | |
25945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); | |
25946 | } | |
25947 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
25948 | { | |
25949 | result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix(); | |
25950 | if (PyErr_Occurred()) SWIG_fail; | |
25951 | } | |
25952 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
25953 | return resultobj; | |
25954 | fail: | |
25955 | return NULL; | |
25956 | } | |
25957 | ||
25958 | ||
25959 | SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25960 | PyObject *obj; | |
25961 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25962 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj)); | |
25963 | return SWIG_Py_Void(); | |
25964 | } | |
25965 | ||
8f514ab4 RD |
25966 | SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25967 | return SWIG_Python_InitShadowInstance(args); | |
25968 | } | |
25969 | ||
25970 | SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25971 | PyObject *resultobj = 0; | |
25972 | wxGraphicsPath *result = 0 ; | |
25973 | ||
25974 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail; | |
25975 | { | |
25976 | if (!wxPyCheckForApp()) SWIG_fail; | |
25977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25978 | result = (wxGraphicsPath *)new wxGraphicsPath(); | |
25979 | wxPyEndAllowThreads(__tstate); | |
25980 | if (PyErr_Occurred()) SWIG_fail; | |
25981 | } | |
25982 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 ); | |
25983 | return resultobj; | |
25984 | fail: | |
25985 | return NULL; | |
25986 | } | |
25987 | ||
25988 | ||
5c8c7dd3 | 25989 | SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
25990 | PyObject *resultobj = 0; |
25991 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
72ef6efb RD |
25992 | void *argp1 = 0 ; |
25993 | int res1 = 0 ; | |
25994 | PyObject *swig_obj[1] ; | |
25995 | ||
25996 | if (!args) SWIG_fail; | |
25997 | swig_obj[0] = args; | |
5c8c7dd3 | 25998 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 ); |
72ef6efb | 25999 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
72ef6efb RD |
26001 | } |
26002 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26003 | { | |
5c8c7dd3 RD |
26004 | delete arg1; |
26005 | ||
72ef6efb RD |
26006 | if (PyErr_Occurred()) SWIG_fail; |
26007 | } | |
5c8c7dd3 | 26008 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
26009 | return resultobj; |
26010 | fail: | |
26011 | return NULL; | |
26012 | } | |
26013 | ||
26014 | ||
5c8c7dd3 | 26015 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26016 | PyObject *resultobj = 0; |
26017 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
26018 | wxDouble arg2 ; | |
26019 | wxDouble arg3 ; | |
70d7cb34 RD |
26020 | void *argp1 = 0 ; |
26021 | int res1 = 0 ; | |
26022 | double val2 ; | |
26023 | int ecode2 = 0 ; | |
26024 | double val3 ; | |
26025 | int ecode3 = 0 ; | |
70d7cb34 | 26026 | |
5c8c7dd3 | 26027 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; |
70d7cb34 RD |
26028 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26029 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26030 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26031 | } |
26032 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26033 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
26034 | if (!SWIG_IsOK(ecode2)) { | |
5c8c7dd3 | 26035 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26036 | } |
26037 | arg2 = static_cast< wxDouble >(val2); | |
26038 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
26039 | if (!SWIG_IsOK(ecode3)) { | |
5c8c7dd3 | 26040 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26041 | } |
26042 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 26043 | { |
5c8c7dd3 | 26044 | (arg1)->MoveToPoint(arg2,arg3); |
70d7cb34 RD |
26045 | if (PyErr_Occurred()) SWIG_fail; |
26046 | } | |
26047 | resultobj = SWIG_Py_Void(); | |
26048 | return resultobj; | |
26049 | fail: | |
26050 | return NULL; | |
26051 | } | |
26052 | ||
26053 | ||
5c8c7dd3 | 26054 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26055 | PyObject *resultobj = 0; |
26056 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
26057 | wxPoint2D *arg2 = 0 ; | |
70d7cb34 RD |
26058 | void *argp1 = 0 ; |
26059 | int res1 = 0 ; | |
26060 | wxPoint2D temp2 ; | |
70d7cb34 | 26061 | |
5c8c7dd3 | 26062 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
70d7cb34 RD |
26063 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26064 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26065 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26066 | } |
26067 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26068 | { | |
26069 | arg2 = &temp2; | |
26070 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
26071 | } | |
70d7cb34 | 26072 | { |
5c8c7dd3 | 26073 | (arg1)->MoveToPoint((wxPoint2D const &)*arg2); |
70d7cb34 RD |
26074 | if (PyErr_Occurred()) SWIG_fail; |
26075 | } | |
26076 | resultobj = SWIG_Py_Void(); | |
26077 | return resultobj; | |
26078 | fail: | |
26079 | return NULL; | |
26080 | } | |
26081 | ||
26082 | ||
5c8c7dd3 | 26083 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) { |
70d7cb34 | 26084 | int argc; |
5c8c7dd3 | 26085 | PyObject *argv[4]; |
70d7cb34 | 26086 | |
5c8c7dd3 | 26087 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail; |
70d7cb34 | 26088 | --argc; |
5c8c7dd3 RD |
26089 | if (argc == 2) { |
26090 | return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 26091 | } |
5c8c7dd3 RD |
26092 | if (argc == 3) { |
26093 | return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 RD |
26094 | } |
26095 | ||
26096 | fail: | |
5c8c7dd3 | 26097 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'"); |
70d7cb34 RD |
26098 | return NULL; |
26099 | } | |
26100 | ||
26101 | ||
5c8c7dd3 | 26102 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26103 | PyObject *resultobj = 0; |
26104 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
26105 | wxDouble arg2 ; | |
26106 | wxDouble arg3 ; | |
70d7cb34 RD |
26107 | void *argp1 = 0 ; |
26108 | int res1 = 0 ; | |
26109 | double val2 ; | |
26110 | int ecode2 = 0 ; | |
26111 | double val3 ; | |
26112 | int ecode3 = 0 ; | |
70d7cb34 | 26113 | |
5c8c7dd3 RD |
26114 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; |
26115 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26116 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26117 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26118 | } |
26119 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 26120 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); |
70d7cb34 | 26121 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 26122 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26123 | } |
26124 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 26125 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
70d7cb34 | 26126 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 26127 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26128 | } |
26129 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 26130 | { |
5c8c7dd3 | 26131 | (arg1)->AddLineToPoint(arg2,arg3); |
70d7cb34 RD |
26132 | if (PyErr_Occurred()) SWIG_fail; |
26133 | } | |
26134 | resultobj = SWIG_Py_Void(); | |
26135 | return resultobj; | |
26136 | fail: | |
26137 | return NULL; | |
26138 | } | |
26139 | ||
26140 | ||
5c8c7dd3 | 26141 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26142 | PyObject *resultobj = 0; |
26143 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 26144 | wxPoint2D *arg2 = 0 ; |
70d7cb34 RD |
26145 | void *argp1 = 0 ; |
26146 | int res1 = 0 ; | |
5c8c7dd3 | 26147 | wxPoint2D temp2 ; |
70d7cb34 | 26148 | |
5c8c7dd3 RD |
26149 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
26150 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26151 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26153 | } |
26154 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 26155 | { |
5c8c7dd3 RD |
26156 | arg2 = &temp2; |
26157 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
26158 | } | |
26159 | { | |
26160 | (arg1)->AddLineToPoint((wxPoint2D const &)*arg2); | |
70d7cb34 RD |
26161 | if (PyErr_Occurred()) SWIG_fail; |
26162 | } | |
26163 | resultobj = SWIG_Py_Void(); | |
26164 | return resultobj; | |
26165 | fail: | |
26166 | return NULL; | |
26167 | } | |
26168 | ||
26169 | ||
5c8c7dd3 RD |
26170 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) { |
26171 | int argc; | |
26172 | PyObject *argv[4]; | |
70d7cb34 | 26173 | |
5c8c7dd3 RD |
26174 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail; |
26175 | --argc; | |
26176 | if (argc == 2) { | |
26177 | return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 26178 | } |
5c8c7dd3 RD |
26179 | if (argc == 3) { |
26180 | return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 | 26181 | } |
5c8c7dd3 | 26182 | |
70d7cb34 | 26183 | fail: |
5c8c7dd3 | 26184 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'"); |
70d7cb34 RD |
26185 | return NULL; |
26186 | } | |
26187 | ||
26188 | ||
5c8c7dd3 | 26189 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26190 | PyObject *resultobj = 0; |
26191 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
26192 | wxDouble arg2 ; | |
26193 | wxDouble arg3 ; | |
26194 | wxDouble arg4 ; | |
26195 | wxDouble arg5 ; | |
26196 | wxDouble arg6 ; | |
5c8c7dd3 | 26197 | wxDouble arg7 ; |
70d7cb34 RD |
26198 | void *argp1 = 0 ; |
26199 | int res1 = 0 ; | |
26200 | double val2 ; | |
26201 | int ecode2 = 0 ; | |
26202 | double val3 ; | |
26203 | int ecode3 = 0 ; | |
26204 | double val4 ; | |
26205 | int ecode4 = 0 ; | |
26206 | double val5 ; | |
26207 | int ecode5 = 0 ; | |
26208 | double val6 ; | |
26209 | int ecode6 = 0 ; | |
5c8c7dd3 RD |
26210 | double val7 ; |
26211 | int ecode7 = 0 ; | |
70d7cb34 | 26212 | |
5c8c7dd3 RD |
26213 | if ((nobjs < 7) || (nobjs > 7)) SWIG_fail; |
26214 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26215 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26216 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26217 | } |
26218 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 26219 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); |
70d7cb34 | 26220 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 26221 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26222 | } |
26223 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 26224 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
70d7cb34 | 26225 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 26226 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26227 | } |
26228 | arg3 = static_cast< wxDouble >(val3); | |
5c8c7dd3 | 26229 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); |
70d7cb34 | 26230 | if (!SWIG_IsOK(ecode4)) { |
5c8c7dd3 | 26231 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26232 | } |
26233 | arg4 = static_cast< wxDouble >(val4); | |
5c8c7dd3 | 26234 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); |
70d7cb34 | 26235 | if (!SWIG_IsOK(ecode5)) { |
5c8c7dd3 | 26236 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26237 | } |
26238 | arg5 = static_cast< wxDouble >(val5); | |
5c8c7dd3 | 26239 | ecode6 = SWIG_AsVal_double(swig_obj[5], &val6); |
70d7cb34 | 26240 | if (!SWIG_IsOK(ecode6)) { |
5c8c7dd3 | 26241 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26242 | } |
26243 | arg6 = static_cast< wxDouble >(val6); | |
5c8c7dd3 RD |
26244 | ecode7 = SWIG_AsVal_double(swig_obj[6], &val7); |
26245 | if (!SWIG_IsOK(ecode7)) { | |
26246 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'"); | |
26247 | } | |
26248 | arg7 = static_cast< wxDouble >(val7); | |
70d7cb34 | 26249 | { |
5c8c7dd3 | 26250 | (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
26251 | if (PyErr_Occurred()) SWIG_fail; |
26252 | } | |
26253 | resultobj = SWIG_Py_Void(); | |
26254 | return resultobj; | |
26255 | fail: | |
26256 | return NULL; | |
26257 | } | |
26258 | ||
26259 | ||
5c8c7dd3 | 26260 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26261 | PyObject *resultobj = 0; |
26262 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 RD |
26263 | wxPoint2D *arg2 = 0 ; |
26264 | wxPoint2D *arg3 = 0 ; | |
26265 | wxPoint2D *arg4 = 0 ; | |
70d7cb34 RD |
26266 | void *argp1 = 0 ; |
26267 | int res1 = 0 ; | |
5c8c7dd3 RD |
26268 | wxPoint2D temp2 ; |
26269 | wxPoint2D temp3 ; | |
26270 | wxPoint2D temp4 ; | |
70d7cb34 | 26271 | |
5c8c7dd3 RD |
26272 | if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; |
26273 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26274 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26275 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26276 | } |
26277 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 26278 | { |
5c8c7dd3 RD |
26279 | arg2 = &temp2; |
26280 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
70d7cb34 | 26281 | } |
5c8c7dd3 RD |
26282 | { |
26283 | arg3 = &temp3; | |
26284 | if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail; | |
70d7cb34 | 26285 | } |
70d7cb34 | 26286 | { |
5c8c7dd3 RD |
26287 | arg4 = &temp4; |
26288 | if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail; | |
26289 | } | |
26290 | { | |
26291 | (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4); | |
70d7cb34 RD |
26292 | if (PyErr_Occurred()) SWIG_fail; |
26293 | } | |
26294 | resultobj = SWIG_Py_Void(); | |
26295 | return resultobj; | |
26296 | fail: | |
26297 | return NULL; | |
26298 | } | |
26299 | ||
26300 | ||
5c8c7dd3 RD |
26301 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) { |
26302 | int argc; | |
26303 | PyObject *argv[8]; | |
70d7cb34 | 26304 | |
5c8c7dd3 RD |
26305 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail; |
26306 | --argc; | |
26307 | if (argc == 4) { | |
26308 | return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 26309 | } |
5c8c7dd3 RD |
26310 | if (argc == 7) { |
26311 | return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 | 26312 | } |
5c8c7dd3 | 26313 | |
70d7cb34 | 26314 | fail: |
5c8c7dd3 | 26315 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'"); |
70d7cb34 RD |
26316 | return NULL; |
26317 | } | |
26318 | ||
26319 | ||
5c8c7dd3 | 26320 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 RD |
26321 | PyObject *resultobj = 0; |
26322 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 26323 | wxGraphicsPath *arg2 = 0 ; |
70d7cb34 RD |
26324 | void *argp1 = 0 ; |
26325 | int res1 = 0 ; | |
5c8c7dd3 RD |
26326 | void *argp2 = 0 ; |
26327 | int res2 = 0 ; | |
70d7cb34 RD |
26328 | PyObject * obj0 = 0 ; |
26329 | PyObject * obj1 = 0 ; | |
26330 | char * kwnames[] = { | |
5c8c7dd3 | 26331 | (char *) "self",(char *) "path", NULL |
70d7cb34 RD |
26332 | }; |
26333 | ||
5c8c7dd3 | 26334 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail; |
70d7cb34 RD |
26335 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26336 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26338 | } |
26339 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 26340 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
70d7cb34 | 26341 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
26342 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
26343 | } | |
26344 | if (!argp2) { | |
26345 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
70d7cb34 | 26346 | } |
5c8c7dd3 | 26347 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); |
70d7cb34 | 26348 | { |
5c8c7dd3 | 26349 | (arg1)->AddPath((wxGraphicsPath const &)*arg2); |
70d7cb34 RD |
26350 | if (PyErr_Occurred()) SWIG_fail; |
26351 | } | |
26352 | resultobj = SWIG_Py_Void(); | |
26353 | return resultobj; | |
26354 | fail: | |
26355 | return NULL; | |
26356 | } | |
26357 | ||
26358 | ||
5c8c7dd3 | 26359 | SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
26360 | PyObject *resultobj = 0; |
26361 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
70d7cb34 RD |
26362 | void *argp1 = 0 ; |
26363 | int res1 = 0 ; | |
5c8c7dd3 | 26364 | PyObject *swig_obj[1] ; |
70d7cb34 | 26365 | |
5c8c7dd3 RD |
26366 | if (!args) SWIG_fail; |
26367 | swig_obj[0] = args; | |
26368 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26369 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26370 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26371 | } |
26372 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 26373 | { |
5c8c7dd3 | 26374 | (arg1)->CloseSubpath(); |
70d7cb34 RD |
26375 | if (PyErr_Occurred()) SWIG_fail; |
26376 | } | |
26377 | resultobj = SWIG_Py_Void(); | |
26378 | return resultobj; | |
26379 | fail: | |
26380 | return NULL; | |
26381 | } | |
26382 | ||
26383 | ||
5c8c7dd3 | 26384 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
26385 | PyObject *resultobj = 0; |
26386 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 26387 | wxPoint2D result; |
70d7cb34 RD |
26388 | void *argp1 = 0 ; |
26389 | int res1 = 0 ; | |
26390 | PyObject *swig_obj[1] ; | |
26391 | ||
26392 | if (!args) SWIG_fail; | |
26393 | swig_obj[0] = args; | |
26394 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
26395 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26396 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 RD |
26397 | } |
26398 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26399 | { | |
5c8c7dd3 | 26400 | result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint(); |
70d7cb34 RD |
26401 | if (PyErr_Occurred()) SWIG_fail; |
26402 | } | |
5c8c7dd3 | 26403 | resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
26404 | return resultobj; |
26405 | fail: | |
26406 | return NULL; | |
26407 | } | |
26408 | ||
26409 | ||
5c8c7dd3 | 26410 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26411 | PyObject *resultobj = 0; |
26412 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
26413 | wxDouble arg2 ; | |
26414 | wxDouble arg3 ; | |
5c8c7dd3 RD |
26415 | wxDouble arg4 ; |
26416 | wxDouble arg5 ; | |
26417 | wxDouble arg6 ; | |
26418 | bool arg7 ; | |
70d7cb34 RD |
26419 | void *argp1 = 0 ; |
26420 | int res1 = 0 ; | |
26421 | double val2 ; | |
26422 | int ecode2 = 0 ; | |
26423 | double val3 ; | |
26424 | int ecode3 = 0 ; | |
5c8c7dd3 | 26425 | double val4 ; |
70d7cb34 | 26426 | int ecode4 = 0 ; |
5c8c7dd3 RD |
26427 | double val5 ; |
26428 | int ecode5 = 0 ; | |
26429 | double val6 ; | |
26430 | int ecode6 = 0 ; | |
26431 | bool val7 ; | |
26432 | int ecode7 = 0 ; | |
70d7cb34 | 26433 | |
5c8c7dd3 | 26434 | if ((nobjs < 7) || (nobjs > 7)) SWIG_fail; |
70d7cb34 RD |
26435 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26436 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26437 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26438 | } |
26439 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26440 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
26441 | if (!SWIG_IsOK(ecode2)) { | |
5c8c7dd3 | 26442 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26443 | } |
26444 | arg2 = static_cast< wxDouble >(val2); | |
26445 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
26446 | if (!SWIG_IsOK(ecode3)) { | |
5c8c7dd3 | 26447 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26448 | } |
26449 | arg3 = static_cast< wxDouble >(val3); | |
5c8c7dd3 RD |
26450 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); |
26451 | if (!SWIG_IsOK(ecode4)) { | |
26452 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26453 | } | |
26454 | arg4 = static_cast< wxDouble >(val4); | |
26455 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); | |
26456 | if (!SWIG_IsOK(ecode5)) { | |
26457 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26458 | } | |
26459 | arg5 = static_cast< wxDouble >(val5); | |
26460 | ecode6 = SWIG_AsVal_double(swig_obj[5], &val6); | |
26461 | if (!SWIG_IsOK(ecode6)) { | |
26462 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'"); | |
26463 | } | |
26464 | arg6 = static_cast< wxDouble >(val6); | |
26465 | ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7); | |
26466 | if (!SWIG_IsOK(ecode7)) { | |
26467 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'"); | |
26468 | } | |
26469 | arg7 = static_cast< bool >(val7); | |
70d7cb34 | 26470 | { |
5c8c7dd3 | 26471 | (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
26472 | if (PyErr_Occurred()) SWIG_fail; |
26473 | } | |
5c8c7dd3 | 26474 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
26475 | return resultobj; |
26476 | fail: | |
26477 | return NULL; | |
26478 | } | |
26479 | ||
26480 | ||
5c8c7dd3 | 26481 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26482 | PyObject *resultobj = 0; |
26483 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 RD |
26484 | wxPoint2D *arg2 = 0 ; |
26485 | wxDouble arg3 ; | |
26486 | wxDouble arg4 ; | |
26487 | wxDouble arg5 ; | |
26488 | bool arg6 ; | |
70d7cb34 RD |
26489 | void *argp1 = 0 ; |
26490 | int res1 = 0 ; | |
5c8c7dd3 RD |
26491 | wxPoint2D temp2 ; |
26492 | double val3 ; | |
70d7cb34 | 26493 | int ecode3 = 0 ; |
5c8c7dd3 RD |
26494 | double val4 ; |
26495 | int ecode4 = 0 ; | |
26496 | double val5 ; | |
26497 | int ecode5 = 0 ; | |
26498 | bool val6 ; | |
26499 | int ecode6 = 0 ; | |
70d7cb34 | 26500 | |
5c8c7dd3 | 26501 | if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; |
70d7cb34 RD |
26502 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26503 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26504 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26505 | } |
26506 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 26507 | { |
5c8c7dd3 RD |
26508 | arg2 = &temp2; |
26509 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
70d7cb34 | 26510 | } |
5c8c7dd3 RD |
26511 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
26512 | if (!SWIG_IsOK(ecode3)) { | |
26513 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26514 | } | |
26515 | arg3 = static_cast< wxDouble >(val3); | |
26516 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); | |
26517 | if (!SWIG_IsOK(ecode4)) { | |
26518 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26519 | } | |
26520 | arg4 = static_cast< wxDouble >(val4); | |
26521 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); | |
26522 | if (!SWIG_IsOK(ecode5)) { | |
26523 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26524 | } | |
26525 | arg5 = static_cast< wxDouble >(val5); | |
26526 | ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6); | |
26527 | if (!SWIG_IsOK(ecode6)) { | |
26528 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'"); | |
26529 | } | |
26530 | arg6 = static_cast< bool >(val6); | |
70d7cb34 | 26531 | { |
5c8c7dd3 RD |
26532 | (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6); |
26533 | if (PyErr_Occurred()) SWIG_fail; | |
70d7cb34 | 26534 | } |
5c8c7dd3 | 26535 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
26536 | return resultobj; |
26537 | fail: | |
26538 | return NULL; | |
26539 | } | |
26540 | ||
26541 | ||
5c8c7dd3 | 26542 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) { |
70d7cb34 | 26543 | int argc; |
5c8c7dd3 | 26544 | PyObject *argv[8]; |
70d7cb34 | 26545 | |
5c8c7dd3 | 26546 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail; |
70d7cb34 | 26547 | --argc; |
5c8c7dd3 RD |
26548 | if (argc == 6) { |
26549 | return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv); | |
70d7cb34 | 26550 | } |
5c8c7dd3 RD |
26551 | if (argc == 7) { |
26552 | return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv); | |
70d7cb34 RD |
26553 | } |
26554 | ||
26555 | fail: | |
5c8c7dd3 | 26556 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'"); |
70d7cb34 RD |
26557 | return NULL; |
26558 | } | |
26559 | ||
26560 | ||
5c8c7dd3 | 26561 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26562 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26563 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26564 | wxDouble arg2 ; | |
26565 | wxDouble arg3 ; | |
26566 | wxDouble arg4 ; | |
26567 | wxDouble arg5 ; | |
70d7cb34 RD |
26568 | void *argp1 = 0 ; |
26569 | int res1 = 0 ; | |
5c8c7dd3 RD |
26570 | double val2 ; |
26571 | int ecode2 = 0 ; | |
26572 | double val3 ; | |
26573 | int ecode3 = 0 ; | |
26574 | double val4 ; | |
26575 | int ecode4 = 0 ; | |
26576 | double val5 ; | |
26577 | int ecode5 = 0 ; | |
26578 | PyObject * obj0 = 0 ; | |
26579 | PyObject * obj1 = 0 ; | |
26580 | PyObject * obj2 = 0 ; | |
26581 | PyObject * obj3 = 0 ; | |
26582 | PyObject * obj4 = 0 ; | |
26583 | char * kwnames[] = { | |
26584 | (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL | |
26585 | }; | |
70d7cb34 | 26586 | |
5c8c7dd3 RD |
26587 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
26588 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26589 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26590 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26591 | } |
5c8c7dd3 RD |
26592 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26593 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26594 | if (!SWIG_IsOK(ecode2)) { | |
26595 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26596 | } | |
26597 | arg2 = static_cast< wxDouble >(val2); | |
26598 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26599 | if (!SWIG_IsOK(ecode3)) { | |
26600 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26601 | } | |
26602 | arg3 = static_cast< wxDouble >(val3); | |
26603 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26604 | if (!SWIG_IsOK(ecode4)) { | |
26605 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26606 | } | |
26607 | arg4 = static_cast< wxDouble >(val4); | |
26608 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26609 | if (!SWIG_IsOK(ecode5)) { | |
26610 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26611 | } | |
26612 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 26613 | { |
5c8c7dd3 | 26614 | (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
26615 | if (PyErr_Occurred()) SWIG_fail; |
26616 | } | |
26617 | resultobj = SWIG_Py_Void(); | |
26618 | return resultobj; | |
26619 | fail: | |
26620 | return NULL; | |
26621 | } | |
26622 | ||
26623 | ||
5c8c7dd3 | 26624 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26625 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26626 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26627 | wxDouble arg2 ; | |
26628 | wxDouble arg3 ; | |
26629 | wxDouble arg4 ; | |
26630 | wxDouble arg5 ; | |
70d7cb34 RD |
26631 | void *argp1 = 0 ; |
26632 | int res1 = 0 ; | |
5c8c7dd3 RD |
26633 | double val2 ; |
26634 | int ecode2 = 0 ; | |
26635 | double val3 ; | |
26636 | int ecode3 = 0 ; | |
26637 | double val4 ; | |
26638 | int ecode4 = 0 ; | |
26639 | double val5 ; | |
26640 | int ecode5 = 0 ; | |
70d7cb34 RD |
26641 | PyObject * obj0 = 0 ; |
26642 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
26643 | PyObject * obj2 = 0 ; |
26644 | PyObject * obj3 = 0 ; | |
26645 | PyObject * obj4 = 0 ; | |
70d7cb34 | 26646 | char * kwnames[] = { |
5c8c7dd3 | 26647 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL |
70d7cb34 RD |
26648 | }; |
26649 | ||
5c8c7dd3 RD |
26650 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
26651 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26652 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26654 | } |
5c8c7dd3 RD |
26655 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26656 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26657 | if (!SWIG_IsOK(ecode2)) { | |
26658 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26659 | } | |
26660 | arg2 = static_cast< wxDouble >(val2); | |
26661 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26662 | if (!SWIG_IsOK(ecode3)) { | |
26663 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26664 | } | |
26665 | arg3 = static_cast< wxDouble >(val3); | |
26666 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26667 | if (!SWIG_IsOK(ecode4)) { | |
26668 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26669 | } | |
26670 | arg4 = static_cast< wxDouble >(val4); | |
26671 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26672 | if (!SWIG_IsOK(ecode5)) { | |
26673 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26674 | } | |
26675 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 26676 | { |
5c8c7dd3 | 26677 | (arg1)->AddRectangle(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
26678 | if (PyErr_Occurred()) SWIG_fail; |
26679 | } | |
26680 | resultobj = SWIG_Py_Void(); | |
26681 | return resultobj; | |
26682 | fail: | |
26683 | return NULL; | |
26684 | } | |
26685 | ||
26686 | ||
5c8c7dd3 | 26687 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26688 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26689 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26690 | wxDouble arg2 ; | |
26691 | wxDouble arg3 ; | |
26692 | wxDouble arg4 ; | |
70d7cb34 RD |
26693 | void *argp1 = 0 ; |
26694 | int res1 = 0 ; | |
5c8c7dd3 RD |
26695 | double val2 ; |
26696 | int ecode2 = 0 ; | |
26697 | double val3 ; | |
26698 | int ecode3 = 0 ; | |
26699 | double val4 ; | |
26700 | int ecode4 = 0 ; | |
70d7cb34 RD |
26701 | PyObject * obj0 = 0 ; |
26702 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
26703 | PyObject * obj2 = 0 ; |
26704 | PyObject * obj3 = 0 ; | |
70d7cb34 | 26705 | char * kwnames[] = { |
5c8c7dd3 | 26706 | (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL |
70d7cb34 RD |
26707 | }; |
26708 | ||
5c8c7dd3 RD |
26709 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
26710 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26711 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26713 | } |
5c8c7dd3 RD |
26714 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26715 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26716 | if (!SWIG_IsOK(ecode2)) { | |
26717 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26718 | } | |
26719 | arg2 = static_cast< wxDouble >(val2); | |
26720 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26721 | if (!SWIG_IsOK(ecode3)) { | |
26722 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26723 | } | |
26724 | arg3 = static_cast< wxDouble >(val3); | |
26725 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26726 | if (!SWIG_IsOK(ecode4)) { | |
26727 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26728 | } | |
26729 | arg4 = static_cast< wxDouble >(val4); | |
70d7cb34 | 26730 | { |
5c8c7dd3 | 26731 | (arg1)->AddCircle(arg2,arg3,arg4); |
70d7cb34 RD |
26732 | if (PyErr_Occurred()) SWIG_fail; |
26733 | } | |
26734 | resultobj = SWIG_Py_Void(); | |
26735 | return resultobj; | |
26736 | fail: | |
26737 | return NULL; | |
26738 | } | |
26739 | ||
26740 | ||
5c8c7dd3 | 26741 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26742 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26743 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26744 | wxDouble arg2 ; | |
26745 | wxDouble arg3 ; | |
26746 | wxDouble arg4 ; | |
26747 | wxDouble arg5 ; | |
26748 | wxDouble arg6 ; | |
70d7cb34 RD |
26749 | void *argp1 = 0 ; |
26750 | int res1 = 0 ; | |
26751 | double val2 ; | |
26752 | int ecode2 = 0 ; | |
26753 | double val3 ; | |
26754 | int ecode3 = 0 ; | |
26755 | double val4 ; | |
26756 | int ecode4 = 0 ; | |
26757 | double val5 ; | |
26758 | int ecode5 = 0 ; | |
26759 | double val6 ; | |
26760 | int ecode6 = 0 ; | |
70d7cb34 RD |
26761 | PyObject * obj0 = 0 ; |
26762 | PyObject * obj1 = 0 ; | |
26763 | PyObject * obj2 = 0 ; | |
26764 | PyObject * obj3 = 0 ; | |
26765 | PyObject * obj4 = 0 ; | |
26766 | PyObject * obj5 = 0 ; | |
70d7cb34 | 26767 | char * kwnames[] = { |
5c8c7dd3 | 26768 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL |
70d7cb34 RD |
26769 | }; |
26770 | ||
5c8c7dd3 RD |
26771 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
26772 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26773 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26774 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26775 | } |
5c8c7dd3 RD |
26776 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26777 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26778 | if (!SWIG_IsOK(ecode2)) { | |
26779 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26780 | } | |
26781 | arg2 = static_cast< wxDouble >(val2); | |
26782 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26783 | if (!SWIG_IsOK(ecode3)) { | |
26784 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26785 | } | |
26786 | arg3 = static_cast< wxDouble >(val3); | |
26787 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26788 | if (!SWIG_IsOK(ecode4)) { | |
26789 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26790 | } | |
26791 | arg4 = static_cast< wxDouble >(val4); | |
26792 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26793 | if (!SWIG_IsOK(ecode5)) { | |
26794 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26795 | } | |
26796 | arg5 = static_cast< wxDouble >(val5); | |
26797 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
26798 | if (!SWIG_IsOK(ecode6)) { | |
26799 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'"); | |
26800 | } | |
26801 | arg6 = static_cast< wxDouble >(val6); | |
70d7cb34 | 26802 | { |
5c8c7dd3 | 26803 | (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6); |
70d7cb34 RD |
26804 | if (PyErr_Occurred()) SWIG_fail; |
26805 | } | |
26806 | resultobj = SWIG_Py_Void(); | |
26807 | return resultobj; | |
26808 | fail: | |
26809 | return NULL; | |
26810 | } | |
26811 | ||
26812 | ||
5c8c7dd3 | 26813 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26814 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26815 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26816 | wxDouble arg2 ; | |
26817 | wxDouble arg3 ; | |
26818 | wxDouble arg4 ; | |
26819 | wxDouble arg5 ; | |
70d7cb34 RD |
26820 | void *argp1 = 0 ; |
26821 | int res1 = 0 ; | |
5c8c7dd3 RD |
26822 | double val2 ; |
26823 | int ecode2 = 0 ; | |
26824 | double val3 ; | |
26825 | int ecode3 = 0 ; | |
26826 | double val4 ; | |
26827 | int ecode4 = 0 ; | |
26828 | double val5 ; | |
26829 | int ecode5 = 0 ; | |
26830 | PyObject * obj0 = 0 ; | |
26831 | PyObject * obj1 = 0 ; | |
26832 | PyObject * obj2 = 0 ; | |
26833 | PyObject * obj3 = 0 ; | |
26834 | PyObject * obj4 = 0 ; | |
26835 | char * kwnames[] = { | |
26836 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
26837 | }; | |
70d7cb34 | 26838 | |
5c8c7dd3 RD |
26839 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
26840 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26841 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26842 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26843 | } |
5c8c7dd3 RD |
26844 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26845 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26846 | if (!SWIG_IsOK(ecode2)) { | |
26847 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26848 | } | |
26849 | arg2 = static_cast< wxDouble >(val2); | |
26850 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26851 | if (!SWIG_IsOK(ecode3)) { | |
26852 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26853 | } | |
26854 | arg3 = static_cast< wxDouble >(val3); | |
26855 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26856 | if (!SWIG_IsOK(ecode4)) { | |
26857 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26858 | } | |
26859 | arg4 = static_cast< wxDouble >(val4); | |
26860 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26861 | if (!SWIG_IsOK(ecode5)) { | |
26862 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26863 | } | |
26864 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 26865 | { |
5c8c7dd3 | 26866 | (arg1)->AddEllipse(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
26867 | if (PyErr_Occurred()) SWIG_fail; |
26868 | } | |
26869 | resultobj = SWIG_Py_Void(); | |
26870 | return resultobj; | |
26871 | fail: | |
26872 | return NULL; | |
26873 | } | |
26874 | ||
26875 | ||
5c8c7dd3 | 26876 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26877 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26878 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26879 | wxDouble arg2 ; | |
26880 | wxDouble arg3 ; | |
26881 | wxDouble arg4 ; | |
26882 | wxDouble arg5 ; | |
26883 | wxDouble arg6 ; | |
70d7cb34 RD |
26884 | void *argp1 = 0 ; |
26885 | int res1 = 0 ; | |
5c8c7dd3 RD |
26886 | double val2 ; |
26887 | int ecode2 = 0 ; | |
26888 | double val3 ; | |
26889 | int ecode3 = 0 ; | |
26890 | double val4 ; | |
26891 | int ecode4 = 0 ; | |
26892 | double val5 ; | |
26893 | int ecode5 = 0 ; | |
26894 | double val6 ; | |
26895 | int ecode6 = 0 ; | |
70d7cb34 RD |
26896 | PyObject * obj0 = 0 ; |
26897 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
26898 | PyObject * obj2 = 0 ; |
26899 | PyObject * obj3 = 0 ; | |
26900 | PyObject * obj4 = 0 ; | |
26901 | PyObject * obj5 = 0 ; | |
70d7cb34 | 26902 | char * kwnames[] = { |
5c8c7dd3 | 26903 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL |
70d7cb34 RD |
26904 | }; |
26905 | ||
5c8c7dd3 RD |
26906 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
26907 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26908 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26909 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26910 | } |
5c8c7dd3 RD |
26911 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26912 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26913 | if (!SWIG_IsOK(ecode2)) { | |
26914 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26915 | } | |
26916 | arg2 = static_cast< wxDouble >(val2); | |
26917 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26918 | if (!SWIG_IsOK(ecode3)) { | |
26919 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26920 | } | |
26921 | arg3 = static_cast< wxDouble >(val3); | |
26922 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26923 | if (!SWIG_IsOK(ecode4)) { | |
26924 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26925 | } | |
26926 | arg4 = static_cast< wxDouble >(val4); | |
26927 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26928 | if (!SWIG_IsOK(ecode5)) { | |
26929 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26930 | } | |
26931 | arg5 = static_cast< wxDouble >(val5); | |
26932 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
26933 | if (!SWIG_IsOK(ecode6)) { | |
26934 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'"); | |
26935 | } | |
26936 | arg6 = static_cast< wxDouble >(val6); | |
70d7cb34 | 26937 | { |
5c8c7dd3 | 26938 | (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6); |
70d7cb34 RD |
26939 | if (PyErr_Occurred()) SWIG_fail; |
26940 | } | |
5c8c7dd3 | 26941 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
26942 | return resultobj; |
26943 | fail: | |
26944 | return NULL; | |
26945 | } | |
26946 | ||
26947 | ||
5c8c7dd3 | 26948 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 | 26949 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26950 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26951 | void *result = 0 ; | |
70d7cb34 RD |
26952 | void *argp1 = 0 ; |
26953 | int res1 = 0 ; | |
26954 | PyObject *swig_obj[1] ; | |
26955 | ||
26956 | if (!args) SWIG_fail; | |
26957 | swig_obj[0] = args; | |
5c8c7dd3 | 26958 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
70d7cb34 | 26959 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26960 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 26961 | } |
5c8c7dd3 | 26962 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
70d7cb34 | 26963 | { |
5c8c7dd3 | 26964 | result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath(); |
70d7cb34 RD |
26965 | if (PyErr_Occurred()) SWIG_fail; |
26966 | } | |
5c8c7dd3 | 26967 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); |
70d7cb34 RD |
26968 | return resultobj; |
26969 | fail: | |
26970 | return NULL; | |
26971 | } | |
26972 | ||
26973 | ||
5c8c7dd3 | 26974 | SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26975 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26976 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26977 | void *arg2 = (void *) 0 ; | |
70d7cb34 RD |
26978 | void *argp1 = 0 ; |
26979 | int res1 = 0 ; | |
5c8c7dd3 | 26980 | int res2 ; |
70d7cb34 RD |
26981 | PyObject * obj0 = 0 ; |
26982 | PyObject * obj1 = 0 ; | |
70d7cb34 | 26983 | char * kwnames[] = { |
5c8c7dd3 | 26984 | (char *) "self",(char *) "p", NULL |
70d7cb34 RD |
26985 | }; |
26986 | ||
5c8c7dd3 RD |
26987 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail; |
26988 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26989 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 RD |
26990 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
26991 | } | |
26992 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26993 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
26994 | if (!SWIG_IsOK(res2)) { | |
26995 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'"); | |
70d7cb34 | 26996 | } |
70d7cb34 | 26997 | { |
5c8c7dd3 | 26998 | ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2); |
70d7cb34 RD |
26999 | if (PyErr_Occurred()) SWIG_fail; |
27000 | } | |
27001 | resultobj = SWIG_Py_Void(); | |
27002 | return resultobj; | |
27003 | fail: | |
27004 | return NULL; | |
27005 | } | |
27006 | ||
27007 | ||
5c8c7dd3 | 27008 | SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27009 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27010 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27011 | wxGraphicsMatrix *arg2 = 0 ; | |
70d7cb34 RD |
27012 | void *argp1 = 0 ; |
27013 | int res1 = 0 ; | |
5c8c7dd3 RD |
27014 | void *argp2 = 0 ; |
27015 | int res2 = 0 ; | |
70d7cb34 RD |
27016 | PyObject * obj0 = 0 ; |
27017 | PyObject * obj1 = 0 ; | |
70d7cb34 | 27018 | char * kwnames[] = { |
5c8c7dd3 | 27019 | (char *) "self",(char *) "matrix", NULL |
70d7cb34 RD |
27020 | }; |
27021 | ||
5c8c7dd3 RD |
27022 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail; |
27023 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27024 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27025 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27026 | } |
5c8c7dd3 RD |
27027 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27028 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
27029 | if (!SWIG_IsOK(res2)) { | |
27030 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
27031 | } | |
27032 | if (!argp2) { | |
27033 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
27034 | } | |
27035 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
70d7cb34 | 27036 | { |
5c8c7dd3 | 27037 | (arg1)->Transform((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
27038 | if (PyErr_Occurred()) SWIG_fail; |
27039 | } | |
27040 | resultobj = SWIG_Py_Void(); | |
27041 | return resultobj; | |
27042 | fail: | |
27043 | return NULL; | |
27044 | } | |
27045 | ||
27046 | ||
5c8c7dd3 | 27047 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 | 27048 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27049 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27050 | wxRect2DDouble result; | |
70d7cb34 RD |
27051 | void *argp1 = 0 ; |
27052 | int res1 = 0 ; | |
5c8c7dd3 | 27053 | PyObject *swig_obj[1] ; |
70d7cb34 | 27054 | |
5c8c7dd3 RD |
27055 | if (!args) SWIG_fail; |
27056 | swig_obj[0] = args; | |
27057 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27058 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 27060 | } |
5c8c7dd3 | 27061 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
70d7cb34 | 27062 | { |
5c8c7dd3 | 27063 | result = ((wxGraphicsPath const *)arg1)->GetBox(); |
70d7cb34 RD |
27064 | if (PyErr_Occurred()) SWIG_fail; |
27065 | } | |
5c8c7dd3 | 27066 | resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
27067 | return resultobj; |
27068 | fail: | |
27069 | return NULL; | |
27070 | } | |
27071 | ||
27072 | ||
5c8c7dd3 | 27073 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 | 27074 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27075 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27076 | wxDouble arg2 ; | |
27077 | wxDouble arg3 ; | |
27078 | int arg4 = (int) wxODDEVEN_RULE ; | |
27079 | bool result; | |
70d7cb34 RD |
27080 | void *argp1 = 0 ; |
27081 | int res1 = 0 ; | |
5c8c7dd3 RD |
27082 | double val2 ; |
27083 | int ecode2 = 0 ; | |
27084 | double val3 ; | |
27085 | int ecode3 = 0 ; | |
27086 | int val4 ; | |
27087 | int ecode4 = 0 ; | |
70d7cb34 | 27088 | |
5c8c7dd3 RD |
27089 | if ((nobjs < 3) || (nobjs > 4)) SWIG_fail; |
27090 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27091 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27092 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 27093 | } |
5c8c7dd3 RD |
27094 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27095 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
27096 | if (!SWIG_IsOK(ecode2)) { | |
27097 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27098 | } | |
27099 | arg2 = static_cast< wxDouble >(val2); | |
27100 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
27101 | if (!SWIG_IsOK(ecode3)) { | |
27102 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27103 | } | |
27104 | arg3 = static_cast< wxDouble >(val3); | |
27105 | if (swig_obj[3]) { | |
27106 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
27107 | if (!SWIG_IsOK(ecode4)) { | |
27108 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'"); | |
27109 | } | |
27110 | arg4 = static_cast< int >(val4); | |
70d7cb34 RD |
27111 | } |
27112 | { | |
5c8c7dd3 | 27113 | result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4); |
70d7cb34 RD |
27114 | if (PyErr_Occurred()) SWIG_fail; |
27115 | } | |
5c8c7dd3 RD |
27116 | { |
27117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
70d7cb34 RD |
27118 | } |
27119 | return resultobj; | |
27120 | fail: | |
27121 | return NULL; | |
27122 | } | |
27123 | ||
27124 | ||
5c8c7dd3 | 27125 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 | 27126 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27127 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27128 | wxPoint2DDouble *arg2 = 0 ; | |
27129 | int arg3 = (int) wxODDEVEN_RULE ; | |
27130 | bool result; | |
70d7cb34 RD |
27131 | void *argp1 = 0 ; |
27132 | int res1 = 0 ; | |
5c8c7dd3 | 27133 | void *argp2 = 0 ; |
70d7cb34 | 27134 | int res2 = 0 ; |
5c8c7dd3 RD |
27135 | int val3 ; |
27136 | int ecode3 = 0 ; | |
70d7cb34 | 27137 | |
5c8c7dd3 RD |
27138 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; |
27139 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27140 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27141 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 27142 | } |
5c8c7dd3 RD |
27143 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27144 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0); | |
27145 | if (!SWIG_IsOK(res2)) { | |
27146 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'"); | |
70d7cb34 | 27147 | } |
5c8c7dd3 RD |
27148 | if (!argp2) { |
27149 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'"); | |
27150 | } | |
27151 | arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2); | |
27152 | if (swig_obj[2]) { | |
27153 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
27154 | if (!SWIG_IsOK(ecode3)) { | |
27155 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'"); | |
27156 | } | |
27157 | arg3 = static_cast< int >(val3); | |
70d7cb34 RD |
27158 | } |
27159 | { | |
5c8c7dd3 | 27160 | result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3); |
70d7cb34 RD |
27161 | if (PyErr_Occurred()) SWIG_fail; |
27162 | } | |
5c8c7dd3 RD |
27163 | { |
27164 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
70d7cb34 RD |
27165 | } |
27166 | return resultobj; | |
27167 | fail: | |
27168 | return NULL; | |
27169 | } | |
27170 | ||
27171 | ||
5c8c7dd3 RD |
27172 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) { |
27173 | int argc; | |
27174 | PyObject *argv[5]; | |
70d7cb34 | 27175 | |
5c8c7dd3 RD |
27176 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail; |
27177 | --argc; | |
27178 | if ((argc >= 2) && (argc <= 3)) { | |
27179 | int _v = 0; | |
27180 | { | |
27181 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0); | |
27182 | _v = SWIG_CheckState(res); | |
27183 | } | |
27184 | if (!_v) goto check_1; | |
27185 | if (argc > 2) { | |
27186 | { | |
27187 | { | |
27188 | int res = SWIG_AsVal_int(argv[2], NULL); | |
27189 | _v = SWIG_CheckState(res); | |
27190 | } | |
27191 | } | |
27192 | if (!_v) goto check_1; | |
27193 | } | |
27194 | return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv); | |
70d7cb34 | 27195 | } |
5c8c7dd3 RD |
27196 | check_1: |
27197 | ||
27198 | if ((argc >= 3) && (argc <= 4)) { | |
27199 | return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv); | |
70d7cb34 | 27200 | } |
5c8c7dd3 | 27201 | |
70d7cb34 | 27202 | fail: |
5c8c7dd3 | 27203 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'"); |
70d7cb34 RD |
27204 | return NULL; |
27205 | } | |
27206 | ||
27207 | ||
5c8c7dd3 | 27208 | SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
27209 | PyObject *obj; |
27210 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5c8c7dd3 | 27211 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj)); |
70d7cb34 RD |
27212 | return SWIG_Py_Void(); |
27213 | } | |
27214 | ||
8f514ab4 RD |
27215 | SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27216 | return SWIG_Python_InitShadowInstance(args); | |
27217 | } | |
27218 | ||
5c8c7dd3 RD |
27219 | SWIGINTERN int NullGraphicsPen_set(PyObject *) { |
27220 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only."); | |
27221 | return 1; | |
27222 | } | |
27223 | ||
27224 | ||
27225 | SWIGINTERN PyObject *NullGraphicsPen_get(void) { | |
27226 | PyObject *pyobj = 0; | |
27227 | ||
27228 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 ); | |
27229 | return pyobj; | |
27230 | } | |
27231 | ||
27232 | ||
27233 | SWIGINTERN int NullGraphicsBrush_set(PyObject *) { | |
27234 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only."); | |
27235 | return 1; | |
27236 | } | |
27237 | ||
27238 | ||
27239 | SWIGINTERN PyObject *NullGraphicsBrush_get(void) { | |
27240 | PyObject *pyobj = 0; | |
27241 | ||
27242 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 ); | |
27243 | return pyobj; | |
27244 | } | |
27245 | ||
27246 | ||
27247 | SWIGINTERN int NullGraphicsFont_set(PyObject *) { | |
27248 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only."); | |
27249 | return 1; | |
27250 | } | |
27251 | ||
27252 | ||
27253 | SWIGINTERN PyObject *NullGraphicsFont_get(void) { | |
27254 | PyObject *pyobj = 0; | |
27255 | ||
27256 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 ); | |
27257 | return pyobj; | |
27258 | } | |
27259 | ||
27260 | ||
27261 | SWIGINTERN int NullGraphicsMatrix_set(PyObject *) { | |
27262 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only."); | |
27263 | return 1; | |
27264 | } | |
27265 | ||
27266 | ||
27267 | SWIGINTERN PyObject *NullGraphicsMatrix_get(void) { | |
27268 | PyObject *pyobj = 0; | |
27269 | ||
27270 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 ); | |
27271 | return pyobj; | |
27272 | } | |
27273 | ||
27274 | ||
27275 | SWIGINTERN int NullGraphicsPath_set(PyObject *) { | |
27276 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only."); | |
27277 | return 1; | |
27278 | } | |
27279 | ||
27280 | ||
27281 | SWIGINTERN PyObject *NullGraphicsPath_get(void) { | |
27282 | PyObject *pyobj = 0; | |
27283 | ||
27284 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 ); | |
27285 | return pyobj; | |
27286 | } | |
27287 | ||
27288 | ||
70d7cb34 RD |
27289 | SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27290 | PyObject *resultobj = 0; | |
27291 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27292 | void *argp1 = 0 ; | |
27293 | int res1 = 0 ; | |
27294 | PyObject *swig_obj[1] ; | |
27295 | ||
27296 | if (!args) SWIG_fail; | |
27297 | swig_obj[0] = args; | |
27298 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 ); | |
27299 | if (!SWIG_IsOK(res1)) { | |
27300 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27301 | } | |
27302 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27303 | { | |
27304 | delete arg1; | |
27305 | ||
27306 | if (PyErr_Occurred()) SWIG_fail; | |
27307 | } | |
27308 | resultobj = SWIG_Py_Void(); | |
27309 | return resultobj; | |
27310 | fail: | |
27311 | return NULL; | |
27312 | } | |
27313 | ||
27314 | ||
27315 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
27316 | PyObject *resultobj = 0; | |
27317 | wxWindowDC *arg1 = 0 ; | |
27318 | wxGraphicsContext *result = 0 ; | |
27319 | void *argp1 = 0 ; | |
27320 | int res1 = 0 ; | |
27321 | ||
27322 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
27323 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
27324 | if (!SWIG_IsOK(res1)) { | |
27325 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
27326 | } | |
27327 | if (!argp1) { | |
27328 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
27329 | } | |
27330 | arg1 = reinterpret_cast< wxWindowDC * >(argp1); | |
27331 | { | |
27332 | result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1); | |
27333 | if (PyErr_Occurred()) SWIG_fail; | |
27334 | } | |
27335 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
27336 | return resultobj; | |
27337 | fail: | |
27338 | return NULL; | |
27339 | } | |
27340 | ||
27341 | ||
27342 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
27343 | PyObject *resultobj = 0; | |
27344 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27345 | wxGraphicsContext *result = 0 ; | |
27346 | void *argp1 = 0 ; | |
27347 | int res1 = 0 ; | |
27348 | ||
27349 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
27350 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27351 | if (!SWIG_IsOK(res1)) { | |
27352 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
27353 | } | |
27354 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
27355 | { | |
27356 | result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1); | |
27357 | if (PyErr_Occurred()) SWIG_fail; | |
27358 | } | |
27359 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
27360 | return resultobj; | |
27361 | fail: | |
27362 | return NULL; | |
27363 | } | |
27364 | ||
27365 | ||
27366 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) { | |
27367 | int argc; | |
27368 | PyObject *argv[2]; | |
27369 | ||
27370 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail; | |
27371 | --argc; | |
27372 | if (argc == 1) { | |
27373 | int _v = 0; | |
27374 | { | |
27375 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0); | |
27376 | _v = SWIG_CheckState(res); | |
27377 | } | |
27378 | if (!_v) goto check_1; | |
27379 | return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv); | |
27380 | } | |
27381 | check_1: | |
27382 | ||
27383 | if (argc == 1) { | |
27384 | return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv); | |
27385 | } | |
27386 | ||
27387 | fail: | |
27388 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'"); | |
27389 | return NULL; | |
27390 | } | |
27391 | ||
27392 | ||
27393 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27394 | PyObject *resultobj = 0; | |
27395 | void *arg1 = (void *) 0 ; | |
27396 | wxGraphicsContext *result = 0 ; | |
27397 | int res1 ; | |
27398 | PyObject * obj0 = 0 ; | |
27399 | char * kwnames[] = { | |
27400 | (char *) "context", NULL | |
27401 | }; | |
27402 | ||
27403 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail; | |
27404 | res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); | |
27405 | if (!SWIG_IsOK(res1)) { | |
27406 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'"); | |
27407 | } | |
27408 | { | |
27409 | result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1); | |
27410 | if (PyErr_Occurred()) SWIG_fail; | |
27411 | } | |
27412 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
27413 | return resultobj; | |
27414 | fail: | |
27415 | return NULL; | |
27416 | } | |
27417 | ||
27418 | ||
27419 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27420 | PyObject *resultobj = 0; | |
27421 | void *arg1 = (void *) 0 ; | |
27422 | wxGraphicsContext *result = 0 ; | |
27423 | int res1 ; | |
27424 | PyObject * obj0 = 0 ; | |
27425 | char * kwnames[] = { | |
27426 | (char *) "window", NULL | |
27427 | }; | |
27428 | ||
27429 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail; | |
27430 | res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); | |
27431 | if (!SWIG_IsOK(res1)) { | |
27432 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'"); | |
27433 | } | |
27434 | { | |
27435 | result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1); | |
27436 | if (PyErr_Occurred()) SWIG_fail; | |
27437 | } | |
27438 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27439 | return resultobj; | |
27440 | fail: | |
27441 | return NULL; | |
27442 | } | |
27443 | ||
27444 | ||
27445 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27446 | PyObject *resultobj = 0; | |
27447 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 27448 | wxGraphicsPath result; |
70d7cb34 RD |
27449 | void *argp1 = 0 ; |
27450 | int res1 = 0 ; | |
27451 | PyObject *swig_obj[1] ; | |
27452 | ||
27453 | if (!args) SWIG_fail; | |
27454 | swig_obj[0] = args; | |
27455 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27456 | if (!SWIG_IsOK(res1)) { | |
27457 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27458 | } | |
27459 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27460 | { | |
5c8c7dd3 | 27461 | result = (arg1)->CreatePath(); |
70d7cb34 RD |
27462 | if (PyErr_Occurred()) SWIG_fail; |
27463 | } | |
5c8c7dd3 | 27464 | resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27465 | return resultobj; |
27466 | fail: | |
27467 | return NULL; | |
27468 | } | |
27469 | ||
27470 | ||
70d7cb34 | 27471 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 27472 | PyObject *resultobj = 0; |
70d7cb34 RD |
27473 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
27474 | wxPen *arg2 = 0 ; | |
27475 | wxGraphicsPen result; | |
72ef6efb RD |
27476 | void *argp1 = 0 ; |
27477 | int res1 = 0 ; | |
70d7cb34 RD |
27478 | void *argp2 = 0 ; |
27479 | int res2 = 0 ; | |
72ef6efb RD |
27480 | PyObject * obj0 = 0 ; |
27481 | PyObject * obj1 = 0 ; | |
72ef6efb | 27482 | char * kwnames[] = { |
70d7cb34 | 27483 | (char *) "self",(char *) "pen", NULL |
72ef6efb RD |
27484 | }; |
27485 | ||
70d7cb34 RD |
27486 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail; |
27487 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 27488 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27489 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 27490 | } |
70d7cb34 RD |
27491 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
27492 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
27493 | if (!SWIG_IsOK(res2)) { | |
27494 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
27495 | } | |
27496 | if (!argp2) { | |
27497 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
27498 | } | |
27499 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
72ef6efb | 27500 | { |
70d7cb34 | 27501 | result = (arg1)->CreatePen((wxPen const &)*arg2); |
72ef6efb RD |
27502 | if (PyErr_Occurred()) SWIG_fail; |
27503 | } | |
70d7cb34 | 27504 | resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27505 | return resultobj; |
27506 | fail: | |
27507 | return NULL; | |
27508 | } | |
27509 | ||
27510 | ||
70d7cb34 | 27511 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 27512 | PyObject *resultobj = 0; |
70d7cb34 RD |
27513 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
27514 | wxBrush *arg2 = 0 ; | |
27515 | wxGraphicsBrush result; | |
72ef6efb RD |
27516 | void *argp1 = 0 ; |
27517 | int res1 = 0 ; | |
70d7cb34 RD |
27518 | void *argp2 = 0 ; |
27519 | int res2 = 0 ; | |
72ef6efb RD |
27520 | PyObject * obj0 = 0 ; |
27521 | PyObject * obj1 = 0 ; | |
72ef6efb | 27522 | char * kwnames[] = { |
70d7cb34 | 27523 | (char *) "self",(char *) "brush", NULL |
72ef6efb RD |
27524 | }; |
27525 | ||
70d7cb34 RD |
27526 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail; |
27527 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 27528 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27529 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 27530 | } |
70d7cb34 RD |
27531 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
27532 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
27533 | if (!SWIG_IsOK(res2)) { | |
27534 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
27535 | } | |
27536 | if (!argp2) { | |
27537 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
27538 | } | |
27539 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
72ef6efb | 27540 | { |
70d7cb34 | 27541 | result = (arg1)->CreateBrush((wxBrush const &)*arg2); |
72ef6efb RD |
27542 | if (PyErr_Occurred()) SWIG_fail; |
27543 | } | |
70d7cb34 | 27544 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27545 | return resultobj; |
27546 | fail: | |
27547 | return NULL; | |
27548 | } | |
27549 | ||
27550 | ||
70d7cb34 | 27551 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 27552 | PyObject *resultobj = 0; |
70d7cb34 | 27553 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
72ef6efb RD |
27554 | wxDouble arg2 ; |
27555 | wxDouble arg3 ; | |
27556 | wxDouble arg4 ; | |
27557 | wxDouble arg5 ; | |
70d7cb34 RD |
27558 | wxColour *arg6 = 0 ; |
27559 | wxColour *arg7 = 0 ; | |
27560 | wxGraphicsBrush result; | |
72ef6efb RD |
27561 | void *argp1 = 0 ; |
27562 | int res1 = 0 ; | |
27563 | double val2 ; | |
27564 | int ecode2 = 0 ; | |
27565 | double val3 ; | |
27566 | int ecode3 = 0 ; | |
27567 | double val4 ; | |
27568 | int ecode4 = 0 ; | |
27569 | double val5 ; | |
27570 | int ecode5 = 0 ; | |
70d7cb34 RD |
27571 | wxColour temp6 ; |
27572 | wxColour temp7 ; | |
72ef6efb RD |
27573 | PyObject * obj0 = 0 ; |
27574 | PyObject * obj1 = 0 ; | |
27575 | PyObject * obj2 = 0 ; | |
27576 | PyObject * obj3 = 0 ; | |
27577 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
27578 | PyObject * obj5 = 0 ; |
27579 | PyObject * obj6 = 0 ; | |
72ef6efb | 27580 | char * kwnames[] = { |
70d7cb34 | 27581 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL |
72ef6efb RD |
27582 | }; |
27583 | ||
70d7cb34 RD |
27584 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
27585 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 27586 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27587 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 27588 | } |
70d7cb34 | 27589 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
72ef6efb RD |
27590 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
27591 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 27592 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
27593 | } |
27594 | arg2 = static_cast< wxDouble >(val2); | |
27595 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27596 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 27597 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
27598 | } |
27599 | arg3 = static_cast< wxDouble >(val3); | |
27600 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27601 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 27602 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
27603 | } |
27604 | arg4 = static_cast< wxDouble >(val4); | |
27605 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27606 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 27607 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
27608 | } |
27609 | arg5 = static_cast< wxDouble >(val5); | |
27610 | { | |
70d7cb34 RD |
27611 | arg6 = &temp6; |
27612 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
72ef6efb | 27613 | } |
70d7cb34 RD |
27614 | { |
27615 | arg7 = &temp7; | |
27616 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
72ef6efb | 27617 | } |
72ef6efb | 27618 | { |
70d7cb34 | 27619 | result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7); |
72ef6efb RD |
27620 | if (PyErr_Occurred()) SWIG_fail; |
27621 | } | |
70d7cb34 | 27622 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27623 | return resultobj; |
27624 | fail: | |
27625 | return NULL; | |
27626 | } | |
27627 | ||
27628 | ||
70d7cb34 | 27629 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 27630 | PyObject *resultobj = 0; |
70d7cb34 | 27631 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
72ef6efb RD |
27632 | wxDouble arg2 ; |
27633 | wxDouble arg3 ; | |
27634 | wxDouble arg4 ; | |
27635 | wxDouble arg5 ; | |
27636 | wxDouble arg6 ; | |
70d7cb34 RD |
27637 | wxColour *arg7 = 0 ; |
27638 | wxColour *arg8 = 0 ; | |
27639 | wxGraphicsBrush result; | |
72ef6efb RD |
27640 | void *argp1 = 0 ; |
27641 | int res1 = 0 ; | |
27642 | double val2 ; | |
27643 | int ecode2 = 0 ; | |
27644 | double val3 ; | |
27645 | int ecode3 = 0 ; | |
27646 | double val4 ; | |
27647 | int ecode4 = 0 ; | |
27648 | double val5 ; | |
27649 | int ecode5 = 0 ; | |
27650 | double val6 ; | |
27651 | int ecode6 = 0 ; | |
70d7cb34 RD |
27652 | wxColour temp7 ; |
27653 | wxColour temp8 ; | |
72ef6efb RD |
27654 | PyObject * obj0 = 0 ; |
27655 | PyObject * obj1 = 0 ; | |
27656 | PyObject * obj2 = 0 ; | |
27657 | PyObject * obj3 = 0 ; | |
27658 | PyObject * obj4 = 0 ; | |
27659 | PyObject * obj5 = 0 ; | |
70d7cb34 RD |
27660 | PyObject * obj6 = 0 ; |
27661 | PyObject * obj7 = 0 ; | |
72ef6efb | 27662 | char * kwnames[] = { |
70d7cb34 | 27663 | (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL |
72ef6efb RD |
27664 | }; |
27665 | ||
70d7cb34 RD |
27666 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
27667 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 27668 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27669 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 27670 | } |
70d7cb34 | 27671 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
72ef6efb RD |
27672 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
27673 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 27674 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
27675 | } |
27676 | arg2 = static_cast< wxDouble >(val2); | |
27677 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27678 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 27679 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
27680 | } |
27681 | arg3 = static_cast< wxDouble >(val3); | |
27682 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27683 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 27684 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
27685 | } |
27686 | arg4 = static_cast< wxDouble >(val4); | |
27687 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27688 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 27689 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
27690 | } |
27691 | arg5 = static_cast< wxDouble >(val5); | |
27692 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
27693 | if (!SWIG_IsOK(ecode6)) { | |
70d7cb34 | 27694 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'"); |
72ef6efb RD |
27695 | } |
27696 | arg6 = static_cast< wxDouble >(val6); | |
27697 | { | |
70d7cb34 RD |
27698 | arg7 = &temp7; |
27699 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
27700 | } | |
27701 | { | |
27702 | arg8 = &temp8; | |
27703 | if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail; | |
27704 | } | |
27705 | { | |
27706 | result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8); | |
72ef6efb RD |
27707 | if (PyErr_Occurred()) SWIG_fail; |
27708 | } | |
70d7cb34 | 27709 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27710 | return resultobj; |
27711 | fail: | |
27712 | return NULL; | |
27713 | } | |
27714 | ||
27715 | ||
70d7cb34 | 27716 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
27717 | PyObject *resultobj = 0; |
27718 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 RD |
27719 | wxFont *arg2 = 0 ; |
27720 | wxColour const &arg3_defvalue = *wxBLACK ; | |
27721 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
27722 | wxGraphicsFont result; | |
72ef6efb RD |
27723 | void *argp1 = 0 ; |
27724 | int res1 = 0 ; | |
70d7cb34 RD |
27725 | void *argp2 = 0 ; |
27726 | int res2 = 0 ; | |
27727 | wxColour temp3 ; | |
27728 | PyObject * obj0 = 0 ; | |
27729 | PyObject * obj1 = 0 ; | |
27730 | PyObject * obj2 = 0 ; | |
27731 | char * kwnames[] = { | |
27732 | (char *) "self",(char *) "font",(char *) "col", NULL | |
27733 | }; | |
72ef6efb | 27734 | |
70d7cb34 RD |
27735 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
27736 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 27737 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
27739 | } |
27740 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
27741 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); |
27742 | if (!SWIG_IsOK(res2)) { | |
27743 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
72ef6efb | 27744 | } |
70d7cb34 RD |
27745 | if (!argp2) { |
27746 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
72ef6efb | 27747 | } |
70d7cb34 RD |
27748 | arg2 = reinterpret_cast< wxFont * >(argp2); |
27749 | if (obj2) { | |
27750 | { | |
27751 | arg3 = &temp3; | |
27752 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
27753 | } | |
72ef6efb | 27754 | } |
72ef6efb | 27755 | { |
70d7cb34 | 27756 | result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3); |
72ef6efb RD |
27757 | if (PyErr_Occurred()) SWIG_fail; |
27758 | } | |
70d7cb34 | 27759 | resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27760 | return resultobj; |
27761 | fail: | |
27762 | return NULL; | |
27763 | } | |
27764 | ||
27765 | ||
70d7cb34 | 27766 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0a27f394 | 27767 | PyObject *resultobj = 0; |
70d7cb34 RD |
27768 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
27769 | wxDouble arg2 = (wxDouble) 1.0 ; | |
27770 | wxDouble arg3 = (wxDouble) 0.0 ; | |
27771 | wxDouble arg4 = (wxDouble) 0.0 ; | |
27772 | wxDouble arg5 = (wxDouble) 1.0 ; | |
27773 | wxDouble arg6 = (wxDouble) 0.0 ; | |
27774 | wxDouble arg7 = (wxDouble) 0.0 ; | |
5c8c7dd3 | 27775 | wxGraphicsMatrix result; |
0a27f394 RD |
27776 | void *argp1 = 0 ; |
27777 | int res1 = 0 ; | |
70d7cb34 RD |
27778 | double val2 ; |
27779 | int ecode2 = 0 ; | |
27780 | double val3 ; | |
27781 | int ecode3 = 0 ; | |
27782 | double val4 ; | |
27783 | int ecode4 = 0 ; | |
27784 | double val5 ; | |
27785 | int ecode5 = 0 ; | |
27786 | double val6 ; | |
27787 | int ecode6 = 0 ; | |
27788 | double val7 ; | |
27789 | int ecode7 = 0 ; | |
27790 | PyObject * obj0 = 0 ; | |
27791 | PyObject * obj1 = 0 ; | |
27792 | PyObject * obj2 = 0 ; | |
27793 | PyObject * obj3 = 0 ; | |
27794 | PyObject * obj4 = 0 ; | |
27795 | PyObject * obj5 = 0 ; | |
27796 | PyObject * obj6 = 0 ; | |
27797 | char * kwnames[] = { | |
27798 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL | |
27799 | }; | |
0a27f394 | 27800 | |
70d7cb34 RD |
27801 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
27802 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
0a27f394 | 27803 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27804 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
0a27f394 | 27805 | } |
70d7cb34 RD |
27806 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
27807 | if (obj1) { | |
27808 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27809 | if (!SWIG_IsOK(ecode2)) { | |
27810 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27811 | } | |
27812 | arg2 = static_cast< wxDouble >(val2); | |
0a27f394 | 27813 | } |
70d7cb34 RD |
27814 | if (obj2) { |
27815 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27816 | if (!SWIG_IsOK(ecode3)) { | |
27817 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27818 | } | |
27819 | arg3 = static_cast< wxDouble >(val3); | |
0a27f394 | 27820 | } |
70d7cb34 RD |
27821 | if (obj3) { |
27822 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27823 | if (!SWIG_IsOK(ecode4)) { | |
27824 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27825 | } | |
27826 | arg4 = static_cast< wxDouble >(val4); | |
0a27f394 | 27827 | } |
70d7cb34 RD |
27828 | if (obj4) { |
27829 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27830 | if (!SWIG_IsOK(ecode5)) { | |
27831 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27832 | } | |
27833 | arg5 = static_cast< wxDouble >(val5); | |
0a27f394 | 27834 | } |
70d7cb34 RD |
27835 | if (obj5) { |
27836 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
27837 | if (!SWIG_IsOK(ecode6)) { | |
27838 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'"); | |
27839 | } | |
27840 | arg6 = static_cast< wxDouble >(val6); | |
0a27f394 | 27841 | } |
70d7cb34 RD |
27842 | if (obj6) { |
27843 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
27844 | if (!SWIG_IsOK(ecode7)) { | |
27845 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'"); | |
27846 | } | |
27847 | arg7 = static_cast< wxDouble >(val7); | |
72ef6efb | 27848 | } |
72ef6efb | 27849 | { |
5c8c7dd3 | 27850 | result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7); |
72ef6efb RD |
27851 | if (PyErr_Occurred()) SWIG_fail; |
27852 | } | |
5c8c7dd3 | 27853 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27854 | return resultobj; |
27855 | fail: | |
27856 | return NULL; | |
27857 | } | |
27858 | ||
27859 | ||
27860 | SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27861 | PyObject *resultobj = 0; | |
27862 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27863 | void *argp1 = 0 ; | |
27864 | int res1 = 0 ; | |
27865 | PyObject *swig_obj[1] ; | |
27866 | ||
27867 | if (!args) SWIG_fail; | |
27868 | swig_obj[0] = args; | |
27869 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27870 | if (!SWIG_IsOK(res1)) { | |
27871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27872 | } | |
27873 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27874 | { | |
72ef6efb | 27875 | (arg1)->PushState(); |
72ef6efb RD |
27876 | if (PyErr_Occurred()) SWIG_fail; |
27877 | } | |
27878 | resultobj = SWIG_Py_Void(); | |
27879 | return resultobj; | |
27880 | fail: | |
27881 | return NULL; | |
27882 | } | |
27883 | ||
27884 | ||
27885 | SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27886 | PyObject *resultobj = 0; | |
27887 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27888 | void *argp1 = 0 ; | |
27889 | int res1 = 0 ; | |
27890 | PyObject *swig_obj[1] ; | |
27891 | ||
27892 | if (!args) SWIG_fail; | |
27893 | swig_obj[0] = args; | |
27894 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27895 | if (!SWIG_IsOK(res1)) { | |
27896 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27897 | } | |
27898 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27899 | { | |
72ef6efb | 27900 | (arg1)->PopState(); |
72ef6efb RD |
27901 | if (PyErr_Occurred()) SWIG_fail; |
27902 | } | |
27903 | resultobj = SWIG_Py_Void(); | |
27904 | return resultobj; | |
27905 | fail: | |
27906 | return NULL; | |
27907 | } | |
27908 | ||
27909 | ||
0a27f394 | 27910 | SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
27911 | PyObject *resultobj = 0; |
27912 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27913 | wxRegion *arg2 = 0 ; | |
27914 | void *argp1 = 0 ; | |
27915 | int res1 = 0 ; | |
27916 | void *argp2 = 0 ; | |
27917 | int res2 = 0 ; | |
27918 | PyObject * obj0 = 0 ; | |
27919 | PyObject * obj1 = 0 ; | |
27920 | char * kwnames[] = { | |
27921 | (char *) "self",(char *) "region", NULL | |
27922 | }; | |
27923 | ||
0a27f394 | 27924 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
27925 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
27926 | if (!SWIG_IsOK(res1)) { | |
0a27f394 | 27927 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
27928 | } |
27929 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27930 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
27931 | if (!SWIG_IsOK(res2)) { | |
0a27f394 | 27932 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); |
72ef6efb RD |
27933 | } |
27934 | if (!argp2) { | |
0a27f394 | 27935 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); |
72ef6efb RD |
27936 | } |
27937 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
27938 | { | |
72ef6efb | 27939 | (arg1)->Clip((wxRegion const &)*arg2); |
72ef6efb RD |
27940 | if (PyErr_Occurred()) SWIG_fail; |
27941 | } | |
27942 | resultobj = SWIG_Py_Void(); | |
27943 | return resultobj; | |
27944 | fail: | |
27945 | return NULL; | |
27946 | } | |
27947 | ||
27948 | ||
0a27f394 RD |
27949 | SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27950 | PyObject *resultobj = 0; | |
27951 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27952 | wxDouble arg2 ; | |
27953 | wxDouble arg3 ; | |
27954 | wxDouble arg4 ; | |
27955 | wxDouble arg5 ; | |
27956 | void *argp1 = 0 ; | |
27957 | int res1 = 0 ; | |
27958 | double val2 ; | |
27959 | int ecode2 = 0 ; | |
27960 | double val3 ; | |
27961 | int ecode3 = 0 ; | |
27962 | double val4 ; | |
27963 | int ecode4 = 0 ; | |
27964 | double val5 ; | |
27965 | int ecode5 = 0 ; | |
27966 | PyObject * obj0 = 0 ; | |
27967 | PyObject * obj1 = 0 ; | |
27968 | PyObject * obj2 = 0 ; | |
27969 | PyObject * obj3 = 0 ; | |
27970 | PyObject * obj4 = 0 ; | |
27971 | char * kwnames[] = { | |
27972 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
27973 | }; | |
27974 | ||
27975 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
27976 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27977 | if (!SWIG_IsOK(res1)) { | |
27978 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27979 | } | |
27980 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27981 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27982 | if (!SWIG_IsOK(ecode2)) { | |
27983 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27984 | } | |
27985 | arg2 = static_cast< wxDouble >(val2); | |
27986 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27987 | if (!SWIG_IsOK(ecode3)) { | |
27988 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27989 | } | |
27990 | arg3 = static_cast< wxDouble >(val3); | |
27991 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27992 | if (!SWIG_IsOK(ecode4)) { | |
27993 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27994 | } | |
27995 | arg4 = static_cast< wxDouble >(val4); | |
27996 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27997 | if (!SWIG_IsOK(ecode5)) { | |
27998 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27999 | } | |
28000 | arg5 = static_cast< wxDouble >(val5); | |
28001 | { | |
28002 | (arg1)->Clip(arg2,arg3,arg4,arg5); | |
28003 | if (PyErr_Occurred()) SWIG_fail; | |
28004 | } | |
28005 | resultobj = SWIG_Py_Void(); | |
28006 | return resultobj; | |
28007 | fail: | |
28008 | return NULL; | |
28009 | } | |
28010 | ||
28011 | ||
28012 | SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28013 | PyObject *resultobj = 0; | |
28014 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28015 | void *argp1 = 0 ; | |
28016 | int res1 = 0 ; | |
28017 | PyObject *swig_obj[1] ; | |
28018 | ||
28019 | if (!args) SWIG_fail; | |
28020 | swig_obj[0] = args; | |
28021 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28022 | if (!SWIG_IsOK(res1)) { | |
28023 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28024 | } | |
28025 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28026 | { | |
28027 | (arg1)->ResetClip(); | |
28028 | if (PyErr_Occurred()) SWIG_fail; | |
28029 | } | |
28030 | resultobj = SWIG_Py_Void(); | |
28031 | return resultobj; | |
28032 | fail: | |
28033 | return NULL; | |
28034 | } | |
28035 | ||
28036 | ||
28037 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28038 | PyObject *resultobj = 0; | |
28039 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28040 | void *result = 0 ; | |
28041 | void *argp1 = 0 ; | |
28042 | int res1 = 0 ; | |
28043 | PyObject *swig_obj[1] ; | |
28044 | ||
28045 | if (!args) SWIG_fail; | |
28046 | swig_obj[0] = args; | |
28047 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28048 | if (!SWIG_IsOK(res1)) { | |
28049 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28050 | } | |
28051 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28052 | { | |
28053 | result = (void *)(arg1)->GetNativeContext(); | |
28054 | if (PyErr_Occurred()) SWIG_fail; | |
28055 | } | |
28056 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
28057 | return resultobj; | |
28058 | fail: | |
28059 | return NULL; | |
28060 | } | |
28061 | ||
28062 | ||
72ef6efb RD |
28063 | SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28064 | PyObject *resultobj = 0; | |
28065 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28066 | wxDouble arg2 ; | |
28067 | wxDouble arg3 ; | |
28068 | void *argp1 = 0 ; | |
28069 | int res1 = 0 ; | |
28070 | double val2 ; | |
28071 | int ecode2 = 0 ; | |
28072 | double val3 ; | |
28073 | int ecode3 = 0 ; | |
28074 | PyObject * obj0 = 0 ; | |
28075 | PyObject * obj1 = 0 ; | |
28076 | PyObject * obj2 = 0 ; | |
28077 | char * kwnames[] = { | |
28078 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
28079 | }; | |
28080 | ||
28081 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28082 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28083 | if (!SWIG_IsOK(res1)) { | |
28084 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28085 | } | |
28086 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28087 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28088 | if (!SWIG_IsOK(ecode2)) { | |
28089 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28090 | } | |
28091 | arg2 = static_cast< wxDouble >(val2); | |
28092 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28093 | if (!SWIG_IsOK(ecode3)) { | |
28094 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28095 | } | |
28096 | arg3 = static_cast< wxDouble >(val3); | |
28097 | { | |
72ef6efb | 28098 | (arg1)->Translate(arg2,arg3); |
72ef6efb RD |
28099 | if (PyErr_Occurred()) SWIG_fail; |
28100 | } | |
28101 | resultobj = SWIG_Py_Void(); | |
28102 | return resultobj; | |
28103 | fail: | |
28104 | return NULL; | |
28105 | } | |
28106 | ||
28107 | ||
28108 | SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28109 | PyObject *resultobj = 0; | |
28110 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28111 | wxDouble arg2 ; | |
28112 | wxDouble arg3 ; | |
28113 | void *argp1 = 0 ; | |
28114 | int res1 = 0 ; | |
28115 | double val2 ; | |
28116 | int ecode2 = 0 ; | |
28117 | double val3 ; | |
28118 | int ecode3 = 0 ; | |
28119 | PyObject * obj0 = 0 ; | |
28120 | PyObject * obj1 = 0 ; | |
28121 | PyObject * obj2 = 0 ; | |
28122 | char * kwnames[] = { | |
28123 | (char *) "self",(char *) "xScale",(char *) "yScale", NULL | |
28124 | }; | |
28125 | ||
28126 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28127 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28128 | if (!SWIG_IsOK(res1)) { | |
28129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28130 | } | |
28131 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28132 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28133 | if (!SWIG_IsOK(ecode2)) { | |
28134 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28135 | } | |
28136 | arg2 = static_cast< wxDouble >(val2); | |
28137 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28138 | if (!SWIG_IsOK(ecode3)) { | |
28139 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28140 | } | |
28141 | arg3 = static_cast< wxDouble >(val3); | |
28142 | { | |
72ef6efb | 28143 | (arg1)->Scale(arg2,arg3); |
72ef6efb RD |
28144 | if (PyErr_Occurred()) SWIG_fail; |
28145 | } | |
28146 | resultobj = SWIG_Py_Void(); | |
28147 | return resultobj; | |
28148 | fail: | |
28149 | return NULL; | |
28150 | } | |
28151 | ||
28152 | ||
28153 | SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28154 | PyObject *resultobj = 0; | |
28155 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28156 | wxDouble arg2 ; | |
28157 | void *argp1 = 0 ; | |
28158 | int res1 = 0 ; | |
28159 | double val2 ; | |
28160 | int ecode2 = 0 ; | |
28161 | PyObject * obj0 = 0 ; | |
28162 | PyObject * obj1 = 0 ; | |
28163 | char * kwnames[] = { | |
28164 | (char *) "self",(char *) "angle", NULL | |
28165 | }; | |
28166 | ||
28167 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail; | |
28168 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28169 | if (!SWIG_IsOK(res1)) { | |
28170 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28171 | } | |
28172 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28173 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28174 | if (!SWIG_IsOK(ecode2)) { | |
28175 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28176 | } | |
28177 | arg2 = static_cast< wxDouble >(val2); | |
28178 | { | |
72ef6efb | 28179 | (arg1)->Rotate(arg2); |
72ef6efb RD |
28180 | if (PyErr_Occurred()) SWIG_fail; |
28181 | } | |
28182 | resultobj = SWIG_Py_Void(); | |
28183 | return resultobj; | |
28184 | fail: | |
28185 | return NULL; | |
28186 | } | |
28187 | ||
28188 | ||
5c8c7dd3 RD |
28189 | SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28190 | PyObject *resultobj = 0; | |
28191 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28192 | wxGraphicsMatrix *arg2 = 0 ; | |
28193 | void *argp1 = 0 ; | |
28194 | int res1 = 0 ; | |
28195 | void *argp2 = 0 ; | |
28196 | int res2 = 0 ; | |
28197 | PyObject * obj0 = 0 ; | |
28198 | PyObject * obj1 = 0 ; | |
28199 | char * kwnames[] = { | |
28200 | (char *) "self",(char *) "matrix", NULL | |
28201 | }; | |
28202 | ||
28203 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail; | |
28204 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28205 | if (!SWIG_IsOK(res1)) { | |
28206 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28207 | } | |
28208 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28209 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
28210 | if (!SWIG_IsOK(res2)) { | |
28211 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28212 | } | |
28213 | if (!argp2) { | |
28214 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28215 | } | |
28216 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
28217 | { | |
28218 | (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2); | |
28219 | if (PyErr_Occurred()) SWIG_fail; | |
28220 | } | |
28221 | resultobj = SWIG_Py_Void(); | |
28222 | return resultobj; | |
28223 | fail: | |
28224 | return NULL; | |
28225 | } | |
28226 | ||
28227 | ||
28228 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28229 | PyObject *resultobj = 0; | |
28230 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28231 | wxGraphicsMatrix *arg2 = 0 ; | |
28232 | void *argp1 = 0 ; | |
28233 | int res1 = 0 ; | |
28234 | void *argp2 = 0 ; | |
28235 | int res2 = 0 ; | |
28236 | PyObject * obj0 = 0 ; | |
28237 | PyObject * obj1 = 0 ; | |
28238 | char * kwnames[] = { | |
28239 | (char *) "self",(char *) "matrix", NULL | |
28240 | }; | |
28241 | ||
28242 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail; | |
28243 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28244 | if (!SWIG_IsOK(res1)) { | |
28245 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28246 | } | |
28247 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28248 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
28249 | if (!SWIG_IsOK(res2)) { | |
28250 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28251 | } | |
28252 | if (!argp2) { | |
28253 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28254 | } | |
28255 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
28256 | { | |
28257 | (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2); | |
28258 | if (PyErr_Occurred()) SWIG_fail; | |
28259 | } | |
28260 | resultobj = SWIG_Py_Void(); | |
28261 | return resultobj; | |
28262 | fail: | |
28263 | return NULL; | |
28264 | } | |
28265 | ||
28266 | ||
28267 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28268 | PyObject *resultobj = 0; | |
28269 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28270 | wxGraphicsMatrix result; | |
28271 | void *argp1 = 0 ; | |
28272 | int res1 = 0 ; | |
28273 | PyObject *swig_obj[1] ; | |
28274 | ||
28275 | if (!args) SWIG_fail; | |
28276 | swig_obj[0] = args; | |
28277 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28278 | if (!SWIG_IsOK(res1)) { | |
28279 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); | |
28280 | } | |
28281 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28282 | { | |
28283 | result = ((wxGraphicsContext const *)arg1)->GetTransform(); | |
28284 | if (PyErr_Occurred()) SWIG_fail; | |
28285 | } | |
28286 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); | |
28287 | return resultobj; | |
28288 | fail: | |
28289 | return NULL; | |
28290 | } | |
28291 | ||
28292 | ||
70d7cb34 RD |
28293 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
28294 | PyObject *resultobj = 0; | |
28295 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28296 | wxGraphicsPen *arg2 = 0 ; | |
28297 | void *argp1 = 0 ; | |
28298 | int res1 = 0 ; | |
28299 | void *argp2 = 0 ; | |
28300 | int res2 = 0 ; | |
28301 | ||
28302 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
28303 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28304 | if (!SWIG_IsOK(res1)) { | |
28305 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28306 | } | |
28307 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28308 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0); | |
28309 | if (!SWIG_IsOK(res2)) { | |
28310 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'"); | |
28311 | } | |
28312 | if (!argp2) { | |
28313 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'"); | |
28314 | } | |
28315 | arg2 = reinterpret_cast< wxGraphicsPen * >(argp2); | |
28316 | { | |
28317 | (arg1)->SetPen((wxGraphicsPen const &)*arg2); | |
28318 | if (PyErr_Occurred()) SWIG_fail; | |
28319 | } | |
28320 | resultobj = SWIG_Py_Void(); | |
28321 | return resultobj; | |
28322 | fail: | |
28323 | return NULL; | |
28324 | } | |
28325 | ||
28326 | ||
28327 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
72ef6efb RD |
28328 | PyObject *resultobj = 0; |
28329 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28330 | wxPen *arg2 = 0 ; | |
28331 | void *argp1 = 0 ; | |
28332 | int res1 = 0 ; | |
28333 | void *argp2 = 0 ; | |
28334 | int res2 = 0 ; | |
72ef6efb | 28335 | |
70d7cb34 RD |
28336 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
28337 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
28338 | if (!SWIG_IsOK(res1)) { |
28339 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28340 | } | |
28341 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 28342 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0); |
72ef6efb RD |
28343 | if (!SWIG_IsOK(res2)) { |
28344 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
28345 | } | |
28346 | if (!argp2) { | |
28347 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
28348 | } | |
28349 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
28350 | { | |
72ef6efb | 28351 | (arg1)->SetPen((wxPen const &)*arg2); |
72ef6efb RD |
28352 | if (PyErr_Occurred()) SWIG_fail; |
28353 | } | |
28354 | resultobj = SWIG_Py_Void(); | |
28355 | return resultobj; | |
28356 | fail: | |
28357 | return NULL; | |
28358 | } | |
28359 | ||
28360 | ||
70d7cb34 RD |
28361 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) { |
28362 | int argc; | |
28363 | PyObject *argv[3]; | |
28364 | ||
28365 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail; | |
28366 | --argc; | |
28367 | if (argc == 2) { | |
28368 | int _v = 0; | |
28369 | { | |
28370 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0); | |
28371 | _v = SWIG_CheckState(res); | |
28372 | } | |
28373 | if (!_v) goto check_1; | |
28374 | return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv); | |
28375 | } | |
28376 | check_1: | |
28377 | ||
28378 | if (argc == 2) { | |
28379 | return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv); | |
28380 | } | |
28381 | ||
28382 | fail: | |
28383 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'"); | |
28384 | return NULL; | |
28385 | } | |
28386 | ||
28387 | ||
28388 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
28389 | PyObject *resultobj = 0; | |
28390 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28391 | wxGraphicsBrush *arg2 = 0 ; | |
28392 | void *argp1 = 0 ; | |
28393 | int res1 = 0 ; | |
28394 | void *argp2 = 0 ; | |
28395 | int res2 = 0 ; | |
28396 | ||
28397 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
28398 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28399 | if (!SWIG_IsOK(res1)) { | |
28400 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28401 | } | |
28402 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28403 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
28404 | if (!SWIG_IsOK(res2)) { | |
28405 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'"); | |
28406 | } | |
28407 | if (!argp2) { | |
28408 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'"); | |
28409 | } | |
28410 | arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2); | |
28411 | { | |
28412 | (arg1)->SetBrush((wxGraphicsBrush const &)*arg2); | |
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_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
72ef6efb RD |
28423 | PyObject *resultobj = 0; |
28424 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28425 | wxBrush *arg2 = 0 ; | |
28426 | void *argp1 = 0 ; | |
28427 | int res1 = 0 ; | |
28428 | void *argp2 = 0 ; | |
28429 | int res2 = 0 ; | |
72ef6efb | 28430 | |
70d7cb34 RD |
28431 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
28432 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
28433 | if (!SWIG_IsOK(res1)) { |
28434 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28435 | } | |
28436 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 28437 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0); |
72ef6efb RD |
28438 | if (!SWIG_IsOK(res2)) { |
28439 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
28440 | } | |
28441 | if (!argp2) { | |
28442 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
28443 | } | |
28444 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
28445 | { | |
72ef6efb | 28446 | (arg1)->SetBrush((wxBrush const &)*arg2); |
72ef6efb RD |
28447 | if (PyErr_Occurred()) SWIG_fail; |
28448 | } | |
28449 | resultobj = SWIG_Py_Void(); | |
28450 | return resultobj; | |
28451 | fail: | |
28452 | return NULL; | |
28453 | } | |
28454 | ||
28455 | ||
70d7cb34 RD |
28456 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) { |
28457 | int argc; | |
28458 | PyObject *argv[3]; | |
72ef6efb | 28459 | |
70d7cb34 RD |
28460 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail; |
28461 | --argc; | |
28462 | if (argc == 2) { | |
28463 | int _v = 0; | |
28464 | { | |
28465 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0); | |
28466 | _v = SWIG_CheckState(res); | |
28467 | } | |
28468 | if (!_v) goto check_1; | |
28469 | return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv); | |
72ef6efb | 28470 | } |
70d7cb34 RD |
28471 | check_1: |
28472 | ||
28473 | if (argc == 2) { | |
28474 | return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv); | |
72ef6efb | 28475 | } |
70d7cb34 | 28476 | |
72ef6efb | 28477 | fail: |
70d7cb34 | 28478 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'"); |
72ef6efb RD |
28479 | return NULL; |
28480 | } | |
28481 | ||
28482 | ||
70d7cb34 | 28483 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
28484 | PyObject *resultobj = 0; |
28485 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 | 28486 | wxGraphicsFont *arg2 = 0 ; |
72ef6efb RD |
28487 | void *argp1 = 0 ; |
28488 | int res1 = 0 ; | |
70d7cb34 RD |
28489 | void *argp2 = 0 ; |
28490 | int res2 = 0 ; | |
72ef6efb | 28491 | |
70d7cb34 RD |
28492 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
28493 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28494 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28495 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
28496 | } |
28497 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
28498 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0); |
28499 | if (!SWIG_IsOK(res2)) { | |
28500 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'"); | |
72ef6efb | 28501 | } |
70d7cb34 RD |
28502 | if (!argp2) { |
28503 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'"); | |
72ef6efb | 28504 | } |
70d7cb34 | 28505 | arg2 = reinterpret_cast< wxGraphicsFont * >(argp2); |
72ef6efb | 28506 | { |
70d7cb34 | 28507 | (arg1)->SetFont((wxGraphicsFont const &)*arg2); |
72ef6efb RD |
28508 | if (PyErr_Occurred()) SWIG_fail; |
28509 | } | |
28510 | resultobj = SWIG_Py_Void(); | |
28511 | return resultobj; | |
28512 | fail: | |
28513 | return NULL; | |
28514 | } | |
28515 | ||
28516 | ||
70d7cb34 | 28517 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
28518 | PyObject *resultobj = 0; |
28519 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28520 | wxFont *arg2 = 0 ; | |
70d7cb34 RD |
28521 | wxColour const &arg3_defvalue = *wxBLACK ; |
28522 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
72ef6efb RD |
28523 | void *argp1 = 0 ; |
28524 | int res1 = 0 ; | |
28525 | void *argp2 = 0 ; | |
28526 | int res2 = 0 ; | |
70d7cb34 | 28527 | wxColour temp3 ; |
72ef6efb | 28528 | |
70d7cb34 RD |
28529 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; |
28530 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
28531 | if (!SWIG_IsOK(res1)) { |
28532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28533 | } | |
28534 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 28535 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0); |
72ef6efb RD |
28536 | if (!SWIG_IsOK(res2)) { |
28537 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
28538 | } | |
28539 | if (!argp2) { | |
28540 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
28541 | } | |
28542 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
70d7cb34 RD |
28543 | if (swig_obj[2]) { |
28544 | { | |
28545 | arg3 = &temp3; | |
28546 | if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail; | |
28547 | } | |
28548 | } | |
72ef6efb | 28549 | { |
70d7cb34 | 28550 | (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3); |
72ef6efb RD |
28551 | if (PyErr_Occurred()) SWIG_fail; |
28552 | } | |
28553 | resultobj = SWIG_Py_Void(); | |
28554 | return resultobj; | |
28555 | fail: | |
28556 | return NULL; | |
28557 | } | |
28558 | ||
28559 | ||
70d7cb34 RD |
28560 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) { |
28561 | int argc; | |
28562 | PyObject *argv[4]; | |
72ef6efb | 28563 | |
70d7cb34 RD |
28564 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail; |
28565 | --argc; | |
28566 | if (argc == 2) { | |
28567 | int _v = 0; | |
28568 | { | |
28569 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0); | |
28570 | _v = SWIG_CheckState(res); | |
28571 | } | |
28572 | if (!_v) goto check_1; | |
28573 | return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv); | |
72ef6efb | 28574 | } |
70d7cb34 RD |
28575 | check_1: |
28576 | ||
28577 | if ((argc >= 2) && (argc <= 3)) { | |
28578 | return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv); | |
72ef6efb | 28579 | } |
70d7cb34 | 28580 | |
72ef6efb | 28581 | fail: |
70d7cb34 | 28582 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'"); |
72ef6efb RD |
28583 | return NULL; |
28584 | } | |
28585 | ||
28586 | ||
28587 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28588 | PyObject *resultobj = 0; | |
28589 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 28590 | wxGraphicsPath *arg2 = 0 ; |
72ef6efb RD |
28591 | void *argp1 = 0 ; |
28592 | int res1 = 0 ; | |
28593 | void *argp2 = 0 ; | |
28594 | int res2 = 0 ; | |
28595 | PyObject * obj0 = 0 ; | |
28596 | PyObject * obj1 = 0 ; | |
28597 | char * kwnames[] = { | |
28598 | (char *) "self",(char *) "path", NULL | |
28599 | }; | |
28600 | ||
28601 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail; | |
28602 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28603 | if (!SWIG_IsOK(res1)) { | |
28604 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28605 | } | |
28606 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 28607 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 28608 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
28609 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
28610 | } | |
28611 | if (!argp2) { | |
28612 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
28613 | } |
28614 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
28615 | { | |
5c8c7dd3 | 28616 | (arg1)->StrokePath((wxGraphicsPath const &)*arg2); |
72ef6efb RD |
28617 | if (PyErr_Occurred()) SWIG_fail; |
28618 | } | |
28619 | resultobj = SWIG_Py_Void(); | |
28620 | return resultobj; | |
28621 | fail: | |
28622 | return NULL; | |
28623 | } | |
28624 | ||
28625 | ||
28626 | SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28627 | PyObject *resultobj = 0; | |
28628 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 RD |
28629 | wxGraphicsPath *arg2 = 0 ; |
28630 | int arg3 = (int) wxODDEVEN_RULE ; | |
72ef6efb RD |
28631 | void *argp1 = 0 ; |
28632 | int res1 = 0 ; | |
28633 | void *argp2 = 0 ; | |
28634 | int res2 = 0 ; | |
28635 | int val3 ; | |
28636 | int ecode3 = 0 ; | |
28637 | PyObject * obj0 = 0 ; | |
28638 | PyObject * obj1 = 0 ; | |
28639 | PyObject * obj2 = 0 ; | |
28640 | char * kwnames[] = { | |
28641 | (char *) "self",(char *) "path",(char *) "fillStyle", NULL | |
28642 | }; | |
28643 | ||
28644 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28645 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28646 | if (!SWIG_IsOK(res1)) { | |
28647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28648 | } | |
28649 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 28650 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 28651 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
28652 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
28653 | } | |
28654 | if (!argp2) { | |
28655 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
28656 | } |
28657 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
28658 | if (obj2) { | |
28659 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28660 | if (!SWIG_IsOK(ecode3)) { | |
28661 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'"); | |
28662 | } | |
28663 | arg3 = static_cast< int >(val3); | |
28664 | } | |
28665 | { | |
5c8c7dd3 | 28666 | (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3); |
72ef6efb RD |
28667 | if (PyErr_Occurred()) SWIG_fail; |
28668 | } | |
28669 | resultobj = SWIG_Py_Void(); | |
28670 | return resultobj; | |
28671 | fail: | |
28672 | return NULL; | |
28673 | } | |
28674 | ||
28675 | ||
28676 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28677 | PyObject *resultobj = 0; | |
28678 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 RD |
28679 | wxGraphicsPath *arg2 = 0 ; |
28680 | int arg3 = (int) wxODDEVEN_RULE ; | |
72ef6efb RD |
28681 | void *argp1 = 0 ; |
28682 | int res1 = 0 ; | |
28683 | void *argp2 = 0 ; | |
28684 | int res2 = 0 ; | |
28685 | int val3 ; | |
28686 | int ecode3 = 0 ; | |
28687 | PyObject * obj0 = 0 ; | |
28688 | PyObject * obj1 = 0 ; | |
28689 | PyObject * obj2 = 0 ; | |
28690 | char * kwnames[] = { | |
28691 | (char *) "self",(char *) "path",(char *) "fillStyle", NULL | |
28692 | }; | |
28693 | ||
28694 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28695 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28696 | if (!SWIG_IsOK(res1)) { | |
28697 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28698 | } | |
28699 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 28700 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 28701 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
28702 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
28703 | } | |
28704 | if (!argp2) { | |
28705 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
28706 | } |
28707 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
28708 | if (obj2) { | |
28709 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28710 | if (!SWIG_IsOK(ecode3)) { | |
28711 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'"); | |
28712 | } | |
28713 | arg3 = static_cast< int >(val3); | |
28714 | } | |
28715 | { | |
5c8c7dd3 | 28716 | (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3); |
72ef6efb RD |
28717 | if (PyErr_Occurred()) SWIG_fail; |
28718 | } | |
28719 | resultobj = SWIG_Py_Void(); | |
28720 | return resultobj; | |
28721 | fail: | |
28722 | return NULL; | |
28723 | } | |
28724 | ||
28725 | ||
b39fe951 | 28726 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
28727 | PyObject *resultobj = 0; |
28728 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28729 | wxString *arg2 = 0 ; | |
28730 | wxDouble arg3 ; | |
28731 | wxDouble arg4 ; | |
28732 | void *argp1 = 0 ; | |
28733 | int res1 = 0 ; | |
28734 | bool temp2 = false ; | |
28735 | double val3 ; | |
28736 | int ecode3 = 0 ; | |
28737 | double val4 ; | |
28738 | int ecode4 = 0 ; | |
b39fe951 RD |
28739 | PyObject * obj0 = 0 ; |
28740 | PyObject * obj1 = 0 ; | |
28741 | PyObject * obj2 = 0 ; | |
28742 | PyObject * obj3 = 0 ; | |
28743 | char * kwnames[] = { | |
28744 | (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL | |
28745 | }; | |
72ef6efb | 28746 | |
b39fe951 RD |
28747 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
28748 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
28749 | if (!SWIG_IsOK(res1)) { |
28750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28751 | } | |
28752 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28753 | { | |
b39fe951 | 28754 | arg2 = wxString_in_helper(obj1); |
72ef6efb RD |
28755 | if (arg2 == NULL) SWIG_fail; |
28756 | temp2 = true; | |
28757 | } | |
b39fe951 | 28758 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb RD |
28759 | if (!SWIG_IsOK(ecode3)) { |
28760 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28761 | } | |
28762 | arg3 = static_cast< wxDouble >(val3); | |
b39fe951 | 28763 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
72ef6efb RD |
28764 | if (!SWIG_IsOK(ecode4)) { |
28765 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'"); | |
28766 | } | |
28767 | arg4 = static_cast< wxDouble >(val4); | |
28768 | { | |
72ef6efb | 28769 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); |
72ef6efb RD |
28770 | if (PyErr_Occurred()) SWIG_fail; |
28771 | } | |
28772 | resultobj = SWIG_Py_Void(); | |
28773 | { | |
28774 | if (temp2) | |
28775 | delete arg2; | |
28776 | } | |
28777 | return resultobj; | |
28778 | fail: | |
28779 | { | |
28780 | if (temp2) | |
28781 | delete arg2; | |
28782 | } | |
28783 | return NULL; | |
28784 | } | |
28785 | ||
28786 | ||
b39fe951 | 28787 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
28788 | PyObject *resultobj = 0; |
28789 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28790 | wxString *arg2 = 0 ; | |
28791 | wxDouble arg3 ; | |
28792 | wxDouble arg4 ; | |
28793 | wxDouble arg5 ; | |
28794 | void *argp1 = 0 ; | |
28795 | int res1 = 0 ; | |
28796 | bool temp2 = false ; | |
28797 | double val3 ; | |
28798 | int ecode3 = 0 ; | |
28799 | double val4 ; | |
28800 | int ecode4 = 0 ; | |
28801 | double val5 ; | |
28802 | int ecode5 = 0 ; | |
b39fe951 RD |
28803 | PyObject * obj0 = 0 ; |
28804 | PyObject * obj1 = 0 ; | |
28805 | PyObject * obj2 = 0 ; | |
28806 | PyObject * obj3 = 0 ; | |
28807 | PyObject * obj4 = 0 ; | |
28808 | char * kwnames[] = { | |
28809 | (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL | |
28810 | }; | |
72ef6efb | 28811 | |
b39fe951 RD |
28812 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
28813 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28814 | if (!SWIG_IsOK(res1)) { |
b39fe951 | 28815 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
28816 | } |
28817 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28818 | { | |
b39fe951 | 28819 | arg2 = wxString_in_helper(obj1); |
72ef6efb RD |
28820 | if (arg2 == NULL) SWIG_fail; |
28821 | temp2 = true; | |
28822 | } | |
b39fe951 | 28823 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb | 28824 | if (!SWIG_IsOK(ecode3)) { |
b39fe951 | 28825 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
28826 | } |
28827 | arg3 = static_cast< wxDouble >(val3); | |
b39fe951 | 28828 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
72ef6efb | 28829 | if (!SWIG_IsOK(ecode4)) { |
b39fe951 | 28830 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
28831 | } |
28832 | arg4 = static_cast< wxDouble >(val4); | |
b39fe951 | 28833 | ecode5 = SWIG_AsVal_double(obj4, &val5); |
72ef6efb | 28834 | if (!SWIG_IsOK(ecode5)) { |
b39fe951 | 28835 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
28836 | } |
28837 | arg5 = static_cast< wxDouble >(val5); | |
28838 | { | |
72ef6efb | 28839 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5); |
72ef6efb RD |
28840 | if (PyErr_Occurred()) SWIG_fail; |
28841 | } | |
28842 | resultobj = SWIG_Py_Void(); | |
28843 | { | |
28844 | if (temp2) | |
28845 | delete arg2; | |
28846 | } | |
28847 | return resultobj; | |
28848 | fail: | |
28849 | { | |
28850 | if (temp2) | |
28851 | delete arg2; | |
28852 | } | |
28853 | return NULL; | |
28854 | } | |
28855 | ||
28856 | ||
be68621e | 28857 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
28858 | PyObject *resultobj = 0; |
28859 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28860 | wxString *arg2 = 0 ; | |
28861 | wxDouble *arg3 = (wxDouble *) 0 ; | |
28862 | wxDouble *arg4 = (wxDouble *) 0 ; | |
28863 | wxDouble *arg5 = (wxDouble *) 0 ; | |
28864 | wxDouble *arg6 = (wxDouble *) 0 ; | |
28865 | void *argp1 = 0 ; | |
28866 | int res1 = 0 ; | |
28867 | bool temp2 = false ; | |
28868 | wxDouble temp3 ; | |
28869 | int res3 = SWIG_TMPOBJ ; | |
28870 | wxDouble temp4 ; | |
28871 | int res4 = SWIG_TMPOBJ ; | |
28872 | wxDouble temp5 ; | |
28873 | int res5 = SWIG_TMPOBJ ; | |
28874 | wxDouble temp6 ; | |
28875 | int res6 = SWIG_TMPOBJ ; | |
28876 | PyObject * obj0 = 0 ; | |
28877 | PyObject * obj1 = 0 ; | |
28878 | char * kwnames[] = { | |
28879 | (char *) "self",(char *) "text", NULL | |
28880 | }; | |
28881 | ||
28882 | arg3 = &temp3; | |
28883 | arg4 = &temp4; | |
28884 | arg5 = &temp5; | |
28885 | arg6 = &temp6; | |
be68621e | 28886 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
28887 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
28888 | if (!SWIG_IsOK(res1)) { | |
be68621e | 28889 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); |
72ef6efb RD |
28890 | } |
28891 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28892 | { | |
28893 | arg2 = wxString_in_helper(obj1); | |
28894 | if (arg2 == NULL) SWIG_fail; | |
28895 | temp2 = true; | |
28896 | } | |
28897 | { | |
72ef6efb | 28898 | ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
28899 | if (PyErr_Occurred()) SWIG_fail; |
28900 | } | |
28901 | resultobj = SWIG_Py_Void(); | |
28902 | if (SWIG_IsTmpObj(res3)) { | |
28903 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
28904 | } else { | |
28905 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28906 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
28907 | } | |
28908 | if (SWIG_IsTmpObj(res4)) { | |
28909 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4))); | |
28910 | } else { | |
28911 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28912 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags)); | |
28913 | } | |
28914 | if (SWIG_IsTmpObj(res5)) { | |
28915 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5))); | |
28916 | } else { | |
28917 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28918 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags)); | |
28919 | } | |
28920 | if (SWIG_IsTmpObj(res6)) { | |
28921 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6))); | |
28922 | } else { | |
28923 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28924 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags)); | |
28925 | } | |
28926 | { | |
28927 | if (temp2) | |
28928 | delete arg2; | |
28929 | } | |
28930 | return resultobj; | |
28931 | fail: | |
28932 | { | |
28933 | if (temp2) | |
28934 | delete arg2; | |
28935 | } | |
28936 | return NULL; | |
28937 | } | |
28938 | ||
28939 | ||
be68621e RD |
28940 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28941 | PyObject *resultobj = 0; | |
28942 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28943 | wxString *arg2 = 0 ; | |
28944 | PyObject *result = 0 ; | |
28945 | void *argp1 = 0 ; | |
28946 | int res1 = 0 ; | |
28947 | bool temp2 = false ; | |
28948 | PyObject * obj0 = 0 ; | |
28949 | PyObject * obj1 = 0 ; | |
28950 | char * kwnames[] = { | |
28951 | (char *) "self",(char *) "text", NULL | |
28952 | }; | |
28953 | ||
28954 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; | |
28955 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28956 | if (!SWIG_IsOK(res1)) { | |
28957 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28958 | } | |
28959 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28960 | { | |
28961 | arg2 = wxString_in_helper(obj1); | |
28962 | if (arg2 == NULL) SWIG_fail; | |
28963 | temp2 = true; | |
28964 | } | |
28965 | { | |
28966 | result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2); | |
28967 | if (PyErr_Occurred()) SWIG_fail; | |
28968 | } | |
28969 | resultobj = result; | |
28970 | { | |
28971 | if (temp2) | |
28972 | delete arg2; | |
28973 | } | |
28974 | return resultobj; | |
28975 | fail: | |
28976 | { | |
28977 | if (temp2) | |
28978 | delete arg2; | |
28979 | } | |
28980 | return NULL; | |
28981 | } | |
28982 | ||
28983 | ||
72ef6efb RD |
28984 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28985 | PyObject *resultobj = 0; | |
28986 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28987 | wxString *arg2 = 0 ; | |
b39fe951 | 28988 | wxArrayDouble result; |
72ef6efb RD |
28989 | void *argp1 = 0 ; |
28990 | int res1 = 0 ; | |
28991 | bool temp2 = false ; | |
72ef6efb RD |
28992 | PyObject * obj0 = 0 ; |
28993 | PyObject * obj1 = 0 ; | |
72ef6efb | 28994 | char * kwnames[] = { |
b39fe951 | 28995 | (char *) "self",(char *) "text", NULL |
72ef6efb RD |
28996 | }; |
28997 | ||
b39fe951 | 28998 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
28999 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
29000 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 29001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29002 | } |
29003 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29004 | { | |
29005 | arg2 = wxString_in_helper(obj1); | |
29006 | if (arg2 == NULL) SWIG_fail; | |
29007 | temp2 = true; | |
29008 | } | |
72ef6efb | 29009 | { |
b39fe951 | 29010 | result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2); |
72ef6efb RD |
29011 | if (PyErr_Occurred()) SWIG_fail; |
29012 | } | |
b39fe951 RD |
29013 | { |
29014 | resultobj = wxArrayDouble2PyList_helper(result); | |
29015 | } | |
72ef6efb RD |
29016 | { |
29017 | if (temp2) | |
29018 | delete arg2; | |
29019 | } | |
29020 | return resultobj; | |
29021 | fail: | |
29022 | { | |
29023 | if (temp2) | |
29024 | delete arg2; | |
29025 | } | |
29026 | return NULL; | |
29027 | } | |
29028 | ||
29029 | ||
29030 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29031 | PyObject *resultobj = 0; | |
29032 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29033 | wxBitmap *arg2 = 0 ; | |
29034 | wxDouble arg3 ; | |
29035 | wxDouble arg4 ; | |
29036 | wxDouble arg5 ; | |
29037 | wxDouble arg6 ; | |
29038 | void *argp1 = 0 ; | |
29039 | int res1 = 0 ; | |
29040 | void *argp2 = 0 ; | |
29041 | int res2 = 0 ; | |
29042 | double val3 ; | |
29043 | int ecode3 = 0 ; | |
29044 | double val4 ; | |
29045 | int ecode4 = 0 ; | |
29046 | double val5 ; | |
29047 | int ecode5 = 0 ; | |
29048 | double val6 ; | |
29049 | int ecode6 = 0 ; | |
29050 | PyObject * obj0 = 0 ; | |
29051 | PyObject * obj1 = 0 ; | |
29052 | PyObject * obj2 = 0 ; | |
29053 | PyObject * obj3 = 0 ; | |
29054 | PyObject * obj4 = 0 ; | |
29055 | PyObject * obj5 = 0 ; | |
29056 | char * kwnames[] = { | |
29057 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
29058 | }; | |
29059 | ||
29060 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
29061 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29062 | if (!SWIG_IsOK(res1)) { | |
29063 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29064 | } | |
29065 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29066 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
29067 | if (!SWIG_IsOK(res2)) { | |
29068 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
29069 | } | |
29070 | if (!argp2) { | |
29071 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
29072 | } | |
29073 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
29074 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29075 | if (!SWIG_IsOK(ecode3)) { | |
29076 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29077 | } | |
29078 | arg3 = static_cast< wxDouble >(val3); | |
29079 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29080 | if (!SWIG_IsOK(ecode4)) { | |
29081 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29082 | } | |
29083 | arg4 = static_cast< wxDouble >(val4); | |
29084 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29085 | if (!SWIG_IsOK(ecode5)) { | |
29086 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29087 | } | |
29088 | arg5 = static_cast< wxDouble >(val5); | |
29089 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
29090 | if (!SWIG_IsOK(ecode6)) { | |
29091 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'"); | |
29092 | } | |
29093 | arg6 = static_cast< wxDouble >(val6); | |
29094 | { | |
72ef6efb | 29095 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
29096 | if (PyErr_Occurred()) SWIG_fail; |
29097 | } | |
29098 | resultobj = SWIG_Py_Void(); | |
29099 | return resultobj; | |
29100 | fail: | |
29101 | return NULL; | |
29102 | } | |
29103 | ||
29104 | ||
29105 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29106 | PyObject *resultobj = 0; | |
29107 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29108 | wxIcon *arg2 = 0 ; | |
29109 | wxDouble arg3 ; | |
29110 | wxDouble arg4 ; | |
29111 | wxDouble arg5 ; | |
29112 | wxDouble arg6 ; | |
29113 | void *argp1 = 0 ; | |
29114 | int res1 = 0 ; | |
29115 | void *argp2 = 0 ; | |
29116 | int res2 = 0 ; | |
29117 | double val3 ; | |
29118 | int ecode3 = 0 ; | |
29119 | double val4 ; | |
29120 | int ecode4 = 0 ; | |
29121 | double val5 ; | |
29122 | int ecode5 = 0 ; | |
70d7cb34 RD |
29123 | double val6 ; |
29124 | int ecode6 = 0 ; | |
29125 | PyObject * obj0 = 0 ; | |
29126 | PyObject * obj1 = 0 ; | |
29127 | PyObject * obj2 = 0 ; | |
29128 | PyObject * obj3 = 0 ; | |
29129 | PyObject * obj4 = 0 ; | |
29130 | PyObject * obj5 = 0 ; | |
29131 | char * kwnames[] = { | |
29132 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
29133 | }; | |
29134 | ||
29135 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
29136 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29137 | if (!SWIG_IsOK(res1)) { | |
29138 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29139 | } | |
29140 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29141 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
29142 | if (!SWIG_IsOK(res2)) { | |
29143 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
29144 | } | |
29145 | if (!argp2) { | |
29146 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
29147 | } | |
29148 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
29149 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29150 | if (!SWIG_IsOK(ecode3)) { | |
29151 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29152 | } | |
29153 | arg3 = static_cast< wxDouble >(val3); | |
29154 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29155 | if (!SWIG_IsOK(ecode4)) { | |
29156 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29157 | } | |
29158 | arg4 = static_cast< wxDouble >(val4); | |
29159 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29160 | if (!SWIG_IsOK(ecode5)) { | |
29161 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29162 | } | |
29163 | arg5 = static_cast< wxDouble >(val5); | |
29164 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
29165 | if (!SWIG_IsOK(ecode6)) { | |
29166 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'"); | |
29167 | } | |
29168 | arg6 = static_cast< wxDouble >(val6); | |
29169 | { | |
29170 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6); | |
29171 | if (PyErr_Occurred()) SWIG_fail; | |
29172 | } | |
29173 | resultobj = SWIG_Py_Void(); | |
29174 | return resultobj; | |
29175 | fail: | |
29176 | return NULL; | |
29177 | } | |
29178 | ||
29179 | ||
29180 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29181 | PyObject *resultobj = 0; | |
29182 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29183 | wxDouble arg2 ; | |
29184 | wxDouble arg3 ; | |
29185 | wxDouble arg4 ; | |
29186 | wxDouble arg5 ; | |
29187 | void *argp1 = 0 ; | |
29188 | int res1 = 0 ; | |
29189 | double val2 ; | |
29190 | int ecode2 = 0 ; | |
29191 | double val3 ; | |
29192 | int ecode3 = 0 ; | |
29193 | double val4 ; | |
29194 | int ecode4 = 0 ; | |
29195 | double val5 ; | |
29196 | int ecode5 = 0 ; | |
29197 | PyObject * obj0 = 0 ; | |
29198 | PyObject * obj1 = 0 ; | |
29199 | PyObject * obj2 = 0 ; | |
29200 | PyObject * obj3 = 0 ; | |
29201 | PyObject * obj4 = 0 ; | |
29202 | char * kwnames[] = { | |
29203 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
29204 | }; | |
29205 | ||
29206 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
29207 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29208 | if (!SWIG_IsOK(res1)) { | |
29209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29210 | } | |
29211 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29212 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29213 | if (!SWIG_IsOK(ecode2)) { | |
29214 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29215 | } | |
29216 | arg2 = static_cast< wxDouble >(val2); | |
29217 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29218 | if (!SWIG_IsOK(ecode3)) { | |
29219 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29220 | } | |
29221 | arg3 = static_cast< wxDouble >(val3); | |
29222 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29223 | if (!SWIG_IsOK(ecode4)) { | |
29224 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29225 | } | |
29226 | arg4 = static_cast< wxDouble >(val4); | |
29227 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29228 | if (!SWIG_IsOK(ecode5)) { | |
29229 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29230 | } | |
29231 | arg5 = static_cast< wxDouble >(val5); | |
29232 | { | |
29233 | (arg1)->StrokeLine(arg2,arg3,arg4,arg5); | |
29234 | if (PyErr_Occurred()) SWIG_fail; | |
29235 | } | |
29236 | resultobj = SWIG_Py_Void(); | |
29237 | return resultobj; | |
29238 | fail: | |
29239 | return NULL; | |
29240 | } | |
29241 | ||
29242 | ||
29243 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29244 | PyObject *resultobj = 0; | |
29245 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29246 | size_t arg2 ; | |
29247 | wxPoint2D *arg3 = (wxPoint2D *) 0 ; | |
29248 | void *argp1 = 0 ; | |
29249 | int res1 = 0 ; | |
29250 | PyObject * obj0 = 0 ; | |
29251 | PyObject * obj1 = 0 ; | |
29252 | char * kwnames[] = { | |
29253 | (char *) "self",(char *) "points", NULL | |
29254 | }; | |
29255 | ||
29256 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail; | |
29257 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29258 | if (!SWIG_IsOK(res1)) { | |
29259 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29260 | } | |
29261 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29262 | { | |
29263 | arg3 = wxPoint2D_LIST_helper(obj1, &arg2); | |
29264 | if (arg3 == NULL) SWIG_fail; | |
29265 | } | |
29266 | { | |
29267 | (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3); | |
29268 | if (PyErr_Occurred()) SWIG_fail; | |
29269 | } | |
29270 | resultobj = SWIG_Py_Void(); | |
29271 | { | |
29272 | if (arg3) delete [] arg3; | |
29273 | } | |
29274 | return resultobj; | |
29275 | fail: | |
29276 | { | |
29277 | if (arg3) delete [] arg3; | |
29278 | } | |
29279 | return NULL; | |
29280 | } | |
29281 | ||
29282 | ||
29283 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29284 | PyObject *resultobj = 0; | |
29285 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29286 | PyObject *arg2 = (PyObject *) 0 ; | |
29287 | PyObject *arg3 = (PyObject *) 0 ; | |
29288 | void *argp1 = 0 ; | |
29289 | int res1 = 0 ; | |
29290 | PyObject * obj0 = 0 ; | |
29291 | PyObject * obj1 = 0 ; | |
29292 | PyObject * obj2 = 0 ; | |
29293 | char * kwnames[] = { | |
29294 | (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL | |
29295 | }; | |
29296 | ||
29297 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29298 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29299 | if (!SWIG_IsOK(res1)) { | |
29300 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29301 | } | |
29302 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29303 | arg2 = obj1; | |
29304 | arg3 = obj2; | |
29305 | { | |
29306 | wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3); | |
29307 | if (PyErr_Occurred()) SWIG_fail; | |
29308 | } | |
29309 | resultobj = SWIG_Py_Void(); | |
29310 | return resultobj; | |
29311 | fail: | |
29312 | return NULL; | |
29313 | } | |
29314 | ||
29315 | ||
29316 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29317 | PyObject *resultobj = 0; | |
29318 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29319 | size_t arg2 ; | |
29320 | wxPoint2D *arg3 = (wxPoint2D *) 0 ; | |
5c8c7dd3 | 29321 | int arg4 = (int) wxODDEVEN_RULE ; |
70d7cb34 RD |
29322 | void *argp1 = 0 ; |
29323 | int res1 = 0 ; | |
29324 | int val4 ; | |
29325 | int ecode4 = 0 ; | |
29326 | PyObject * obj0 = 0 ; | |
29327 | PyObject * obj1 = 0 ; | |
29328 | PyObject * obj2 = 0 ; | |
29329 | char * kwnames[] = { | |
29330 | (char *) "self",(char *) "points",(char *) "fillStyle", NULL | |
29331 | }; | |
29332 | ||
29333 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29334 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29335 | if (!SWIG_IsOK(res1)) { | |
29336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29337 | } | |
29338 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29339 | { | |
29340 | arg3 = wxPoint2D_LIST_helper(obj1, &arg2); | |
29341 | if (arg3 == NULL) SWIG_fail; | |
29342 | } | |
29343 | if (obj2) { | |
29344 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
29345 | if (!SWIG_IsOK(ecode4)) { | |
29346 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
29347 | } | |
29348 | arg4 = static_cast< int >(val4); | |
29349 | } | |
29350 | { | |
29351 | (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4); | |
29352 | if (PyErr_Occurred()) SWIG_fail; | |
29353 | } | |
29354 | resultobj = SWIG_Py_Void(); | |
29355 | { | |
29356 | if (arg3) delete [] arg3; | |
29357 | } | |
29358 | return resultobj; | |
29359 | fail: | |
29360 | { | |
29361 | if (arg3) delete [] arg3; | |
29362 | } | |
29363 | return NULL; | |
29364 | } | |
29365 | ||
29366 | ||
29367 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29368 | PyObject *resultobj = 0; | |
29369 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29370 | wxDouble arg2 ; | |
29371 | wxDouble arg3 ; | |
29372 | wxDouble arg4 ; | |
29373 | wxDouble arg5 ; | |
29374 | void *argp1 = 0 ; | |
29375 | int res1 = 0 ; | |
29376 | double val2 ; | |
29377 | int ecode2 = 0 ; | |
29378 | double val3 ; | |
29379 | int ecode3 = 0 ; | |
29380 | double val4 ; | |
29381 | int ecode4 = 0 ; | |
29382 | double val5 ; | |
29383 | int ecode5 = 0 ; | |
29384 | PyObject * obj0 = 0 ; | |
29385 | PyObject * obj1 = 0 ; | |
29386 | PyObject * obj2 = 0 ; | |
29387 | PyObject * obj3 = 0 ; | |
29388 | PyObject * obj4 = 0 ; | |
29389 | char * kwnames[] = { | |
29390 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
29391 | }; | |
29392 | ||
29393 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
29394 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29395 | if (!SWIG_IsOK(res1)) { | |
29396 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29397 | } | |
29398 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29399 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29400 | if (!SWIG_IsOK(ecode2)) { | |
29401 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29402 | } | |
29403 | arg2 = static_cast< wxDouble >(val2); | |
29404 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29405 | if (!SWIG_IsOK(ecode3)) { | |
29406 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29407 | } | |
29408 | arg3 = static_cast< wxDouble >(val3); | |
29409 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29410 | if (!SWIG_IsOK(ecode4)) { | |
29411 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29412 | } | |
29413 | arg4 = static_cast< wxDouble >(val4); | |
29414 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29415 | if (!SWIG_IsOK(ecode5)) { | |
29416 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29417 | } | |
29418 | arg5 = static_cast< wxDouble >(val5); | |
29419 | { | |
29420 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
29421 | if (PyErr_Occurred()) SWIG_fail; | |
29422 | } | |
29423 | resultobj = SWIG_Py_Void(); | |
29424 | return resultobj; | |
29425 | fail: | |
29426 | return NULL; | |
29427 | } | |
29428 | ||
29429 | ||
29430 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29431 | PyObject *resultobj = 0; | |
29432 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29433 | wxDouble arg2 ; | |
29434 | wxDouble arg3 ; | |
29435 | wxDouble arg4 ; | |
29436 | wxDouble arg5 ; | |
29437 | void *argp1 = 0 ; | |
29438 | int res1 = 0 ; | |
29439 | double val2 ; | |
29440 | int ecode2 = 0 ; | |
29441 | double val3 ; | |
29442 | int ecode3 = 0 ; | |
29443 | double val4 ; | |
29444 | int ecode4 = 0 ; | |
29445 | double val5 ; | |
29446 | int ecode5 = 0 ; | |
72ef6efb RD |
29447 | PyObject * obj0 = 0 ; |
29448 | PyObject * obj1 = 0 ; | |
29449 | PyObject * obj2 = 0 ; | |
29450 | PyObject * obj3 = 0 ; | |
29451 | PyObject * obj4 = 0 ; | |
72ef6efb | 29452 | char * kwnames[] = { |
70d7cb34 | 29453 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL |
72ef6efb RD |
29454 | }; |
29455 | ||
70d7cb34 | 29456 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
72ef6efb RD |
29457 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
29458 | if (!SWIG_IsOK(res1)) { | |
70d7cb34 | 29459 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29460 | } |
29461 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
29462 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
29463 | if (!SWIG_IsOK(ecode2)) { | |
29464 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29465 | } | |
29466 | arg2 = static_cast< wxDouble >(val2); | |
72ef6efb RD |
29467 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
29468 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 29469 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
29470 | } |
29471 | arg3 = static_cast< wxDouble >(val3); | |
29472 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29473 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 29474 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
29475 | } |
29476 | arg4 = static_cast< wxDouble >(val4); | |
29477 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29478 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 29479 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
29480 | } |
29481 | arg5 = static_cast< wxDouble >(val5); | |
72ef6efb | 29482 | { |
70d7cb34 | 29483 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); |
72ef6efb RD |
29484 | if (PyErr_Occurred()) SWIG_fail; |
29485 | } | |
29486 | resultobj = SWIG_Py_Void(); | |
29487 | return resultobj; | |
29488 | fail: | |
29489 | return NULL; | |
29490 | } | |
29491 | ||
29492 | ||
70d7cb34 | 29493 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
29494 | PyObject *resultobj = 0; |
29495 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29496 | wxDouble arg2 ; | |
29497 | wxDouble arg3 ; | |
29498 | wxDouble arg4 ; | |
29499 | wxDouble arg5 ; | |
70d7cb34 | 29500 | wxDouble arg6 ; |
72ef6efb RD |
29501 | void *argp1 = 0 ; |
29502 | int res1 = 0 ; | |
29503 | double val2 ; | |
29504 | int ecode2 = 0 ; | |
29505 | double val3 ; | |
29506 | int ecode3 = 0 ; | |
29507 | double val4 ; | |
29508 | int ecode4 = 0 ; | |
29509 | double val5 ; | |
29510 | int ecode5 = 0 ; | |
70d7cb34 RD |
29511 | double val6 ; |
29512 | int ecode6 = 0 ; | |
72ef6efb RD |
29513 | PyObject * obj0 = 0 ; |
29514 | PyObject * obj1 = 0 ; | |
29515 | PyObject * obj2 = 0 ; | |
29516 | PyObject * obj3 = 0 ; | |
29517 | PyObject * obj4 = 0 ; | |
70d7cb34 | 29518 | PyObject * obj5 = 0 ; |
72ef6efb | 29519 | char * kwnames[] = { |
70d7cb34 | 29520 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL |
72ef6efb RD |
29521 | }; |
29522 | ||
70d7cb34 | 29523 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
72ef6efb RD |
29524 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
29525 | if (!SWIG_IsOK(res1)) { | |
70d7cb34 | 29526 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29527 | } |
29528 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29529 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29530 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 29531 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
29532 | } |
29533 | arg2 = static_cast< wxDouble >(val2); | |
29534 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29535 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 29536 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
29537 | } |
29538 | arg3 = static_cast< wxDouble >(val3); | |
29539 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29540 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 29541 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
29542 | } |
29543 | arg4 = static_cast< wxDouble >(val4); | |
29544 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29545 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 29546 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
29547 | } |
29548 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 RD |
29549 | ecode6 = SWIG_AsVal_double(obj5, &val6); |
29550 | if (!SWIG_IsOK(ecode6)) { | |
29551 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'"); | |
29552 | } | |
29553 | arg6 = static_cast< wxDouble >(val6); | |
72ef6efb | 29554 | { |
70d7cb34 | 29555 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
29556 | if (PyErr_Occurred()) SWIG_fail; |
29557 | } | |
29558 | resultobj = SWIG_Py_Void(); | |
29559 | return resultobj; | |
29560 | fail: | |
29561 | return NULL; | |
29562 | } | |
29563 | ||
29564 | ||
70d7cb34 | 29565 | SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
29566 | PyObject *resultobj = 0; |
29567 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 | 29568 | bool result; |
72ef6efb RD |
29569 | void *argp1 = 0 ; |
29570 | int res1 = 0 ; | |
70d7cb34 | 29571 | PyObject *swig_obj[1] ; |
72ef6efb | 29572 | |
70d7cb34 RD |
29573 | if (!args) SWIG_fail; |
29574 | swig_obj[0] = args; | |
29575 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 29576 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 29577 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); |
72ef6efb RD |
29578 | } |
29579 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
b39fe951 | 29580 | { |
70d7cb34 RD |
29581 | result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset(); |
29582 | if (PyErr_Occurred()) SWIG_fail; | |
72ef6efb | 29583 | } |
72ef6efb | 29584 | { |
70d7cb34 RD |
29585 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
29586 | } | |
29587 | return resultobj; | |
29588 | fail: | |
29589 | return NULL; | |
29590 | } | |
29591 | ||
29592 | ||
29593 | SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29594 | PyObject *obj; | |
29595 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
29596 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj)); | |
29597 | return SWIG_Py_Void(); | |
29598 | } | |
29599 | ||
29600 | SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29601 | PyObject *resultobj = 0; | |
29602 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
29603 | void *argp1 = 0 ; | |
29604 | int res1 = 0 ; | |
29605 | PyObject *swig_obj[1] ; | |
29606 | ||
29607 | if (!args) SWIG_fail; | |
29608 | swig_obj[0] = args; | |
29609 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 ); | |
29610 | if (!SWIG_IsOK(res1)) { | |
29611 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
29612 | } | |
29613 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29614 | { | |
29615 | delete arg1; | |
29616 | ||
72ef6efb RD |
29617 | if (PyErr_Occurred()) SWIG_fail; |
29618 | } | |
29619 | resultobj = SWIG_Py_Void(); | |
70d7cb34 RD |
29620 | return resultobj; |
29621 | fail: | |
29622 | return NULL; | |
29623 | } | |
29624 | ||
29625 | ||
29626 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29627 | PyObject *resultobj = 0; | |
29628 | wxGraphicsRenderer *result = 0 ; | |
29629 | ||
29630 | if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail; | |
b39fe951 | 29631 | { |
70d7cb34 RD |
29632 | result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer(); |
29633 | if (PyErr_Occurred()) SWIG_fail; | |
29634 | } | |
29635 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
29636 | return resultobj; | |
29637 | fail: | |
29638 | return NULL; | |
29639 | } | |
29640 | ||
29641 | ||
29642 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
29643 | PyObject *resultobj = 0; | |
29644 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
29645 | wxWindowDC *arg2 = 0 ; | |
29646 | wxGraphicsContext *result = 0 ; | |
29647 | void *argp1 = 0 ; | |
29648 | int res1 = 0 ; | |
29649 | void *argp2 = 0 ; | |
29650 | int res2 = 0 ; | |
29651 | ||
29652 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
29653 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
29654 | if (!SWIG_IsOK(res1)) { | |
29655 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
29656 | } | |
29657 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29658 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
29659 | if (!SWIG_IsOK(res2)) { | |
29660 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'"); | |
29661 | } | |
29662 | if (!argp2) { | |
29663 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'"); | |
29664 | } | |
29665 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
29666 | { | |
29667 | result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2); | |
29668 | if (PyErr_Occurred()) SWIG_fail; | |
b39fe951 | 29669 | } |
70d7cb34 | 29670 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
29671 | return resultobj; |
29672 | fail: | |
70d7cb34 RD |
29673 | return NULL; |
29674 | } | |
29675 | ||
29676 | ||
29677 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
29678 | PyObject *resultobj = 0; | |
29679 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
29680 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29681 | wxGraphicsContext *result = 0 ; | |
29682 | void *argp1 = 0 ; | |
29683 | int res1 = 0 ; | |
29684 | void *argp2 = 0 ; | |
29685 | int res2 = 0 ; | |
29686 | ||
29687 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
29688 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
29689 | if (!SWIG_IsOK(res1)) { | |
29690 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
29691 | } | |
29692 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29693 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
29694 | if (!SWIG_IsOK(res2)) { | |
29695 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
29696 | } | |
29697 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
b39fe951 | 29698 | { |
70d7cb34 RD |
29699 | result = (wxGraphicsContext *)(arg1)->CreateContext(arg2); |
29700 | if (PyErr_Occurred()) SWIG_fail; | |
b39fe951 | 29701 | } |
70d7cb34 RD |
29702 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
29703 | return resultobj; | |
29704 | fail: | |
72ef6efb RD |
29705 | return NULL; |
29706 | } | |
29707 | ||
29708 | ||
70d7cb34 RD |
29709 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) { |
29710 | int argc; | |
29711 | PyObject *argv[3]; | |
29712 | ||
29713 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail; | |
29714 | --argc; | |
29715 | if (argc == 2) { | |
29716 | int _v = 0; | |
29717 | { | |
29718 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0); | |
29719 | _v = SWIG_CheckState(res); | |
29720 | } | |
29721 | if (!_v) goto check_1; | |
29722 | return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv); | |
29723 | } | |
29724 | check_1: | |
29725 | ||
29726 | if (argc == 2) { | |
29727 | return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv); | |
29728 | } | |
29729 | ||
29730 | fail: | |
29731 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'"); | |
29732 | return NULL; | |
29733 | } | |
29734 | ||
29735 | ||
29736 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
72ef6efb | 29737 | PyObject *resultobj = 0; |
70d7cb34 RD |
29738 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
29739 | void *arg2 = (void *) 0 ; | |
29740 | wxGraphicsContext *result = 0 ; | |
72ef6efb RD |
29741 | void *argp1 = 0 ; |
29742 | int res1 = 0 ; | |
70d7cb34 | 29743 | int res2 ; |
b39fe951 RD |
29744 | PyObject * obj0 = 0 ; |
29745 | PyObject * obj1 = 0 ; | |
b39fe951 | 29746 | char * kwnames[] = { |
70d7cb34 | 29747 | (char *) "self",(char *) "context", NULL |
b39fe951 | 29748 | }; |
72ef6efb | 29749 | |
70d7cb34 RD |
29750 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail; |
29751 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 29752 | if (!SWIG_IsOK(res1)) { |
70d7cb34 RD |
29753 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
29754 | } | |
29755 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29756 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
29757 | if (!SWIG_IsOK(res2)) { | |
29758 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'"); | |
72ef6efb | 29759 | } |
72ef6efb | 29760 | { |
70d7cb34 | 29761 | result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2); |
72ef6efb RD |
29762 | if (PyErr_Occurred()) SWIG_fail; |
29763 | } | |
70d7cb34 | 29764 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
29765 | return resultobj; |
29766 | fail: | |
29767 | return NULL; | |
29768 | } | |
29769 | ||
29770 | ||
70d7cb34 | 29771 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 29772 | PyObject *resultobj = 0; |
70d7cb34 RD |
29773 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
29774 | void *arg2 = (void *) 0 ; | |
29775 | wxGraphicsContext *result = 0 ; | |
72ef6efb RD |
29776 | void *argp1 = 0 ; |
29777 | int res1 = 0 ; | |
70d7cb34 | 29778 | int res2 ; |
72ef6efb RD |
29779 | PyObject * obj0 = 0 ; |
29780 | PyObject * obj1 = 0 ; | |
72ef6efb | 29781 | char * kwnames[] = { |
70d7cb34 | 29782 | (char *) "self",(char *) "window", NULL |
72ef6efb RD |
29783 | }; |
29784 | ||
70d7cb34 RD |
29785 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) 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_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 29789 | } |
70d7cb34 RD |
29790 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
29791 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
29792 | if (!SWIG_IsOK(res2)) { | |
29793 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'"); | |
72ef6efb RD |
29794 | } |
29795 | { | |
70d7cb34 | 29796 | result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2); |
72ef6efb RD |
29797 | if (PyErr_Occurred()) SWIG_fail; |
29798 | } | |
70d7cb34 | 29799 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
29800 | return resultobj; |
29801 | fail: | |
70d7cb34 RD |
29802 | return NULL; |
29803 | } | |
29804 | ||
29805 | ||
29806 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29807 | PyObject *resultobj = 0; | |
29808 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
5c8c7dd3 | 29809 | wxGraphicsPath result; |
70d7cb34 RD |
29810 | void *argp1 = 0 ; |
29811 | int res1 = 0 ; | |
29812 | PyObject *swig_obj[1] ; | |
29813 | ||
29814 | if (!args) SWIG_fail; | |
29815 | swig_obj[0] = args; | |
29816 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
29817 | if (!SWIG_IsOK(res1)) { | |
29818 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
29819 | } | |
29820 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
b39fe951 | 29821 | { |
5c8c7dd3 | 29822 | result = (arg1)->CreatePath(); |
70d7cb34 | 29823 | if (PyErr_Occurred()) SWIG_fail; |
b39fe951 | 29824 | } |
5c8c7dd3 | 29825 | resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
29826 | return resultobj; |
29827 | fail: | |
72ef6efb RD |
29828 | return NULL; |
29829 | } | |
29830 | ||
29831 | ||
70d7cb34 | 29832 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 29833 | PyObject *resultobj = 0; |
70d7cb34 RD |
29834 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
29835 | wxDouble arg2 = (wxDouble) 1.0 ; | |
29836 | wxDouble arg3 = (wxDouble) 0.0 ; | |
29837 | wxDouble arg4 = (wxDouble) 0.0 ; | |
29838 | wxDouble arg5 = (wxDouble) 1.0 ; | |
29839 | wxDouble arg6 = (wxDouble) 0.0 ; | |
29840 | wxDouble arg7 = (wxDouble) 0.0 ; | |
5c8c7dd3 | 29841 | wxGraphicsMatrix result; |
72ef6efb RD |
29842 | void *argp1 = 0 ; |
29843 | int res1 = 0 ; | |
29844 | double val2 ; | |
29845 | int ecode2 = 0 ; | |
29846 | double val3 ; | |
29847 | int ecode3 = 0 ; | |
29848 | double val4 ; | |
29849 | int ecode4 = 0 ; | |
29850 | double val5 ; | |
29851 | int ecode5 = 0 ; | |
70d7cb34 RD |
29852 | double val6 ; |
29853 | int ecode6 = 0 ; | |
29854 | double val7 ; | |
29855 | int ecode7 = 0 ; | |
72ef6efb RD |
29856 | PyObject * obj0 = 0 ; |
29857 | PyObject * obj1 = 0 ; | |
29858 | PyObject * obj2 = 0 ; | |
29859 | PyObject * obj3 = 0 ; | |
29860 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
29861 | PyObject * obj5 = 0 ; |
29862 | PyObject * obj6 = 0 ; | |
72ef6efb | 29863 | char * kwnames[] = { |
70d7cb34 | 29864 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL |
72ef6efb RD |
29865 | }; |
29866 | ||
70d7cb34 RD |
29867 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
29868 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 29869 | if (!SWIG_IsOK(res1)) { |
70d7cb34 RD |
29870 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
29871 | } | |
29872 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29873 | if (obj1) { | |
29874 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29875 | if (!SWIG_IsOK(ecode2)) { | |
29876 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29877 | } | |
29878 | arg2 = static_cast< wxDouble >(val2); | |
29879 | } | |
29880 | if (obj2) { | |
29881 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29882 | if (!SWIG_IsOK(ecode3)) { | |
29883 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29884 | } | |
29885 | arg3 = static_cast< wxDouble >(val3); | |
29886 | } | |
29887 | if (obj3) { | |
29888 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29889 | if (!SWIG_IsOK(ecode4)) { | |
29890 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29891 | } | |
29892 | arg4 = static_cast< wxDouble >(val4); | |
29893 | } | |
29894 | if (obj4) { | |
29895 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29896 | if (!SWIG_IsOK(ecode5)) { | |
29897 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29898 | } | |
29899 | arg5 = static_cast< wxDouble >(val5); | |
29900 | } | |
29901 | if (obj5) { | |
29902 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
29903 | if (!SWIG_IsOK(ecode6)) { | |
29904 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'"); | |
29905 | } | |
29906 | arg6 = static_cast< wxDouble >(val6); | |
29907 | } | |
29908 | if (obj6) { | |
29909 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
29910 | if (!SWIG_IsOK(ecode7)) { | |
29911 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'"); | |
29912 | } | |
29913 | arg7 = static_cast< wxDouble >(val7); | |
72ef6efb | 29914 | } |
72ef6efb | 29915 | { |
5c8c7dd3 | 29916 | result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7); |
72ef6efb RD |
29917 | if (PyErr_Occurred()) SWIG_fail; |
29918 | } | |
5c8c7dd3 | 29919 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
29920 | return resultobj; |
29921 | fail: | |
29922 | return NULL; | |
29923 | } | |
29924 | ||
29925 | ||
70d7cb34 | 29926 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 29927 | PyObject *resultobj = 0; |
70d7cb34 RD |
29928 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
29929 | wxPen *arg2 = 0 ; | |
29930 | wxGraphicsPen result; | |
29931 | void *argp1 = 0 ; | |
29932 | int res1 = 0 ; | |
29933 | void *argp2 = 0 ; | |
29934 | int res2 = 0 ; | |
29935 | PyObject * obj0 = 0 ; | |
29936 | PyObject * obj1 = 0 ; | |
29937 | char * kwnames[] = { | |
29938 | (char *) "self",(char *) "pen", NULL | |
29939 | }; | |
29940 | ||
29941 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail; | |
29942 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
29943 | if (!SWIG_IsOK(res1)) { | |
29944 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
29945 | } | |
29946 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29947 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
29948 | if (!SWIG_IsOK(res2)) { | |
29949 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
29950 | } | |
29951 | if (!argp2) { | |
29952 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
29953 | } | |
29954 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
29955 | { | |
29956 | result = (arg1)->CreatePen((wxPen const &)*arg2); | |
29957 | if (PyErr_Occurred()) SWIG_fail; | |
29958 | } | |
29959 | resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 ); | |
29960 | return resultobj; | |
29961 | fail: | |
29962 | return NULL; | |
29963 | } | |
29964 | ||
29965 | ||
29966 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29967 | PyObject *resultobj = 0; | |
29968 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
29969 | wxBrush *arg2 = 0 ; | |
29970 | wxGraphicsBrush result; | |
29971 | void *argp1 = 0 ; | |
29972 | int res1 = 0 ; | |
29973 | void *argp2 = 0 ; | |
29974 | int res2 = 0 ; | |
29975 | PyObject * obj0 = 0 ; | |
29976 | PyObject * obj1 = 0 ; | |
29977 | char * kwnames[] = { | |
29978 | (char *) "self",(char *) "brush", NULL | |
29979 | }; | |
29980 | ||
29981 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
29982 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
29983 | if (!SWIG_IsOK(res1)) { | |
29984 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
29985 | } | |
29986 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29987 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
29988 | if (!SWIG_IsOK(res2)) { | |
29989 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
29990 | } | |
29991 | if (!argp2) { | |
29992 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
29993 | } | |
29994 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
29995 | { | |
29996 | result = (arg1)->CreateBrush((wxBrush const &)*arg2); | |
29997 | if (PyErr_Occurred()) SWIG_fail; | |
29998 | } | |
29999 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); | |
30000 | return resultobj; | |
30001 | fail: | |
30002 | return NULL; | |
30003 | } | |
30004 | ||
30005 | ||
30006 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30007 | PyObject *resultobj = 0; | |
30008 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
72ef6efb RD |
30009 | wxDouble arg2 ; |
30010 | wxDouble arg3 ; | |
30011 | wxDouble arg4 ; | |
30012 | wxDouble arg5 ; | |
70d7cb34 RD |
30013 | wxColour *arg6 = 0 ; |
30014 | wxColour *arg7 = 0 ; | |
30015 | wxGraphicsBrush result; | |
72ef6efb RD |
30016 | void *argp1 = 0 ; |
30017 | int res1 = 0 ; | |
30018 | double val2 ; | |
30019 | int ecode2 = 0 ; | |
30020 | double val3 ; | |
30021 | int ecode3 = 0 ; | |
30022 | double val4 ; | |
30023 | int ecode4 = 0 ; | |
30024 | double val5 ; | |
30025 | int ecode5 = 0 ; | |
70d7cb34 RD |
30026 | wxColour temp6 ; |
30027 | wxColour temp7 ; | |
72ef6efb RD |
30028 | PyObject * obj0 = 0 ; |
30029 | PyObject * obj1 = 0 ; | |
30030 | PyObject * obj2 = 0 ; | |
30031 | PyObject * obj3 = 0 ; | |
30032 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
30033 | PyObject * obj5 = 0 ; |
30034 | PyObject * obj6 = 0 ; | |
72ef6efb | 30035 | char * kwnames[] = { |
70d7cb34 | 30036 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL |
72ef6efb RD |
30037 | }; |
30038 | ||
70d7cb34 RD |
30039 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
30040 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30041 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 30042 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 30043 | } |
70d7cb34 | 30044 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
72ef6efb RD |
30045 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
30046 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 30047 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
30048 | } |
30049 | arg2 = static_cast< wxDouble >(val2); | |
30050 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30051 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 30052 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
30053 | } |
30054 | arg3 = static_cast< wxDouble >(val3); | |
30055 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30056 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 30057 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
30058 | } |
30059 | arg4 = static_cast< wxDouble >(val4); | |
30060 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30061 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 30062 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
30063 | } |
30064 | arg5 = static_cast< wxDouble >(val5); | |
30065 | { | |
70d7cb34 RD |
30066 | arg6 = &temp6; |
30067 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
30068 | } | |
30069 | { | |
30070 | arg7 = &temp7; | |
30071 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
30072 | } | |
30073 | { | |
30074 | result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7); | |
72ef6efb RD |
30075 | if (PyErr_Occurred()) SWIG_fail; |
30076 | } | |
70d7cb34 | 30077 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30078 | return resultobj; |
30079 | fail: | |
30080 | return NULL; | |
30081 | } | |
30082 | ||
30083 | ||
70d7cb34 | 30084 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30085 | PyObject *resultobj = 0; |
70d7cb34 | 30086 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
72ef6efb RD |
30087 | wxDouble arg2 ; |
30088 | wxDouble arg3 ; | |
30089 | wxDouble arg4 ; | |
30090 | wxDouble arg5 ; | |
30091 | wxDouble arg6 ; | |
70d7cb34 RD |
30092 | wxColour *arg7 = 0 ; |
30093 | wxColour *arg8 = 0 ; | |
30094 | wxGraphicsBrush result; | |
72ef6efb RD |
30095 | void *argp1 = 0 ; |
30096 | int res1 = 0 ; | |
30097 | double val2 ; | |
30098 | int ecode2 = 0 ; | |
30099 | double val3 ; | |
30100 | int ecode3 = 0 ; | |
30101 | double val4 ; | |
30102 | int ecode4 = 0 ; | |
30103 | double val5 ; | |
30104 | int ecode5 = 0 ; | |
30105 | double val6 ; | |
30106 | int ecode6 = 0 ; | |
70d7cb34 RD |
30107 | wxColour temp7 ; |
30108 | wxColour temp8 ; | |
72ef6efb RD |
30109 | PyObject * obj0 = 0 ; |
30110 | PyObject * obj1 = 0 ; | |
30111 | PyObject * obj2 = 0 ; | |
30112 | PyObject * obj3 = 0 ; | |
30113 | PyObject * obj4 = 0 ; | |
30114 | PyObject * obj5 = 0 ; | |
70d7cb34 RD |
30115 | PyObject * obj6 = 0 ; |
30116 | PyObject * obj7 = 0 ; | |
72ef6efb | 30117 | char * kwnames[] = { |
70d7cb34 | 30118 | (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL |
72ef6efb RD |
30119 | }; |
30120 | ||
70d7cb34 RD |
30121 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
30122 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30123 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 30124 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 30125 | } |
70d7cb34 | 30126 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
72ef6efb RD |
30127 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
30128 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 30129 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
30130 | } |
30131 | arg2 = static_cast< wxDouble >(val2); | |
30132 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30133 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 30134 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
30135 | } |
30136 | arg3 = static_cast< wxDouble >(val3); | |
30137 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30138 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 30139 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
30140 | } |
30141 | arg4 = static_cast< wxDouble >(val4); | |
30142 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30143 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 30144 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
30145 | } |
30146 | arg5 = static_cast< wxDouble >(val5); | |
30147 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
30148 | if (!SWIG_IsOK(ecode6)) { | |
70d7cb34 | 30149 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'"); |
72ef6efb RD |
30150 | } |
30151 | arg6 = static_cast< wxDouble >(val6); | |
30152 | { | |
70d7cb34 RD |
30153 | arg7 = &temp7; |
30154 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
30155 | } | |
30156 | { | |
30157 | arg8 = &temp8; | |
30158 | if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail; | |
30159 | } | |
30160 | { | |
30161 | result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8); | |
72ef6efb RD |
30162 | if (PyErr_Occurred()) SWIG_fail; |
30163 | } | |
70d7cb34 | 30164 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30165 | return resultobj; |
30166 | fail: | |
30167 | return NULL; | |
30168 | } | |
30169 | ||
30170 | ||
70d7cb34 RD |
30171 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
30172 | PyObject *resultobj = 0; | |
30173 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30174 | wxFont *arg2 = 0 ; | |
30175 | wxColour const &arg3_defvalue = *wxBLACK ; | |
30176 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
30177 | wxGraphicsFont result; | |
30178 | void *argp1 = 0 ; | |
30179 | int res1 = 0 ; | |
30180 | void *argp2 = 0 ; | |
30181 | int res2 = 0 ; | |
30182 | wxColour temp3 ; | |
30183 | PyObject * obj0 = 0 ; | |
30184 | PyObject * obj1 = 0 ; | |
30185 | PyObject * obj2 = 0 ; | |
30186 | char * kwnames[] = { | |
30187 | (char *) "self",(char *) "font",(char *) "col", NULL | |
30188 | }; | |
30189 | ||
30190 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30191 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30192 | if (!SWIG_IsOK(res1)) { | |
30193 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30194 | } | |
30195 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30196 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
30197 | if (!SWIG_IsOK(res2)) { | |
30198 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
30199 | } | |
30200 | if (!argp2) { | |
30201 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
30202 | } | |
30203 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
30204 | if (obj2) { | |
30205 | { | |
30206 | arg3 = &temp3; | |
30207 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
30208 | } | |
30209 | } | |
30210 | { | |
30211 | result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3); | |
30212 | if (PyErr_Occurred()) SWIG_fail; | |
30213 | } | |
30214 | resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 ); | |
30215 | return resultobj; | |
30216 | fail: | |
30217 | return NULL; | |
30218 | } | |
30219 | ||
30220 | ||
30221 | SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
72ef6efb RD |
30222 | PyObject *obj; |
30223 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
70d7cb34 | 30224 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj)); |
72ef6efb RD |
30225 | return SWIG_Py_Void(); |
30226 | } | |
30227 | ||
30228 | SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30229 | PyObject *resultobj = 0; | |
30230 | wxWindowDC *arg1 = 0 ; | |
30231 | wxGCDC *result = 0 ; | |
30232 | void *argp1 = 0 ; | |
30233 | int res1 = 0 ; | |
30234 | PyObject * obj0 = 0 ; | |
30235 | char * kwnames[] = { | |
30236 | (char *) "dc", NULL | |
30237 | }; | |
30238 | ||
30239 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail; | |
30240 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
30241 | if (!SWIG_IsOK(res1)) { | |
30242 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
30243 | } | |
30244 | if (!argp1) { | |
30245 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
30246 | } | |
30247 | arg1 = reinterpret_cast< wxWindowDC * >(argp1); | |
30248 | { | |
30249 | if (!wxPyCheckForApp()) SWIG_fail; | |
30250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30251 | result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1); | |
30252 | wxPyEndAllowThreads(__tstate); | |
30253 | if (PyErr_Occurred()) SWIG_fail; | |
30254 | } | |
30255 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 ); | |
30256 | return resultobj; | |
30257 | fail: | |
30258 | return NULL; | |
30259 | } | |
30260 | ||
30261 | ||
30262 | SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30263 | PyObject *resultobj = 0; | |
30264 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
30265 | void *argp1 = 0 ; | |
30266 | int res1 = 0 ; | |
30267 | PyObject *swig_obj[1] ; | |
30268 | ||
30269 | if (!args) SWIG_fail; | |
30270 | swig_obj[0] = args; | |
30271 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 ); | |
30272 | if (!SWIG_IsOK(res1)) { | |
30273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'"); | |
30274 | } | |
30275 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
30276 | { | |
72ef6efb RD |
30277 | delete arg1; |
30278 | ||
72ef6efb RD |
30279 | if (PyErr_Occurred()) SWIG_fail; |
30280 | } | |
30281 | resultobj = SWIG_Py_Void(); | |
30282 | return resultobj; | |
30283 | fail: | |
30284 | return NULL; | |
30285 | } | |
30286 | ||
30287 | ||
0a27f394 | 30288 | SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
30289 | PyObject *resultobj = 0; |
30290 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
30291 | wxGraphicsContext *result = 0 ; | |
30292 | void *argp1 = 0 ; | |
30293 | int res1 = 0 ; | |
30294 | PyObject *swig_obj[1] ; | |
30295 | ||
30296 | if (!args) SWIG_fail; | |
30297 | swig_obj[0] = args; | |
30298 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 ); | |
30299 | if (!SWIG_IsOK(res1)) { | |
0a27f394 | 30300 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'"); |
72ef6efb RD |
30301 | } |
30302 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
30303 | { | |
0a27f394 | 30304 | result = (wxGraphicsContext *)(arg1)->GetGraphicsContext(); |
72ef6efb RD |
30305 | if (PyErr_Occurred()) SWIG_fail; |
30306 | } | |
30307 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30308 | return resultobj; | |
30309 | fail: | |
30310 | return NULL; | |
30311 | } | |
30312 | ||
30313 | ||
0a27f394 RD |
30314 | SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
30315 | PyObject *resultobj = 0; | |
30316 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
30317 | wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ; | |
30318 | void *argp1 = 0 ; | |
30319 | int res1 = 0 ; | |
30320 | void *argp2 = 0 ; | |
30321 | int res2 = 0 ; | |
30322 | PyObject * obj0 = 0 ; | |
30323 | PyObject * obj1 = 0 ; | |
30324 | char * kwnames[] = { | |
30325 | (char *) "self",(char *) "ctx", NULL | |
30326 | }; | |
30327 | ||
30328 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail; | |
30329 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 ); | |
30330 | if (!SWIG_IsOK(res1)) { | |
30331 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'"); | |
30332 | } | |
30333 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
30334 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30335 | if (!SWIG_IsOK(res2)) { | |
30336 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'"); | |
30337 | } | |
30338 | arg2 = reinterpret_cast< wxGraphicsContext * >(argp2); | |
30339 | { | |
30340 | (arg1)->SetGraphicsContext(arg2); | |
30341 | if (PyErr_Occurred()) SWIG_fail; | |
30342 | } | |
30343 | resultobj = SWIG_Py_Void(); | |
30344 | return resultobj; | |
30345 | fail: | |
30346 | return NULL; | |
30347 | } | |
30348 | ||
30349 | ||
72ef6efb RD |
30350 | SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30351 | PyObject *obj; | |
30352 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30353 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj)); | |
30354 | return SWIG_Py_Void(); | |
30355 | } | |
30356 | ||
30357 | SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30358 | return SWIG_Python_InitShadowInstance(args); | |
30359 | } | |
30360 | ||
b39fe951 RD |
30361 | SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30362 | PyObject *resultobj = 0; | |
30363 | wxOverlay *result = 0 ; | |
30364 | ||
30365 | if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail; | |
30366 | { | |
30367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30368 | result = (wxOverlay *)new wxOverlay(); | |
30369 | wxPyEndAllowThreads(__tstate); | |
30370 | if (PyErr_Occurred()) SWIG_fail; | |
30371 | } | |
30372 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 ); | |
30373 | return resultobj; | |
30374 | fail: | |
30375 | return NULL; | |
30376 | } | |
30377 | ||
30378 | ||
30379 | SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30380 | PyObject *resultobj = 0; | |
30381 | wxOverlay *arg1 = (wxOverlay *) 0 ; | |
30382 | void *argp1 = 0 ; | |
30383 | int res1 = 0 ; | |
30384 | PyObject *swig_obj[1] ; | |
30385 | ||
30386 | if (!args) SWIG_fail; | |
30387 | swig_obj[0] = args; | |
30388 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 ); | |
30389 | if (!SWIG_IsOK(res1)) { | |
30390 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'"); | |
30391 | } | |
30392 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
30393 | { | |
30394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30395 | delete arg1; | |
30396 | ||
30397 | wxPyEndAllowThreads(__tstate); | |
30398 | if (PyErr_Occurred()) SWIG_fail; | |
30399 | } | |
30400 | resultobj = SWIG_Py_Void(); | |
30401 | return resultobj; | |
30402 | fail: | |
30403 | return NULL; | |
30404 | } | |
30405 | ||
30406 | ||
30407 | SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30408 | PyObject *resultobj = 0; | |
30409 | wxOverlay *arg1 = (wxOverlay *) 0 ; | |
30410 | void *argp1 = 0 ; | |
30411 | int res1 = 0 ; | |
30412 | PyObject *swig_obj[1] ; | |
30413 | ||
30414 | if (!args) SWIG_fail; | |
30415 | swig_obj[0] = args; | |
30416 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 ); | |
30417 | if (!SWIG_IsOK(res1)) { | |
30418 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'"); | |
30419 | } | |
30420 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
30421 | { | |
30422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30423 | (arg1)->Reset(); | |
30424 | wxPyEndAllowThreads(__tstate); | |
30425 | if (PyErr_Occurred()) SWIG_fail; | |
30426 | } | |
30427 | resultobj = SWIG_Py_Void(); | |
30428 | return resultobj; | |
30429 | fail: | |
30430 | return NULL; | |
30431 | } | |
30432 | ||
30433 | ||
30434 | SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30435 | PyObject *obj; | |
30436 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30437 | SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj)); | |
30438 | return SWIG_Py_Void(); | |
30439 | } | |
30440 | ||
30441 | SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30442 | return SWIG_Python_InitShadowInstance(args); | |
30443 | } | |
30444 | ||
30445 | SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
30446 | PyObject *resultobj = 0; | |
30447 | wxOverlay *arg1 = 0 ; | |
30448 | wxWindowDC *arg2 = (wxWindowDC *) 0 ; | |
30449 | int arg3 ; | |
30450 | int arg4 ; | |
30451 | int arg5 ; | |
30452 | int arg6 ; | |
30453 | wxDCOverlay *result = 0 ; | |
30454 | void *argp1 = 0 ; | |
30455 | int res1 = 0 ; | |
30456 | void *argp2 = 0 ; | |
30457 | int res2 = 0 ; | |
30458 | int val3 ; | |
30459 | int ecode3 = 0 ; | |
30460 | int val4 ; | |
30461 | int ecode4 = 0 ; | |
30462 | int val5 ; | |
30463 | int ecode5 = 0 ; | |
30464 | int val6 ; | |
30465 | int ecode6 = 0 ; | |
30466 | ||
30467 | if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; | |
30468 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 ); | |
30469 | if (!SWIG_IsOK(res1)) { | |
30470 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
30471 | } | |
30472 | if (!argp1) { | |
30473 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
30474 | } | |
30475 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
30476 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 ); | |
30477 | if (!SWIG_IsOK(res2)) { | |
30478 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'"); | |
30479 | } | |
30480 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
30481 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
30482 | if (!SWIG_IsOK(ecode3)) { | |
30483 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'"); | |
30484 | } | |
30485 | arg3 = static_cast< int >(val3); | |
30486 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
30487 | if (!SWIG_IsOK(ecode4)) { | |
30488 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'"); | |
30489 | } | |
30490 | arg4 = static_cast< int >(val4); | |
30491 | ecode5 = SWIG_AsVal_int(swig_obj[4], &val5); | |
30492 | if (!SWIG_IsOK(ecode5)) { | |
30493 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'"); | |
30494 | } | |
30495 | arg5 = static_cast< int >(val5); | |
30496 | ecode6 = SWIG_AsVal_int(swig_obj[5], &val6); | |
30497 | if (!SWIG_IsOK(ecode6)) { | |
30498 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'"); | |
30499 | } | |
30500 | arg6 = static_cast< int >(val6); | |
30501 | { | |
30502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30503 | result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6); | |
30504 | wxPyEndAllowThreads(__tstate); | |
30505 | if (PyErr_Occurred()) SWIG_fail; | |
30506 | } | |
30507 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 ); | |
30508 | return resultobj; | |
30509 | fail: | |
30510 | return NULL; | |
30511 | } | |
30512 | ||
30513 | ||
30514 | SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
30515 | PyObject *resultobj = 0; | |
30516 | wxOverlay *arg1 = 0 ; | |
30517 | wxWindowDC *arg2 = (wxWindowDC *) 0 ; | |
30518 | wxDCOverlay *result = 0 ; | |
30519 | void *argp1 = 0 ; | |
30520 | int res1 = 0 ; | |
30521 | void *argp2 = 0 ; | |
30522 | int res2 = 0 ; | |
30523 | ||
30524 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
30525 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 ); | |
30526 | if (!SWIG_IsOK(res1)) { | |
30527 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
30528 | } | |
30529 | if (!argp1) { | |
30530 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
30531 | } | |
30532 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
30533 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 ); | |
30534 | if (!SWIG_IsOK(res2)) { | |
30535 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'"); | |
30536 | } | |
30537 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
30538 | { | |
30539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30540 | result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2); | |
30541 | wxPyEndAllowThreads(__tstate); | |
30542 | if (PyErr_Occurred()) SWIG_fail; | |
30543 | } | |
30544 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 ); | |
30545 | return resultobj; | |
30546 | fail: | |
30547 | return NULL; | |
30548 | } | |
30549 | ||
30550 | ||
30551 | SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) { | |
30552 | int argc; | |
30553 | PyObject *argv[7]; | |
30554 | ||
30555 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail; | |
30556 | --argc; | |
30557 | if (argc == 2) { | |
30558 | return _wrap_new_DCOverlay__SWIG_1(self, argc, argv); | |
30559 | } | |
30560 | if (argc == 6) { | |
30561 | return _wrap_new_DCOverlay__SWIG_0(self, argc, argv); | |
30562 | } | |
30563 | ||
30564 | fail: | |
30565 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'"); | |
30566 | return NULL; | |
30567 | } | |
30568 | ||
30569 | ||
30570 | SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30571 | PyObject *resultobj = 0; | |
30572 | wxDCOverlay *arg1 = (wxDCOverlay *) 0 ; | |
30573 | void *argp1 = 0 ; | |
30574 | int res1 = 0 ; | |
30575 | PyObject *swig_obj[1] ; | |
30576 | ||
30577 | if (!args) SWIG_fail; | |
30578 | swig_obj[0] = args; | |
30579 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 ); | |
30580 | if (!SWIG_IsOK(res1)) { | |
30581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'"); | |
30582 | } | |
30583 | arg1 = reinterpret_cast< wxDCOverlay * >(argp1); | |
30584 | { | |
30585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30586 | delete arg1; | |
30587 | ||
30588 | wxPyEndAllowThreads(__tstate); | |
30589 | if (PyErr_Occurred()) SWIG_fail; | |
30590 | } | |
30591 | resultobj = SWIG_Py_Void(); | |
30592 | return resultobj; | |
30593 | fail: | |
30594 | return NULL; | |
30595 | } | |
30596 | ||
30597 | ||
30598 | SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30599 | PyObject *resultobj = 0; | |
30600 | wxDCOverlay *arg1 = (wxDCOverlay *) 0 ; | |
30601 | void *argp1 = 0 ; | |
30602 | int res1 = 0 ; | |
30603 | PyObject *swig_obj[1] ; | |
30604 | ||
30605 | if (!args) SWIG_fail; | |
30606 | swig_obj[0] = args; | |
30607 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 ); | |
30608 | if (!SWIG_IsOK(res1)) { | |
30609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'"); | |
30610 | } | |
30611 | arg1 = reinterpret_cast< wxDCOverlay * >(argp1); | |
30612 | { | |
30613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30614 | (arg1)->Clear(); | |
30615 | wxPyEndAllowThreads(__tstate); | |
30616 | if (PyErr_Occurred()) SWIG_fail; | |
30617 | } | |
30618 | resultobj = SWIG_Py_Void(); | |
30619 | return resultobj; | |
30620 | fail: | |
30621 | return NULL; | |
30622 | } | |
30623 | ||
30624 | ||
30625 | SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30626 | PyObject *obj; | |
30627 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30628 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj)); | |
30629 | return SWIG_Py_Void(); | |
30630 | } | |
30631 | ||
30632 | SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30633 | return SWIG_Python_InitShadowInstance(args); | |
30634 | } | |
30635 | ||
72ef6efb RD |
30636 | SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
30637 | PyObject *resultobj = 0; | |
30638 | int arg1 ; | |
30639 | int arg2 ; | |
30640 | int arg3 = (int) true ; | |
30641 | int arg4 = (int) 1 ; | |
30642 | wxImageList *result = 0 ; | |
30643 | int val1 ; | |
30644 | int ecode1 = 0 ; | |
30645 | int val2 ; | |
30646 | int ecode2 = 0 ; | |
30647 | int val3 ; | |
30648 | int ecode3 = 0 ; | |
30649 | int val4 ; | |
30650 | int ecode4 = 0 ; | |
30651 | PyObject * obj0 = 0 ; | |
30652 | PyObject * obj1 = 0 ; | |
30653 | PyObject * obj2 = 0 ; | |
30654 | PyObject * obj3 = 0 ; | |
30655 | char * kwnames[] = { | |
30656 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
30657 | }; | |
30658 | ||
30659 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
30660 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
30661 | if (!SWIG_IsOK(ecode1)) { | |
30662 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'"); | |
30663 | } | |
30664 | arg1 = static_cast< int >(val1); | |
30665 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30666 | if (!SWIG_IsOK(ecode2)) { | |
30667 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'"); | |
30668 | } | |
30669 | arg2 = static_cast< int >(val2); | |
30670 | if (obj2) { | |
30671 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
30672 | if (!SWIG_IsOK(ecode3)) { | |
30673 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'"); | |
30674 | } | |
30675 | arg3 = static_cast< int >(val3); | |
30676 | } | |
30677 | if (obj3) { | |
30678 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
30679 | if (!SWIG_IsOK(ecode4)) { | |
30680 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'"); | |
30681 | } | |
30682 | arg4 = static_cast< int >(val4); | |
30683 | } | |
30684 | { | |
30685 | if (!wxPyCheckForApp()) SWIG_fail; | |
30686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30687 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
30688 | wxPyEndAllowThreads(__tstate); | |
30689 | if (PyErr_Occurred()) SWIG_fail; | |
30690 | } | |
e02c0a13 | 30691 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 ); |
72ef6efb RD |
30692 | return resultobj; |
30693 | fail: | |
30694 | return NULL; | |
30695 | } | |
30696 | ||
30697 | ||
30698 | SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30699 | PyObject *resultobj = 0; | |
30700 | wxImageList *arg1 = (wxImageList *) 0 ; | |
30701 | void *argp1 = 0 ; | |
30702 | int res1 = 0 ; | |
30703 | PyObject *swig_obj[1] ; | |
30704 | ||
30705 | if (!args) SWIG_fail; | |
30706 | swig_obj[0] = args; | |
30707 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
30708 | if (!SWIG_IsOK(res1)) { | |
30709 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
30710 | } | |
30711 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
30712 | { | |
30713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30714 | delete arg1; | |
30715 | ||
30716 | wxPyEndAllowThreads(__tstate); | |
30717 | if (PyErr_Occurred()) SWIG_fail; | |
30718 | } | |
30719 | resultobj = SWIG_Py_Void(); | |
30720 | return resultobj; | |
30721 | fail: | |
30722 | return NULL; | |
30723 | } | |
30724 | ||
30725 | ||
30726 | SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30727 | PyObject *resultobj = 0; | |
30728 | wxImageList *arg1 = (wxImageList *) 0 ; | |
30729 | wxBitmap *arg2 = 0 ; | |
30730 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
30731 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
30732 | int result; | |
30733 | void *argp1 = 0 ; | |
30734 | int res1 = 0 ; | |
30735 | void *argp2 = 0 ; | |
30736 | int res2 = 0 ; | |
30737 | void *argp3 = 0 ; | |
30738 | int res3 = 0 ; | |
30739 | PyObject * obj0 = 0 ; | |
30740 | PyObject * obj1 = 0 ; | |
30741 | PyObject * obj2 = 0 ; | |
30742 | char * kwnames[] = { | |
30743 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
30744 | }; | |
30745 | ||
30746 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30747 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
30748 | if (!SWIG_IsOK(res1)) { | |
30749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
30750 | } | |
30751 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
30752 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
30753 | if (!SWIG_IsOK(res2)) { | |
30754 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
30755 | } | |
30756 | if (!argp2) { | |
30757 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
30758 | } | |
30759 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
30760 | if (obj2) { | |
30761 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
30762 | if (!SWIG_IsOK(res3)) { | |
30763 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
30764 | } | |
30765 | if (!argp3) { | |
30766 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
30767 | } | |
30768 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
30769 | } | |
30770 | { | |
30771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30772 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
30773 | wxPyEndAllowThreads(__tstate); | |
30774 | if (PyErr_Occurred()) SWIG_fail; | |
30775 | } | |
30776 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30777 | return resultobj; | |
30778 | fail: | |
30779 | return NULL; | |
30780 | } | |
30781 | ||
30782 | ||
30783 | SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30784 | PyObject *resultobj = 0; | |
30785 | wxImageList *arg1 = (wxImageList *) 0 ; | |
30786 | wxBitmap *arg2 = 0 ; | |
30787 | wxColour *arg3 = 0 ; | |
30788 | int result; | |
30789 | void *argp1 = 0 ; | |
30790 | int res1 = 0 ; | |
30791 | void *argp2 = 0 ; | |
30792 | int res2 = 0 ; | |
30793 | wxColour temp3 ; | |
30794 | PyObject * obj0 = 0 ; | |
30795 | PyObject * obj1 = 0 ; | |
30796 | PyObject * obj2 = 0 ; | |
30797 | char * kwnames[] = { | |
30798 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
30799 | }; | |
30800 | ||
30801 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) 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_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
30805 | } | |
30806 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
30807 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
30808 | if (!SWIG_IsOK(res2)) { | |
30809 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
30810 | } | |
30811 | if (!argp2) { | |
30812 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
30813 | } | |
30814 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
30815 | { | |
30816 | arg3 = &temp3; | |
30817 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
30818 | } | |
30819 | { | |
30820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30821 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
30822 | wxPyEndAllowThreads(__tstate); | |
30823 | if (PyErr_Occurred()) SWIG_fail; | |
30824 | } | |
30825 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30826 | return resultobj; | |
30827 | fail: | |
30828 | return NULL; | |
30829 | } | |
30830 | ||
30831 | ||
30832 | SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30833 | PyObject *resultobj = 0; | |
30834 | wxImageList *arg1 = (wxImageList *) 0 ; | |
30835 | wxIcon *arg2 = 0 ; | |
30836 | int result; | |
30837 | void *argp1 = 0 ; | |
30838 | int res1 = 0 ; | |
30839 | void *argp2 = 0 ; | |
30840 | int res2 = 0 ; | |
30841 | PyObject * obj0 = 0 ; | |
30842 | PyObject * obj1 = 0 ; | |
30843 | char * kwnames[] = { | |
30844 | (char *) "self",(char *) "icon", NULL | |
30845 | }; | |
30846 | ||
30847 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
30848 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
30849 | if (!SWIG_IsOK(res1)) { | |
30850 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
30851 | } | |
0085ce49 RD |
30852 | arg1 = reinterpret_cast< wxImageList * >(argp1); |
30853 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
30854 | if (!SWIG_IsOK(res2)) { | |
30855 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
30856 | } | |
30857 | if (!argp2) { | |
30858 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
30859 | } | |
30860 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
30861 | { | |
30862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30863 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
30864 | wxPyEndAllowThreads(__tstate); | |
30865 | if (PyErr_Occurred()) SWIG_fail; | |
30866 | } | |
30867 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30868 | return resultobj; | |
30869 | fail: | |
30870 | return NULL; | |
30871 | } | |
30872 | ||
30873 | ||
30874 | SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30875 | PyObject *resultobj = 0; | |
30876 | wxImageList *arg1 = (wxImageList *) 0 ; | |
30877 | int arg2 ; | |
30878 | SwigValueWrapper<wxBitmap > result; | |
30879 | void *argp1 = 0 ; | |
30880 | int res1 = 0 ; | |
30881 | int val2 ; | |
30882 | int ecode2 = 0 ; | |
30883 | PyObject * obj0 = 0 ; | |
30884 | PyObject * obj1 = 0 ; | |
30885 | char * kwnames[] = { | |
30886 | (char *) "self",(char *) "index", NULL | |
30887 | }; | |
30888 | ||
30889 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
30890 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
30891 | if (!SWIG_IsOK(res1)) { | |
30892 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
30893 | } | |
30894 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
30895 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30896 | if (!SWIG_IsOK(ecode2)) { | |
30897 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'"); | |
30898 | } | |
30899 | arg2 = static_cast< int >(val2); | |
30900 | { | |
30901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30902 | result = ((wxImageList const *)arg1)->GetBitmap(arg2); | |
30903 | wxPyEndAllowThreads(__tstate); | |
30904 | if (PyErr_Occurred()) SWIG_fail; | |
30905 | } | |
30906 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
30907 | return resultobj; | |
30908 | fail: | |
30909 | return NULL; | |
30910 | } | |
30911 | ||
30912 | ||
30913 | SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30914 | PyObject *resultobj = 0; | |
30915 | wxImageList *arg1 = (wxImageList *) 0 ; | |
30916 | int arg2 ; | |
30917 | wxIcon result; | |
30918 | void *argp1 = 0 ; | |
30919 | int res1 = 0 ; | |
30920 | int val2 ; | |
30921 | int ecode2 = 0 ; | |
30922 | PyObject * obj0 = 0 ; | |
30923 | PyObject * obj1 = 0 ; | |
30924 | char * kwnames[] = { | |
30925 | (char *) "self",(char *) "index", NULL | |
30926 | }; | |
30927 | ||
30928 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
30929 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
30930 | if (!SWIG_IsOK(res1)) { | |
30931 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
30932 | } | |
30933 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
30934 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30935 | if (!SWIG_IsOK(ecode2)) { | |
30936 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'"); | |
30937 | } | |
30938 | arg2 = static_cast< int >(val2); | |
30939 | { | |
30940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30941 | result = ((wxImageList const *)arg1)->GetIcon(arg2); | |
30942 | wxPyEndAllowThreads(__tstate); | |
30943 | if (PyErr_Occurred()) SWIG_fail; | |
30944 | } | |
30945 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
30946 | return resultobj; | |
30947 | fail: | |
30948 | return NULL; | |
30949 | } | |
30950 | ||
30951 | ||
30952 | SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30953 | PyObject *resultobj = 0; | |
30954 | wxImageList *arg1 = (wxImageList *) 0 ; | |
30955 | int arg2 ; | |
30956 | wxBitmap *arg3 = 0 ; | |
01f6b6d3 RD |
30957 | wxBitmap const &arg4_defvalue = wxNullBitmap ; |
30958 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
0085ce49 RD |
30959 | bool result; |
30960 | void *argp1 = 0 ; | |
30961 | int res1 = 0 ; | |
30962 | int val2 ; | |
30963 | int ecode2 = 0 ; | |
30964 | void *argp3 = 0 ; | |
30965 | int res3 = 0 ; | |
01f6b6d3 RD |
30966 | void *argp4 = 0 ; |
30967 | int res4 = 0 ; | |
0085ce49 RD |
30968 | PyObject * obj0 = 0 ; |
30969 | PyObject * obj1 = 0 ; | |
30970 | PyObject * obj2 = 0 ; | |
01f6b6d3 | 30971 | PyObject * obj3 = 0 ; |
0085ce49 | 30972 | char * kwnames[] = { |
01f6b6d3 | 30973 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL |
0085ce49 RD |
30974 | }; |
30975 | ||
01f6b6d3 | 30976 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
0085ce49 RD |
30977 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); |
30978 | if (!SWIG_IsOK(res1)) { | |
30979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
30980 | } | |
30981 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
30982 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30983 | if (!SWIG_IsOK(ecode2)) { | |
30984 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'"); | |
30985 | } | |
30986 | arg2 = static_cast< int >(val2); | |
30987 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
30988 | if (!SWIG_IsOK(res3)) { | |
30989 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
30990 | } | |
30991 | if (!argp3) { | |
30992 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
30993 | } | |
30994 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
01f6b6d3 RD |
30995 | if (obj3) { |
30996 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
30997 | if (!SWIG_IsOK(res4)) { | |
30998 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
30999 | } | |
31000 | if (!argp4) { | |
31001 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
31002 | } | |
31003 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
31004 | } | |
0085ce49 RD |
31005 | { |
31006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
01f6b6d3 | 31007 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); |
0085ce49 RD |
31008 | wxPyEndAllowThreads(__tstate); |
31009 | if (PyErr_Occurred()) SWIG_fail; | |
31010 | } | |
31011 | { | |
31012 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31013 | } | |
31014 | return resultobj; | |
31015 | fail: | |
31016 | return NULL; | |
31017 | } | |
31018 | ||
31019 | ||
31020 | SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31021 | PyObject *resultobj = 0; | |
31022 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31023 | int arg2 ; | |
31024 | wxDC *arg3 = 0 ; | |
31025 | int arg4 ; | |
31026 | int arg5 ; | |
31027 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
31028 | bool arg7 = (bool) (bool)false ; | |
31029 | bool result; | |
31030 | void *argp1 = 0 ; | |
31031 | int res1 = 0 ; | |
31032 | int val2 ; | |
31033 | int ecode2 = 0 ; | |
31034 | void *argp3 = 0 ; | |
31035 | int res3 = 0 ; | |
31036 | int val4 ; | |
31037 | int ecode4 = 0 ; | |
31038 | int val5 ; | |
31039 | int ecode5 = 0 ; | |
31040 | int val6 ; | |
31041 | int ecode6 = 0 ; | |
31042 | bool val7 ; | |
31043 | int ecode7 = 0 ; | |
31044 | PyObject * obj0 = 0 ; | |
31045 | PyObject * obj1 = 0 ; | |
31046 | PyObject * obj2 = 0 ; | |
31047 | PyObject * obj3 = 0 ; | |
31048 | PyObject * obj4 = 0 ; | |
31049 | PyObject * obj5 = 0 ; | |
31050 | PyObject * obj6 = 0 ; | |
31051 | char * kwnames[] = { | |
31052 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
31053 | }; | |
31054 | ||
31055 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
31056 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31057 | if (!SWIG_IsOK(res1)) { | |
31058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31059 | } | |
31060 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31061 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31062 | if (!SWIG_IsOK(ecode2)) { | |
31063 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'"); | |
31064 | } | |
31065 | arg2 = static_cast< int >(val2); | |
31066 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
31067 | if (!SWIG_IsOK(res3)) { | |
31068 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31069 | } | |
31070 | if (!argp3) { | |
31071 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31072 | } | |
31073 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
31074 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31075 | if (!SWIG_IsOK(ecode4)) { | |
31076 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'"); | |
31077 | } | |
31078 | arg4 = static_cast< int >(val4); | |
31079 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
31080 | if (!SWIG_IsOK(ecode5)) { | |
31081 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'"); | |
31082 | } | |
31083 | arg5 = static_cast< int >(val5); | |
31084 | if (obj5) { | |
31085 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
31086 | if (!SWIG_IsOK(ecode6)) { | |
31087 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'"); | |
31088 | } | |
31089 | arg6 = static_cast< int >(val6); | |
31090 | } | |
31091 | if (obj6) { | |
31092 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
31093 | if (!SWIG_IsOK(ecode7)) { | |
31094 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'"); | |
31095 | } | |
31096 | arg7 = static_cast< bool >(val7); | |
31097 | } | |
31098 | { | |
31099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31100 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
31101 | wxPyEndAllowThreads(__tstate); | |
31102 | if (PyErr_Occurred()) SWIG_fail; | |
31103 | } | |
31104 | { | |
31105 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31106 | } | |
31107 | return resultobj; | |
31108 | fail: | |
31109 | return NULL; | |
31110 | } | |
31111 | ||
31112 | ||
31113 | SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31114 | PyObject *resultobj = 0; | |
31115 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31116 | int result; | |
31117 | void *argp1 = 0 ; | |
31118 | int res1 = 0 ; | |
31119 | PyObject *swig_obj[1] ; | |
31120 | ||
31121 | if (!args) SWIG_fail; | |
31122 | swig_obj[0] = args; | |
31123 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31124 | if (!SWIG_IsOK(res1)) { | |
31125 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31126 | } | |
31127 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31128 | { | |
31129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31130 | result = (int)(arg1)->GetImageCount(); | |
31131 | wxPyEndAllowThreads(__tstate); | |
31132 | if (PyErr_Occurred()) SWIG_fail; | |
31133 | } | |
31134 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
31135 | return resultobj; | |
31136 | fail: | |
31137 | return NULL; | |
31138 | } | |
31139 | ||
31140 | ||
31141 | SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31142 | PyObject *resultobj = 0; | |
31143 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31144 | int arg2 ; | |
31145 | bool result; | |
31146 | void *argp1 = 0 ; | |
31147 | int res1 = 0 ; | |
31148 | int val2 ; | |
31149 | int ecode2 = 0 ; | |
31150 | PyObject * obj0 = 0 ; | |
31151 | PyObject * obj1 = 0 ; | |
31152 | char * kwnames[] = { | |
31153 | (char *) "self",(char *) "index", NULL | |
31154 | }; | |
31155 | ||
31156 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail; | |
31157 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31158 | if (!SWIG_IsOK(res1)) { | |
31159 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31160 | } | |
31161 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31162 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31163 | if (!SWIG_IsOK(ecode2)) { | |
31164 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'"); | |
31165 | } | |
31166 | arg2 = static_cast< int >(val2); | |
31167 | { | |
31168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31169 | result = (bool)(arg1)->Remove(arg2); | |
31170 | wxPyEndAllowThreads(__tstate); | |
31171 | if (PyErr_Occurred()) SWIG_fail; | |
31172 | } | |
31173 | { | |
31174 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31175 | } | |
31176 | return resultobj; | |
31177 | fail: | |
31178 | return NULL; | |
31179 | } | |
31180 | ||
31181 | ||
31182 | SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31183 | PyObject *resultobj = 0; | |
31184 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31185 | bool result; | |
31186 | void *argp1 = 0 ; | |
31187 | int res1 = 0 ; | |
31188 | PyObject *swig_obj[1] ; | |
31189 | ||
31190 | if (!args) SWIG_fail; | |
31191 | swig_obj[0] = args; | |
31192 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31193 | if (!SWIG_IsOK(res1)) { | |
31194 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31195 | } | |
31196 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31197 | { | |
31198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31199 | result = (bool)(arg1)->RemoveAll(); | |
31200 | wxPyEndAllowThreads(__tstate); | |
31201 | if (PyErr_Occurred()) SWIG_fail; | |
31202 | } | |
31203 | { | |
31204 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31205 | } | |
31206 | return resultobj; | |
31207 | fail: | |
31208 | return NULL; | |
31209 | } | |
31210 | ||
31211 | ||
31212 | SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31213 | PyObject *resultobj = 0; | |
31214 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31215 | int arg2 ; | |
31216 | int *arg3 = 0 ; | |
31217 | int *arg4 = 0 ; | |
31218 | void *argp1 = 0 ; | |
31219 | int res1 = 0 ; | |
31220 | int val2 ; | |
31221 | int ecode2 = 0 ; | |
31222 | int temp3 ; | |
31223 | int res3 = SWIG_TMPOBJ ; | |
31224 | int temp4 ; | |
31225 | int res4 = SWIG_TMPOBJ ; | |
31226 | PyObject * obj0 = 0 ; | |
31227 | PyObject * obj1 = 0 ; | |
31228 | char * kwnames[] = { | |
31229 | (char *) "self",(char *) "index", NULL | |
31230 | }; | |
31231 | ||
31232 | arg3 = &temp3; | |
31233 | arg4 = &temp4; | |
31234 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
31235 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31236 | if (!SWIG_IsOK(res1)) { | |
31237 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31238 | } | |
31239 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31240 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31241 | if (!SWIG_IsOK(ecode2)) { | |
31242 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'"); | |
31243 | } | |
31244 | arg2 = static_cast< int >(val2); | |
31245 | { | |
31246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31247 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
31248 | wxPyEndAllowThreads(__tstate); | |
31249 | if (PyErr_Occurred()) SWIG_fail; | |
31250 | } | |
31251 | resultobj = SWIG_Py_Void(); | |
31252 | if (SWIG_IsTmpObj(res3)) { | |
31253 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
31254 | } else { | |
31255 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
31256 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
31257 | } | |
31258 | if (SWIG_IsTmpObj(res4)) { | |
31259 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
31260 | } else { | |
31261 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
31262 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
31263 | } | |
31264 | return resultobj; | |
31265 | fail: | |
31266 | return NULL; | |
31267 | } | |
31268 | ||
31269 | ||
31270 | SWIGINTERN PyObject *ImageList_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_wxImageList, SWIG_NewClientData(obj)); | |
31274 | return SWIG_Py_Void(); | |
31275 | } | |
31276 | ||
31277 | SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31278 | return SWIG_Python_InitShadowInstance(args); | |
31279 | } | |
31280 | ||
50efceee RD |
31281 | SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31282 | PyObject *resultobj = 0; | |
31283 | wxStockGDI *result = 0 ; | |
0085ce49 | 31284 | |
50efceee RD |
31285 | if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail; |
31286 | { | |
31287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31288 | result = (wxStockGDI *)new wxStockGDI(); | |
31289 | wxPyEndAllowThreads(__tstate); | |
31290 | if (PyErr_Occurred()) SWIG_fail; | |
31291 | } | |
31292 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 ); | |
31293 | return resultobj; | |
31294 | fail: | |
31295 | return NULL; | |
0085ce49 RD |
31296 | } |
31297 | ||
31298 | ||
50efceee RD |
31299 | SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31300 | PyObject *resultobj = 0; | |
31301 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
31302 | void *argp1 = 0 ; | |
31303 | int res1 = 0 ; | |
31304 | PyObject *swig_obj[1] ; | |
0085ce49 | 31305 | |
50efceee RD |
31306 | if (!args) SWIG_fail; |
31307 | swig_obj[0] = args; | |
31308 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 ); | |
31309 | if (!SWIG_IsOK(res1)) { | |
31310 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
31311 | } | |
31312 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
31313 | { | |
31314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31315 | delete arg1; | |
31316 | ||
31317 | wxPyEndAllowThreads(__tstate); | |
31318 | if (PyErr_Occurred()) SWIG_fail; | |
31319 | } | |
31320 | resultobj = SWIG_Py_Void(); | |
31321 | return resultobj; | |
31322 | fail: | |
31323 | return NULL; | |
0085ce49 RD |
31324 | } |
31325 | ||
31326 | ||
50efceee RD |
31327 | SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31328 | PyObject *resultobj = 0; | |
0085ce49 | 31329 | |
50efceee RD |
31330 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail; |
31331 | { | |
31332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31333 | wxStockGDI::DeleteAll(); | |
31334 | wxPyEndAllowThreads(__tstate); | |
31335 | if (PyErr_Occurred()) SWIG_fail; | |
31336 | } | |
31337 | resultobj = SWIG_Py_Void(); | |
31338 | return resultobj; | |
31339 | fail: | |
31340 | return NULL; | |
0085ce49 RD |
31341 | } |
31342 | ||
31343 | ||
50efceee RD |
31344 | SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31345 | PyObject *resultobj = 0; | |
31346 | wxStockGDI *result = 0 ; | |
0085ce49 | 31347 | |
50efceee RD |
31348 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail; |
31349 | { | |
31350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31351 | { | |
31352 | wxStockGDI &_result_ref = wxStockGDI::instance(); | |
31353 | result = (wxStockGDI *) &_result_ref; | |
31354 | } | |
31355 | wxPyEndAllowThreads(__tstate); | |
31356 | if (PyErr_Occurred()) SWIG_fail; | |
31357 | } | |
31358 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
31359 | return resultobj; | |
31360 | fail: | |
31361 | return NULL; | |
0085ce49 RD |
31362 | } |
31363 | ||
31364 | ||
50efceee RD |
31365 | SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31366 | PyObject *resultobj = 0; | |
31367 | wxStockGDI::Item arg1 ; | |
31368 | wxBrush *result = 0 ; | |
31369 | int val1 ; | |
31370 | int ecode1 = 0 ; | |
31371 | PyObject * obj0 = 0 ; | |
31372 | char * kwnames[] = { | |
31373 | (char *) "item", NULL | |
31374 | }; | |
31375 | ||
31376 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail; | |
31377 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31378 | if (!SWIG_IsOK(ecode1)) { | |
31379 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
31380 | } | |
31381 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
31382 | { | |
31383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31384 | result = (wxBrush *)wxStockGDI::GetBrush(arg1); | |
31385 | wxPyEndAllowThreads(__tstate); | |
31386 | if (PyErr_Occurred()) SWIG_fail; | |
31387 | } | |
31388 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
31389 | return resultobj; | |
31390 | fail: | |
31391 | return NULL; | |
0085ce49 RD |
31392 | } |
31393 | ||
31394 | ||
50efceee RD |
31395 | SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31396 | PyObject *resultobj = 0; | |
31397 | wxStockGDI::Item arg1 ; | |
31398 | wxColour *result = 0 ; | |
31399 | int val1 ; | |
31400 | int ecode1 = 0 ; | |
31401 | PyObject * obj0 = 0 ; | |
31402 | char * kwnames[] = { | |
31403 | (char *) "item", NULL | |
31404 | }; | |
0085ce49 | 31405 | |
50efceee RD |
31406 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail; |
31407 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31408 | if (!SWIG_IsOK(ecode1)) { | |
31409 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
31410 | } | |
31411 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
31412 | { | |
31413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31414 | result = (wxColour *)wxStockGDI::GetColour(arg1); | |
31415 | wxPyEndAllowThreads(__tstate); | |
31416 | if (PyErr_Occurred()) SWIG_fail; | |
31417 | } | |
31418 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
31419 | return resultobj; | |
31420 | fail: | |
31421 | return NULL; | |
0085ce49 RD |
31422 | } |
31423 | ||
31424 | ||
50efceee RD |
31425 | SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31426 | PyObject *resultobj = 0; | |
31427 | wxStockGDI::Item arg1 ; | |
31428 | wxCursor *result = 0 ; | |
31429 | int val1 ; | |
31430 | int ecode1 = 0 ; | |
31431 | PyObject * obj0 = 0 ; | |
31432 | char * kwnames[] = { | |
31433 | (char *) "item", NULL | |
31434 | }; | |
31435 | ||
31436 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail; | |
31437 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31438 | if (!SWIG_IsOK(ecode1)) { | |
31439 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
31440 | } | |
31441 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
31442 | { | |
31443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31444 | result = (wxCursor *)wxStockGDI::GetCursor(arg1); | |
31445 | wxPyEndAllowThreads(__tstate); | |
31446 | if (PyErr_Occurred()) SWIG_fail; | |
31447 | } | |
31448 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 ); | |
31449 | return resultobj; | |
31450 | fail: | |
31451 | return NULL; | |
0085ce49 RD |
31452 | } |
31453 | ||
31454 | ||
50efceee RD |
31455 | SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31456 | PyObject *resultobj = 0; | |
31457 | wxStockGDI::Item arg1 ; | |
31458 | wxPen *result = 0 ; | |
31459 | int val1 ; | |
31460 | int ecode1 = 0 ; | |
31461 | PyObject * obj0 = 0 ; | |
31462 | char * kwnames[] = { | |
31463 | (char *) "item", NULL | |
31464 | }; | |
31465 | ||
31466 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail; | |
31467 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31468 | if (!SWIG_IsOK(ecode1)) { | |
31469 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
31470 | } | |
31471 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
31472 | { | |
31473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31474 | result = (wxPen *)wxStockGDI::GetPen(arg1); | |
31475 | wxPyEndAllowThreads(__tstate); | |
31476 | if (PyErr_Occurred()) SWIG_fail; | |
31477 | } | |
31478 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
31479 | return resultobj; | |
31480 | fail: | |
31481 | return NULL; | |
0085ce49 RD |
31482 | } |
31483 | ||
31484 | ||
50efceee RD |
31485 | SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31486 | PyObject *resultobj = 0; | |
31487 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
31488 | wxStockGDI::Item arg2 ; | |
31489 | wxFont *result = 0 ; | |
31490 | void *argp1 = 0 ; | |
31491 | int res1 = 0 ; | |
31492 | int val2 ; | |
31493 | int ecode2 = 0 ; | |
31494 | PyObject * obj0 = 0 ; | |
31495 | PyObject * obj1 = 0 ; | |
31496 | char * kwnames[] = { | |
31497 | (char *) "self",(char *) "item", NULL | |
31498 | }; | |
0085ce49 | 31499 | |
50efceee RD |
31500 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail; |
31501 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
31502 | if (!SWIG_IsOK(res1)) { | |
31503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
31504 | } | |
31505 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
31506 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31507 | if (!SWIG_IsOK(ecode2)) { | |
31508 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'"); | |
31509 | } | |
31510 | arg2 = static_cast< wxStockGDI::Item >(val2); | |
31511 | { | |
31512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31513 | result = (wxFont *)(arg1)->GetFont(arg2); | |
31514 | wxPyEndAllowThreads(__tstate); | |
31515 | if (PyErr_Occurred()) SWIG_fail; | |
31516 | } | |
31517 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
31518 | return resultobj; | |
31519 | fail: | |
31520 | return NULL; | |
0085ce49 RD |
31521 | } |
31522 | ||
31523 | ||
50efceee RD |
31524 | SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31525 | PyObject *obj; | |
31526 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31527 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj)); | |
31528 | return SWIG_Py_Void(); | |
0085ce49 RD |
31529 | } |
31530 | ||
50efceee RD |
31531 | SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31532 | return SWIG_Python_InitShadowInstance(args); | |
0085ce49 RD |
31533 | } |
31534 | ||
0085ce49 RD |
31535 | SWIGINTERN int NullBitmap_set(PyObject *) { |
31536 | SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only."); | |
31537 | return 1; | |
31538 | } | |
31539 | ||
31540 | ||
31541 | SWIGINTERN PyObject *NullBitmap_get(void) { | |
31542 | PyObject *pyobj = 0; | |
31543 | ||
31544 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 ); | |
31545 | return pyobj; | |
31546 | } | |
31547 | ||
31548 | ||
31549 | SWIGINTERN int NullIcon_set(PyObject *) { | |
31550 | SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only."); | |
31551 | return 1; | |
31552 | } | |
31553 | ||
31554 | ||
31555 | SWIGINTERN PyObject *NullIcon_get(void) { | |
31556 | PyObject *pyobj = 0; | |
31557 | ||
31558 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 ); | |
31559 | return pyobj; | |
31560 | } | |
31561 | ||
31562 | ||
31563 | SWIGINTERN int NullCursor_set(PyObject *) { | |
31564 | SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only."); | |
31565 | return 1; | |
31566 | } | |
31567 | ||
31568 | ||
31569 | SWIGINTERN PyObject *NullCursor_get(void) { | |
31570 | PyObject *pyobj = 0; | |
31571 | ||
31572 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 ); | |
31573 | return pyobj; | |
31574 | } | |
31575 | ||
31576 | ||
31577 | SWIGINTERN int NullPen_set(PyObject *) { | |
31578 | SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only."); | |
31579 | return 1; | |
31580 | } | |
31581 | ||
31582 | ||
31583 | SWIGINTERN PyObject *NullPen_get(void) { | |
31584 | PyObject *pyobj = 0; | |
31585 | ||
31586 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 ); | |
31587 | return pyobj; | |
31588 | } | |
31589 | ||
31590 | ||
31591 | SWIGINTERN int NullBrush_set(PyObject *) { | |
31592 | SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only."); | |
31593 | return 1; | |
31594 | } | |
31595 | ||
31596 | ||
31597 | SWIGINTERN PyObject *NullBrush_get(void) { | |
31598 | PyObject *pyobj = 0; | |
31599 | ||
31600 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 ); | |
31601 | return pyobj; | |
31602 | } | |
31603 | ||
31604 | ||
31605 | SWIGINTERN int NullPalette_set(PyObject *) { | |
31606 | SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only."); | |
31607 | return 1; | |
31608 | } | |
31609 | ||
31610 | ||
31611 | SWIGINTERN PyObject *NullPalette_get(void) { | |
31612 | PyObject *pyobj = 0; | |
31613 | ||
31614 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 ); | |
31615 | return pyobj; | |
31616 | } | |
31617 | ||
31618 | ||
31619 | SWIGINTERN int NullFont_set(PyObject *) { | |
31620 | SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only."); | |
31621 | return 1; | |
31622 | } | |
31623 | ||
31624 | ||
31625 | SWIGINTERN PyObject *NullFont_get(void) { | |
31626 | PyObject *pyobj = 0; | |
31627 | ||
31628 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 ); | |
31629 | return pyobj; | |
31630 | } | |
31631 | ||
31632 | ||
31633 | SWIGINTERN int NullColour_set(PyObject *) { | |
31634 | SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only."); | |
31635 | return 1; | |
31636 | } | |
31637 | ||
31638 | ||
31639 | SWIGINTERN PyObject *NullColour_get(void) { | |
31640 | PyObject *pyobj = 0; | |
31641 | ||
31642 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 ); | |
31643 | return pyobj; | |
31644 | } | |
31645 | ||
31646 | ||
50efceee | 31647 | SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 31648 | PyObject *resultobj = 0; |
50efceee RD |
31649 | wxGDIObjListBase *result = 0 ; |
31650 | ||
31651 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail; | |
31652 | { | |
31653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31654 | result = (wxGDIObjListBase *)new wxGDIObjListBase(); | |
31655 | wxPyEndAllowThreads(__tstate); | |
31656 | if (PyErr_Occurred()) SWIG_fail; | |
31657 | } | |
31658 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 ); | |
31659 | return resultobj; | |
31660 | fail: | |
31661 | return NULL; | |
31662 | } | |
31663 | ||
31664 | ||
31665 | SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31666 | PyObject *resultobj = 0; | |
31667 | wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ; | |
0085ce49 RD |
31668 | void *argp1 = 0 ; |
31669 | int res1 = 0 ; | |
50efceee | 31670 | PyObject *swig_obj[1] ; |
0085ce49 | 31671 | |
50efceee RD |
31672 | if (!args) SWIG_fail; |
31673 | swig_obj[0] = args; | |
31674 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 ); | |
0085ce49 | 31675 | if (!SWIG_IsOK(res1)) { |
50efceee | 31676 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'"); |
0085ce49 | 31677 | } |
50efceee | 31678 | arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1); |
0085ce49 RD |
31679 | { |
31680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee RD |
31681 | delete arg1; |
31682 | ||
0085ce49 RD |
31683 | wxPyEndAllowThreads(__tstate); |
31684 | if (PyErr_Occurred()) SWIG_fail; | |
31685 | } | |
31686 | resultobj = SWIG_Py_Void(); | |
31687 | return resultobj; | |
31688 | fail: | |
31689 | return NULL; | |
31690 | } | |
31691 | ||
31692 | ||
50efceee RD |
31693 | SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31694 | PyObject *obj; | |
31695 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31696 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj)); | |
31697 | return SWIG_Py_Void(); | |
31698 | } | |
31699 | ||
31700 | SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31701 | return SWIG_Python_InitShadowInstance(args); | |
31702 | } | |
31703 | ||
0085ce49 RD |
31704 | SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31705 | PyObject *resultobj = 0; | |
31706 | wxPenList *arg1 = (wxPenList *) 0 ; | |
31707 | wxColour *arg2 = 0 ; | |
31708 | int arg3 ; | |
31709 | int arg4 ; | |
31710 | wxPen *result = 0 ; | |
31711 | void *argp1 = 0 ; | |
31712 | int res1 = 0 ; | |
31713 | wxColour temp2 ; | |
31714 | int val3 ; | |
31715 | int ecode3 = 0 ; | |
31716 | int val4 ; | |
31717 | int ecode4 = 0 ; | |
31718 | PyObject * obj0 = 0 ; | |
31719 | PyObject * obj1 = 0 ; | |
31720 | PyObject * obj2 = 0 ; | |
31721 | PyObject * obj3 = 0 ; | |
31722 | char * kwnames[] = { | |
31723 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
31724 | }; | |
31725 | ||
31726 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
31727 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
31728 | if (!SWIG_IsOK(res1)) { | |
31729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'"); | |
31730 | } | |
31731 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
31732 | { | |
31733 | arg2 = &temp2; | |
31734 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
31735 | } | |
31736 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31737 | if (!SWIG_IsOK(ecode3)) { | |
31738 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'"); | |
31739 | } | |
31740 | arg3 = static_cast< int >(val3); | |
31741 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31742 | if (!SWIG_IsOK(ecode4)) { | |
31743 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'"); | |
31744 | } | |
31745 | arg4 = static_cast< int >(val4); | |
31746 | { | |
31747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31748 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
31749 | wxPyEndAllowThreads(__tstate); | |
31750 | if (PyErr_Occurred()) SWIG_fail; | |
31751 | } | |
31752 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
31753 | return resultobj; | |
31754 | fail: | |
31755 | return NULL; | |
31756 | } | |
31757 | ||
31758 | ||
50efceee | 31759 | SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
31760 | PyObject *resultobj = 0; |
31761 | wxPenList *arg1 = (wxPenList *) 0 ; | |
31762 | wxPen *arg2 = (wxPen *) 0 ; | |
31763 | void *argp1 = 0 ; | |
31764 | int res1 = 0 ; | |
31765 | void *argp2 = 0 ; | |
31766 | int res2 = 0 ; | |
31767 | PyObject * obj0 = 0 ; | |
31768 | PyObject * obj1 = 0 ; | |
31769 | char * kwnames[] = { | |
31770 | (char *) "self",(char *) "pen", NULL | |
31771 | }; | |
31772 | ||
50efceee | 31773 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail; |
0085ce49 RD |
31774 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); |
31775 | if (!SWIG_IsOK(res1)) { | |
50efceee | 31776 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'"); |
0085ce49 RD |
31777 | } |
31778 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
31779 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
31780 | if (!SWIG_IsOK(res2)) { | |
50efceee | 31781 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'"); |
0085ce49 RD |
31782 | } |
31783 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
31784 | { | |
31785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 31786 | (arg1)->AddPen(arg2); |
0085ce49 RD |
31787 | wxPyEndAllowThreads(__tstate); |
31788 | if (PyErr_Occurred()) SWIG_fail; | |
31789 | } | |
31790 | resultobj = SWIG_Py_Void(); | |
31791 | return resultobj; | |
31792 | fail: | |
31793 | return NULL; | |
31794 | } | |
31795 | ||
31796 | ||
50efceee | 31797 | SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
31798 | PyObject *resultobj = 0; |
31799 | wxPenList *arg1 = (wxPenList *) 0 ; | |
50efceee | 31800 | wxPen *arg2 = (wxPen *) 0 ; |
0085ce49 RD |
31801 | void *argp1 = 0 ; |
31802 | int res1 = 0 ; | |
50efceee RD |
31803 | void *argp2 = 0 ; |
31804 | int res2 = 0 ; | |
31805 | PyObject * obj0 = 0 ; | |
31806 | PyObject * obj1 = 0 ; | |
31807 | char * kwnames[] = { | |
31808 | (char *) "self",(char *) "pen", NULL | |
31809 | }; | |
0085ce49 | 31810 | |
50efceee RD |
31811 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail; |
31812 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
0085ce49 | 31813 | if (!SWIG_IsOK(res1)) { |
50efceee | 31814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'"); |
0085ce49 RD |
31815 | } |
31816 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
50efceee RD |
31817 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); |
31818 | if (!SWIG_IsOK(res2)) { | |
31819 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'"); | |
31820 | } | |
31821 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
0085ce49 RD |
31822 | { |
31823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 31824 | (arg1)->RemovePen(arg2); |
0085ce49 RD |
31825 | wxPyEndAllowThreads(__tstate); |
31826 | if (PyErr_Occurred()) SWIG_fail; | |
31827 | } | |
50efceee | 31828 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
31829 | return resultobj; |
31830 | fail: | |
31831 | return NULL; | |
31832 | } | |
31833 | ||
31834 | ||
31835 | SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31836 | PyObject *obj; | |
31837 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31838 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj)); | |
31839 | return SWIG_Py_Void(); | |
31840 | } | |
31841 | ||
50efceee RD |
31842 | SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31843 | PyObject *resultobj = 0; | |
31844 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
31845 | wxColour *arg2 = 0 ; | |
31846 | int arg3 = (int) wxSOLID ; | |
31847 | wxBrush *result = 0 ; | |
31848 | void *argp1 = 0 ; | |
31849 | int res1 = 0 ; | |
31850 | wxColour temp2 ; | |
31851 | int val3 ; | |
31852 | int ecode3 = 0 ; | |
31853 | PyObject * obj0 = 0 ; | |
31854 | PyObject * obj1 = 0 ; | |
31855 | PyObject * obj2 = 0 ; | |
31856 | char * kwnames[] = { | |
31857 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
31858 | }; | |
31859 | ||
31860 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31861 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
31862 | if (!SWIG_IsOK(res1)) { | |
31863 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
31864 | } | |
31865 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
31866 | { | |
31867 | arg2 = &temp2; | |
31868 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
31869 | } | |
31870 | if (obj2) { | |
31871 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31872 | if (!SWIG_IsOK(ecode3)) { | |
31873 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'"); | |
31874 | } | |
31875 | arg3 = static_cast< int >(val3); | |
31876 | } | |
31877 | { | |
31878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31879 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
31880 | wxPyEndAllowThreads(__tstate); | |
31881 | if (PyErr_Occurred()) SWIG_fail; | |
31882 | } | |
31883 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
31884 | return resultobj; | |
31885 | fail: | |
31886 | return NULL; | |
31887 | } | |
31888 | ||
31889 | ||
0085ce49 RD |
31890 | SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31891 | PyObject *resultobj = 0; | |
31892 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
31893 | wxBrush *arg2 = (wxBrush *) 0 ; | |
31894 | void *argp1 = 0 ; | |
31895 | int res1 = 0 ; | |
31896 | void *argp2 = 0 ; | |
31897 | int res2 = 0 ; | |
31898 | PyObject * obj0 = 0 ; | |
31899 | PyObject * obj1 = 0 ; | |
31900 | char * kwnames[] = { | |
31901 | (char *) "self",(char *) "brush", NULL | |
31902 | }; | |
31903 | ||
31904 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
31905 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
31906 | if (!SWIG_IsOK(res1)) { | |
31907 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
31908 | } | |
31909 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
31910 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
31911 | if (!SWIG_IsOK(res2)) { | |
31912 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
31913 | } | |
31914 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
31915 | { | |
31916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31917 | (arg1)->AddBrush(arg2); | |
31918 | wxPyEndAllowThreads(__tstate); | |
31919 | if (PyErr_Occurred()) SWIG_fail; | |
31920 | } | |
31921 | resultobj = SWIG_Py_Void(); | |
31922 | return resultobj; | |
31923 | fail: | |
31924 | return NULL; | |
31925 | } | |
31926 | ||
31927 | ||
50efceee | 31928 | SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
31929 | PyObject *resultobj = 0; |
31930 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
50efceee | 31931 | wxBrush *arg2 = (wxBrush *) 0 ; |
0085ce49 RD |
31932 | void *argp1 = 0 ; |
31933 | int res1 = 0 ; | |
50efceee RD |
31934 | void *argp2 = 0 ; |
31935 | int res2 = 0 ; | |
31936 | PyObject * obj0 = 0 ; | |
31937 | PyObject * obj1 = 0 ; | |
31938 | char * kwnames[] = { | |
31939 | (char *) "self",(char *) "brush", NULL | |
31940 | }; | |
31941 | ||
31942 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
31943 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
31944 | if (!SWIG_IsOK(res1)) { | |
31945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
31946 | } | |
31947 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
31948 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
31949 | if (!SWIG_IsOK(res2)) { | |
31950 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
31951 | } | |
31952 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
31953 | { | |
31954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31955 | (arg1)->RemoveBrush(arg2); | |
31956 | wxPyEndAllowThreads(__tstate); | |
31957 | if (PyErr_Occurred()) SWIG_fail; | |
31958 | } | |
31959 | resultobj = SWIG_Py_Void(); | |
31960 | return resultobj; | |
31961 | fail: | |
31962 | return NULL; | |
31963 | } | |
31964 | ||
31965 | ||
31966 | SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31967 | PyObject *obj; | |
31968 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31969 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj)); | |
31970 | return SWIG_Py_Void(); | |
31971 | } | |
31972 | ||
31973 | SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31974 | PyObject *resultobj = 0; | |
31975 | wxFontList *arg1 = (wxFontList *) 0 ; | |
31976 | int arg2 ; | |
31977 | int arg3 ; | |
31978 | int arg4 ; | |
31979 | int arg5 ; | |
31980 | bool arg6 = (bool) false ; | |
31981 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
31982 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
31983 | wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
31984 | wxFont *result = 0 ; | |
31985 | void *argp1 = 0 ; | |
31986 | int res1 = 0 ; | |
31987 | int val2 ; | |
31988 | int ecode2 = 0 ; | |
0085ce49 RD |
31989 | int val3 ; |
31990 | int ecode3 = 0 ; | |
50efceee RD |
31991 | int val4 ; |
31992 | int ecode4 = 0 ; | |
31993 | int val5 ; | |
31994 | int ecode5 = 0 ; | |
31995 | bool val6 ; | |
31996 | int ecode6 = 0 ; | |
31997 | bool temp7 = false ; | |
31998 | int val8 ; | |
31999 | int ecode8 = 0 ; | |
0085ce49 RD |
32000 | PyObject * obj0 = 0 ; |
32001 | PyObject * obj1 = 0 ; | |
32002 | PyObject * obj2 = 0 ; | |
50efceee RD |
32003 | PyObject * obj3 = 0 ; |
32004 | PyObject * obj4 = 0 ; | |
32005 | PyObject * obj5 = 0 ; | |
32006 | PyObject * obj6 = 0 ; | |
32007 | PyObject * obj7 = 0 ; | |
0085ce49 | 32008 | char * kwnames[] = { |
50efceee | 32009 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL |
0085ce49 RD |
32010 | }; |
32011 | ||
50efceee RD |
32012 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
32013 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
0085ce49 | 32014 | if (!SWIG_IsOK(res1)) { |
50efceee | 32015 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
0085ce49 | 32016 | } |
50efceee RD |
32017 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
32018 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32019 | if (!SWIG_IsOK(ecode2)) { | |
32020 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'"); | |
32021 | } | |
32022 | arg2 = static_cast< int >(val2); | |
32023 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32024 | if (!SWIG_IsOK(ecode3)) { | |
32025 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'"); | |
32026 | } | |
32027 | arg3 = static_cast< int >(val3); | |
32028 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
32029 | if (!SWIG_IsOK(ecode4)) { | |
32030 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'"); | |
32031 | } | |
32032 | arg4 = static_cast< int >(val4); | |
32033 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
32034 | if (!SWIG_IsOK(ecode5)) { | |
32035 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'"); | |
32036 | } | |
32037 | arg5 = static_cast< int >(val5); | |
32038 | if (obj5) { | |
32039 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
32040 | if (!SWIG_IsOK(ecode6)) { | |
32041 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'"); | |
32042 | } | |
32043 | arg6 = static_cast< bool >(val6); | |
0085ce49 | 32044 | } |
50efceee RD |
32045 | if (obj6) { |
32046 | { | |
32047 | arg7 = wxString_in_helper(obj6); | |
32048 | if (arg7 == NULL) SWIG_fail; | |
32049 | temp7 = true; | |
32050 | } | |
32051 | } | |
32052 | if (obj7) { | |
32053 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
32054 | if (!SWIG_IsOK(ecode8)) { | |
32055 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'"); | |
0085ce49 | 32056 | } |
50efceee | 32057 | arg8 = static_cast< wxFontEncoding >(val8); |
0085ce49 RD |
32058 | } |
32059 | { | |
32060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32061 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8); |
0085ce49 RD |
32062 | wxPyEndAllowThreads(__tstate); |
32063 | if (PyErr_Occurred()) SWIG_fail; | |
32064 | } | |
50efceee RD |
32065 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); |
32066 | { | |
32067 | if (temp7) | |
32068 | delete arg7; | |
32069 | } | |
0085ce49 RD |
32070 | return resultobj; |
32071 | fail: | |
50efceee RD |
32072 | { |
32073 | if (temp7) | |
32074 | delete arg7; | |
32075 | } | |
0085ce49 RD |
32076 | return NULL; |
32077 | } | |
32078 | ||
32079 | ||
50efceee | 32080 | SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 32081 | PyObject *resultobj = 0; |
50efceee RD |
32082 | wxFontList *arg1 = (wxFontList *) 0 ; |
32083 | wxFont *arg2 = (wxFont *) 0 ; | |
0085ce49 RD |
32084 | void *argp1 = 0 ; |
32085 | int res1 = 0 ; | |
32086 | void *argp2 = 0 ; | |
32087 | int res2 = 0 ; | |
32088 | PyObject * obj0 = 0 ; | |
32089 | PyObject * obj1 = 0 ; | |
32090 | char * kwnames[] = { | |
50efceee | 32091 | (char *) "self",(char *) "font", NULL |
0085ce49 RD |
32092 | }; |
32093 | ||
50efceee RD |
32094 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail; |
32095 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
0085ce49 | 32096 | if (!SWIG_IsOK(res1)) { |
50efceee | 32097 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
0085ce49 | 32098 | } |
50efceee RD |
32099 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
32100 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
0085ce49 | 32101 | if (!SWIG_IsOK(res2)) { |
50efceee | 32102 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'"); |
0085ce49 | 32103 | } |
50efceee | 32104 | arg2 = reinterpret_cast< wxFont * >(argp2); |
0085ce49 RD |
32105 | { |
32106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32107 | (arg1)->AddFont(arg2); |
0085ce49 RD |
32108 | wxPyEndAllowThreads(__tstate); |
32109 | if (PyErr_Occurred()) SWIG_fail; | |
32110 | } | |
32111 | resultobj = SWIG_Py_Void(); | |
32112 | return resultobj; | |
32113 | fail: | |
32114 | return NULL; | |
32115 | } | |
32116 | ||
32117 | ||
50efceee | 32118 | SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 32119 | PyObject *resultobj = 0; |
50efceee RD |
32120 | wxFontList *arg1 = (wxFontList *) 0 ; |
32121 | wxFont *arg2 = (wxFont *) 0 ; | |
0085ce49 RD |
32122 | void *argp1 = 0 ; |
32123 | int res1 = 0 ; | |
50efceee RD |
32124 | void *argp2 = 0 ; |
32125 | int res2 = 0 ; | |
32126 | PyObject * obj0 = 0 ; | |
32127 | PyObject * obj1 = 0 ; | |
32128 | char * kwnames[] = { | |
32129 | (char *) "self",(char *) "font", NULL | |
32130 | }; | |
0085ce49 | 32131 | |
50efceee RD |
32132 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail; |
32133 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
0085ce49 | 32134 | if (!SWIG_IsOK(res1)) { |
50efceee | 32135 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
0085ce49 | 32136 | } |
50efceee RD |
32137 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
32138 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
32139 | if (!SWIG_IsOK(res2)) { | |
32140 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'"); | |
32141 | } | |
32142 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
0085ce49 RD |
32143 | { |
32144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32145 | (arg1)->RemoveFont(arg2); |
0085ce49 RD |
32146 | wxPyEndAllowThreads(__tstate); |
32147 | if (PyErr_Occurred()) SWIG_fail; | |
32148 | } | |
50efceee | 32149 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
32150 | return resultobj; |
32151 | fail: | |
32152 | return NULL; | |
32153 | } | |
32154 | ||
32155 | ||
50efceee | 32156 | SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
32157 | PyObject *obj; |
32158 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
50efceee | 32159 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj)); |
0085ce49 RD |
32160 | return SWIG_Py_Void(); |
32161 | } | |
32162 | ||
32163 | SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32164 | PyObject *resultobj = 0; | |
32165 | wxColourDatabase *result = 0 ; | |
32166 | ||
32167 | if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail; | |
32168 | { | |
32169 | if (!wxPyCheckForApp()) SWIG_fail; | |
32170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32171 | result = (wxColourDatabase *)new wxColourDatabase(); | |
32172 | wxPyEndAllowThreads(__tstate); | |
32173 | if (PyErr_Occurred()) SWIG_fail; | |
32174 | } | |
32175 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 ); | |
32176 | return resultobj; | |
32177 | fail: | |
32178 | return NULL; | |
32179 | } | |
32180 | ||
32181 | ||
32182 | SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32183 | PyObject *resultobj = 0; | |
32184 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32185 | void *argp1 = 0 ; | |
32186 | int res1 = 0 ; | |
32187 | PyObject *swig_obj[1] ; | |
32188 | ||
32189 | if (!args) SWIG_fail; | |
32190 | swig_obj[0] = args; | |
32191 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 ); | |
32192 | if (!SWIG_IsOK(res1)) { | |
32193 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
32194 | } | |
32195 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32196 | { | |
32197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32198 | delete arg1; | |
32199 | ||
32200 | wxPyEndAllowThreads(__tstate); | |
32201 | if (PyErr_Occurred()) SWIG_fail; | |
32202 | } | |
32203 | resultobj = SWIG_Py_Void(); | |
32204 | return resultobj; | |
32205 | fail: | |
32206 | return NULL; | |
32207 | } | |
32208 | ||
32209 | ||
32210 | SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32211 | PyObject *resultobj = 0; | |
32212 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32213 | wxString *arg2 = 0 ; | |
32214 | wxColour result; | |
32215 | void *argp1 = 0 ; | |
32216 | int res1 = 0 ; | |
32217 | bool temp2 = false ; | |
32218 | PyObject * obj0 = 0 ; | |
32219 | PyObject * obj1 = 0 ; | |
32220 | char * kwnames[] = { | |
32221 | (char *) "self",(char *) "name", NULL | |
32222 | }; | |
32223 | ||
32224 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail; | |
32225 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
32226 | if (!SWIG_IsOK(res1)) { | |
32227 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
32228 | } | |
32229 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32230 | { | |
32231 | arg2 = wxString_in_helper(obj1); | |
32232 | if (arg2 == NULL) SWIG_fail; | |
32233 | temp2 = true; | |
32234 | } | |
32235 | { | |
32236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32237 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
32238 | wxPyEndAllowThreads(__tstate); | |
32239 | if (PyErr_Occurred()) SWIG_fail; | |
32240 | } | |
32241 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32242 | { | |
32243 | if (temp2) | |
32244 | delete arg2; | |
32245 | } | |
32246 | return resultobj; | |
32247 | fail: | |
32248 | { | |
32249 | if (temp2) | |
32250 | delete arg2; | |
32251 | } | |
32252 | return NULL; | |
32253 | } | |
32254 | ||
32255 | ||
32256 | SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32257 | PyObject *resultobj = 0; | |
32258 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32259 | wxColour *arg2 = 0 ; | |
32260 | wxString result; | |
32261 | void *argp1 = 0 ; | |
32262 | int res1 = 0 ; | |
32263 | wxColour temp2 ; | |
32264 | PyObject * obj0 = 0 ; | |
32265 | PyObject * obj1 = 0 ; | |
32266 | char * kwnames[] = { | |
32267 | (char *) "self",(char *) "colour", NULL | |
32268 | }; | |
32269 | ||
32270 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail; | |
32271 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
32272 | if (!SWIG_IsOK(res1)) { | |
32273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
32274 | } | |
32275 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32276 | { | |
32277 | arg2 = &temp2; | |
32278 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32279 | } | |
32280 | { | |
32281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32282 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
32283 | wxPyEndAllowThreads(__tstate); | |
32284 | if (PyErr_Occurred()) SWIG_fail; | |
32285 | } | |
32286 | { | |
32287 | #if wxUSE_UNICODE | |
32288 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32289 | #else | |
32290 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32291 | #endif | |
32292 | } | |
32293 | return resultobj; | |
32294 | fail: | |
32295 | return NULL; | |
32296 | } | |
32297 | ||
32298 | ||
32299 | SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32300 | PyObject *resultobj = 0; | |
32301 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32302 | wxString *arg2 = 0 ; | |
32303 | wxColour *arg3 = 0 ; | |
32304 | void *argp1 = 0 ; | |
32305 | int res1 = 0 ; | |
32306 | bool temp2 = false ; | |
32307 | wxColour temp3 ; | |
32308 | PyObject * obj0 = 0 ; | |
32309 | PyObject * obj1 = 0 ; | |
32310 | PyObject * obj2 = 0 ; | |
32311 | char * kwnames[] = { | |
32312 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
32313 | }; | |
32314 | ||
32315 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32316 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
32317 | if (!SWIG_IsOK(res1)) { | |
32318 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
32319 | } | |
32320 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32321 | { | |
32322 | arg2 = wxString_in_helper(obj1); | |
32323 | if (arg2 == NULL) SWIG_fail; | |
32324 | temp2 = true; | |
32325 | } | |
32326 | { | |
32327 | arg3 = &temp3; | |
32328 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
32329 | } | |
32330 | { | |
32331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32332 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
32333 | wxPyEndAllowThreads(__tstate); | |
32334 | if (PyErr_Occurred()) SWIG_fail; | |
32335 | } | |
32336 | resultobj = SWIG_Py_Void(); | |
32337 | { | |
32338 | if (temp2) | |
32339 | delete arg2; | |
32340 | } | |
32341 | return resultobj; | |
32342 | fail: | |
32343 | { | |
32344 | if (temp2) | |
32345 | delete arg2; | |
32346 | } | |
32347 | return NULL; | |
32348 | } | |
32349 | ||
32350 | ||
32351 | SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32352 | PyObject *resultobj = 0; | |
32353 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32354 | wxString *arg2 = 0 ; | |
32355 | int arg3 ; | |
32356 | int arg4 ; | |
32357 | int arg5 ; | |
32358 | void *argp1 = 0 ; | |
32359 | int res1 = 0 ; | |
32360 | bool temp2 = false ; | |
32361 | int val3 ; | |
32362 | int ecode3 = 0 ; | |
32363 | int val4 ; | |
32364 | int ecode4 = 0 ; | |
50efceee RD |
32365 | int val5 ; |
32366 | int ecode5 = 0 ; | |
0085ce49 RD |
32367 | PyObject * obj0 = 0 ; |
32368 | PyObject * obj1 = 0 ; | |
32369 | PyObject * obj2 = 0 ; | |
32370 | PyObject * obj3 = 0 ; | |
32371 | PyObject * obj4 = 0 ; | |
0085ce49 | 32372 | char * kwnames[] = { |
50efceee | 32373 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL |
0085ce49 RD |
32374 | }; |
32375 | ||
50efceee RD |
32376 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
32377 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
0085ce49 | 32378 | if (!SWIG_IsOK(res1)) { |
50efceee RD |
32379 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); |
32380 | } | |
32381 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32382 | { | |
32383 | arg2 = wxString_in_helper(obj1); | |
32384 | if (arg2 == NULL) SWIG_fail; | |
32385 | temp2 = true; | |
0085ce49 | 32386 | } |
0085ce49 RD |
32387 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
32388 | if (!SWIG_IsOK(ecode3)) { | |
50efceee | 32389 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'"); |
0085ce49 RD |
32390 | } |
32391 | arg3 = static_cast< int >(val3); | |
32392 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
32393 | if (!SWIG_IsOK(ecode4)) { | |
50efceee | 32394 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'"); |
0085ce49 RD |
32395 | } |
32396 | arg4 = static_cast< int >(val4); | |
32397 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
32398 | if (!SWIG_IsOK(ecode5)) { | |
50efceee | 32399 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'"); |
0085ce49 RD |
32400 | } |
32401 | arg5 = static_cast< int >(val5); | |
0085ce49 RD |
32402 | { |
32403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32404 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); |
0085ce49 RD |
32405 | wxPyEndAllowThreads(__tstate); |
32406 | if (PyErr_Occurred()) SWIG_fail; | |
32407 | } | |
50efceee | 32408 | resultobj = SWIG_Py_Void(); |
0085ce49 | 32409 | { |
50efceee RD |
32410 | if (temp2) |
32411 | delete arg2; | |
0085ce49 RD |
32412 | } |
32413 | return resultobj; | |
32414 | fail: | |
32415 | { | |
50efceee RD |
32416 | if (temp2) |
32417 | delete arg2; | |
0085ce49 RD |
32418 | } |
32419 | return NULL; | |
32420 | } | |
32421 | ||
32422 | ||
50efceee RD |
32423 | SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32424 | PyObject *obj; | |
32425 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32426 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj)); | |
32427 | return SWIG_Py_Void(); | |
32428 | } | |
32429 | ||
32430 | SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32431 | return SWIG_Python_InitShadowInstance(args); | |
32432 | } | |
32433 | ||
32434 | SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
0085ce49 | 32435 | PyObject *resultobj = 0; |
50efceee | 32436 | wxFontList *result = 0 ; |
0085ce49 | 32437 | |
50efceee | 32438 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail; |
0085ce49 RD |
32439 | { |
32440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32441 | result = (wxFontList *)_wxPyInitTheFontList(); |
0085ce49 RD |
32442 | wxPyEndAllowThreads(__tstate); |
32443 | if (PyErr_Occurred()) SWIG_fail; | |
32444 | } | |
50efceee | 32445 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 ); |
0085ce49 RD |
32446 | return resultobj; |
32447 | fail: | |
32448 | return NULL; | |
32449 | } | |
32450 | ||
32451 | ||
50efceee | 32452 | SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 32453 | PyObject *resultobj = 0; |
50efceee | 32454 | wxPenList *result = 0 ; |
0085ce49 | 32455 | |
50efceee | 32456 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail; |
0085ce49 RD |
32457 | { |
32458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32459 | result = (wxPenList *)_wxPyInitThePenList(); |
0085ce49 RD |
32460 | wxPyEndAllowThreads(__tstate); |
32461 | if (PyErr_Occurred()) SWIG_fail; | |
32462 | } | |
50efceee | 32463 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 ); |
0085ce49 RD |
32464 | return resultobj; |
32465 | fail: | |
32466 | return NULL; | |
32467 | } | |
32468 | ||
32469 | ||
50efceee RD |
32470 | SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32471 | PyObject *resultobj = 0; | |
32472 | wxBrushList *result = 0 ; | |
0085ce49 | 32473 | |
50efceee RD |
32474 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail; |
32475 | { | |
32476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32477 | result = (wxBrushList *)_wxPyInitTheBrushList(); | |
32478 | wxPyEndAllowThreads(__tstate); | |
32479 | if (PyErr_Occurred()) SWIG_fail; | |
32480 | } | |
32481 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
32482 | return resultobj; | |
32483 | fail: | |
32484 | return NULL; | |
0085ce49 RD |
32485 | } |
32486 | ||
32487 | ||
50efceee RD |
32488 | SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32489 | PyObject *resultobj = 0; | |
32490 | wxColourDatabase *result = 0 ; | |
0085ce49 | 32491 | |
50efceee RD |
32492 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail; |
32493 | { | |
32494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32495 | result = (wxColourDatabase *)_wxPyInitTheColourDatabase(); | |
32496 | wxPyEndAllowThreads(__tstate); | |
32497 | if (PyErr_Occurred()) SWIG_fail; | |
32498 | } | |
32499 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
32500 | return resultobj; | |
32501 | fail: | |
32502 | return NULL; | |
0085ce49 RD |
32503 | } |
32504 | ||
32505 | ||
32506 | SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32507 | PyObject *resultobj = 0; | |
32508 | wxEffects *result = 0 ; | |
32509 | ||
32510 | if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail; | |
32511 | { | |
32512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32513 | result = (wxEffects *)new wxEffects(); | |
32514 | wxPyEndAllowThreads(__tstate); | |
32515 | if (PyErr_Occurred()) SWIG_fail; | |
32516 | } | |
32517 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 ); | |
32518 | return resultobj; | |
32519 | fail: | |
32520 | return NULL; | |
32521 | } | |
32522 | ||
32523 | ||
32524 | SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32525 | PyObject *resultobj = 0; | |
32526 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32527 | wxColour result; | |
32528 | void *argp1 = 0 ; | |
32529 | int res1 = 0 ; | |
32530 | PyObject *swig_obj[1] ; | |
32531 | ||
32532 | if (!args) SWIG_fail; | |
32533 | swig_obj[0] = args; | |
32534 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32535 | if (!SWIG_IsOK(res1)) { | |
32536 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
32537 | } | |
32538 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32539 | { | |
32540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32541 | result = ((wxEffects const *)arg1)->GetHighlightColour(); | |
32542 | wxPyEndAllowThreads(__tstate); | |
32543 | if (PyErr_Occurred()) SWIG_fail; | |
32544 | } | |
32545 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32546 | return resultobj; | |
32547 | fail: | |
32548 | return NULL; | |
32549 | } | |
32550 | ||
32551 | ||
32552 | SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32553 | PyObject *resultobj = 0; | |
32554 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32555 | wxColour result; | |
32556 | void *argp1 = 0 ; | |
32557 | int res1 = 0 ; | |
32558 | PyObject *swig_obj[1] ; | |
32559 | ||
32560 | if (!args) SWIG_fail; | |
32561 | swig_obj[0] = args; | |
32562 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32563 | if (!SWIG_IsOK(res1)) { | |
32564 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
32565 | } | |
32566 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32567 | { | |
32568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32569 | result = ((wxEffects const *)arg1)->GetLightShadow(); | |
32570 | wxPyEndAllowThreads(__tstate); | |
32571 | if (PyErr_Occurred()) SWIG_fail; | |
32572 | } | |
32573 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32574 | return resultobj; | |
32575 | fail: | |
32576 | return NULL; | |
32577 | } | |
32578 | ||
32579 | ||
32580 | SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32581 | PyObject *resultobj = 0; | |
32582 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32583 | wxColour result; | |
32584 | void *argp1 = 0 ; | |
32585 | int res1 = 0 ; | |
32586 | PyObject *swig_obj[1] ; | |
32587 | ||
32588 | if (!args) SWIG_fail; | |
32589 | swig_obj[0] = args; | |
32590 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32591 | if (!SWIG_IsOK(res1)) { | |
32592 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
32593 | } | |
32594 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32595 | { | |
32596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32597 | result = ((wxEffects const *)arg1)->GetFaceColour(); | |
32598 | wxPyEndAllowThreads(__tstate); | |
32599 | if (PyErr_Occurred()) SWIG_fail; | |
32600 | } | |
32601 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32602 | return resultobj; | |
32603 | fail: | |
32604 | return NULL; | |
32605 | } | |
32606 | ||
32607 | ||
32608 | SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32609 | PyObject *resultobj = 0; | |
32610 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32611 | wxColour result; | |
32612 | void *argp1 = 0 ; | |
32613 | int res1 = 0 ; | |
32614 | PyObject *swig_obj[1] ; | |
32615 | ||
32616 | if (!args) SWIG_fail; | |
32617 | swig_obj[0] = args; | |
32618 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32619 | if (!SWIG_IsOK(res1)) { | |
32620 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
32621 | } | |
32622 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32623 | { | |
32624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32625 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
32626 | wxPyEndAllowThreads(__tstate); | |
32627 | if (PyErr_Occurred()) SWIG_fail; | |
32628 | } | |
32629 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32630 | return resultobj; | |
32631 | fail: | |
32632 | return NULL; | |
32633 | } | |
32634 | ||
32635 | ||
32636 | SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32637 | PyObject *resultobj = 0; | |
32638 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32639 | wxColour result; | |
32640 | void *argp1 = 0 ; | |
32641 | int res1 = 0 ; | |
32642 | PyObject *swig_obj[1] ; | |
32643 | ||
32644 | if (!args) SWIG_fail; | |
32645 | swig_obj[0] = args; | |
32646 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32647 | if (!SWIG_IsOK(res1)) { | |
32648 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
32649 | } | |
32650 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32651 | { | |
32652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32653 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
32654 | wxPyEndAllowThreads(__tstate); | |
32655 | if (PyErr_Occurred()) SWIG_fail; | |
32656 | } | |
32657 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32658 | return resultobj; | |
32659 | fail: | |
32660 | return NULL; | |
32661 | } | |
32662 | ||
32663 | ||
32664 | SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32665 | PyObject *resultobj = 0; | |
32666 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32667 | wxColour *arg2 = 0 ; | |
32668 | void *argp1 = 0 ; | |
32669 | int res1 = 0 ; | |
32670 | wxColour temp2 ; | |
32671 | PyObject * obj0 = 0 ; | |
32672 | PyObject * obj1 = 0 ; | |
32673 | char * kwnames[] = { | |
32674 | (char *) "self",(char *) "c", NULL | |
32675 | }; | |
32676 | ||
32677 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
32678 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32679 | if (!SWIG_IsOK(res1)) { | |
32680 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
32681 | } | |
32682 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32683 | { | |
32684 | arg2 = &temp2; | |
32685 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32686 | } | |
32687 | { | |
32688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32689 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
32690 | wxPyEndAllowThreads(__tstate); | |
32691 | if (PyErr_Occurred()) SWIG_fail; | |
32692 | } | |
32693 | resultobj = SWIG_Py_Void(); | |
32694 | return resultobj; | |
32695 | fail: | |
32696 | return NULL; | |
32697 | } | |
32698 | ||
32699 | ||
32700 | SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32701 | PyObject *resultobj = 0; | |
32702 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32703 | wxColour *arg2 = 0 ; | |
32704 | void *argp1 = 0 ; | |
32705 | int res1 = 0 ; | |
32706 | wxColour temp2 ; | |
32707 | PyObject * obj0 = 0 ; | |
32708 | PyObject * obj1 = 0 ; | |
32709 | char * kwnames[] = { | |
32710 | (char *) "self",(char *) "c", NULL | |
32711 | }; | |
32712 | ||
32713 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
32714 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32715 | if (!SWIG_IsOK(res1)) { | |
32716 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
32717 | } | |
32718 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32719 | { | |
32720 | arg2 = &temp2; | |
32721 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32722 | } | |
32723 | { | |
32724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32725 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
32726 | wxPyEndAllowThreads(__tstate); | |
32727 | if (PyErr_Occurred()) SWIG_fail; | |
32728 | } | |
32729 | resultobj = SWIG_Py_Void(); | |
32730 | return resultobj; | |
32731 | fail: | |
32732 | return NULL; | |
32733 | } | |
32734 | ||
32735 | ||
32736 | SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32737 | PyObject *resultobj = 0; | |
32738 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32739 | wxColour *arg2 = 0 ; | |
32740 | void *argp1 = 0 ; | |
32741 | int res1 = 0 ; | |
32742 | wxColour temp2 ; | |
32743 | PyObject * obj0 = 0 ; | |
32744 | PyObject * obj1 = 0 ; | |
32745 | char * kwnames[] = { | |
32746 | (char *) "self",(char *) "c", NULL | |
32747 | }; | |
32748 | ||
32749 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
32750 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32751 | if (!SWIG_IsOK(res1)) { | |
32752 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
32753 | } | |
32754 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32755 | { | |
32756 | arg2 = &temp2; | |
32757 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32758 | } | |
32759 | { | |
32760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32761 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
32762 | wxPyEndAllowThreads(__tstate); | |
32763 | if (PyErr_Occurred()) SWIG_fail; | |
32764 | } | |
32765 | resultobj = SWIG_Py_Void(); | |
32766 | return resultobj; | |
32767 | fail: | |
32768 | return NULL; | |
32769 | } | |
32770 | ||
32771 | ||
32772 | SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32773 | PyObject *resultobj = 0; | |
32774 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32775 | wxColour *arg2 = 0 ; | |
32776 | void *argp1 = 0 ; | |
32777 | int res1 = 0 ; | |
32778 | wxColour temp2 ; | |
32779 | PyObject * obj0 = 0 ; | |
32780 | PyObject * obj1 = 0 ; | |
32781 | char * kwnames[] = { | |
32782 | (char *) "self",(char *) "c", NULL | |
32783 | }; | |
32784 | ||
32785 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
32786 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32787 | if (!SWIG_IsOK(res1)) { | |
32788 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
32789 | } | |
32790 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32791 | { | |
32792 | arg2 = &temp2; | |
32793 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32794 | } | |
32795 | { | |
32796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32797 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
32798 | wxPyEndAllowThreads(__tstate); | |
32799 | if (PyErr_Occurred()) SWIG_fail; | |
32800 | } | |
32801 | resultobj = SWIG_Py_Void(); | |
32802 | return resultobj; | |
32803 | fail: | |
32804 | return NULL; | |
32805 | } | |
32806 | ||
32807 | ||
32808 | SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32809 | PyObject *resultobj = 0; | |
32810 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32811 | wxColour *arg2 = 0 ; | |
32812 | void *argp1 = 0 ; | |
32813 | int res1 = 0 ; | |
32814 | wxColour temp2 ; | |
32815 | PyObject * obj0 = 0 ; | |
32816 | PyObject * obj1 = 0 ; | |
32817 | char * kwnames[] = { | |
32818 | (char *) "self",(char *) "c", NULL | |
32819 | }; | |
32820 | ||
32821 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
32822 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32823 | if (!SWIG_IsOK(res1)) { | |
32824 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
32825 | } | |
32826 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32827 | { | |
32828 | arg2 = &temp2; | |
32829 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32830 | } | |
32831 | { | |
32832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32833 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
32834 | wxPyEndAllowThreads(__tstate); | |
32835 | if (PyErr_Occurred()) SWIG_fail; | |
32836 | } | |
32837 | resultobj = SWIG_Py_Void(); | |
32838 | return resultobj; | |
32839 | fail: | |
32840 | return NULL; | |
32841 | } | |
32842 | ||
32843 | ||
32844 | SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32845 | PyObject *resultobj = 0; | |
32846 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32847 | wxColour *arg2 = 0 ; | |
32848 | wxColour *arg3 = 0 ; | |
32849 | wxColour *arg4 = 0 ; | |
32850 | wxColour *arg5 = 0 ; | |
32851 | wxColour *arg6 = 0 ; | |
32852 | void *argp1 = 0 ; | |
32853 | int res1 = 0 ; | |
32854 | wxColour temp2 ; | |
32855 | wxColour temp3 ; | |
32856 | wxColour temp4 ; | |
32857 | wxColour temp5 ; | |
32858 | wxColour temp6 ; | |
32859 | PyObject * obj0 = 0 ; | |
32860 | PyObject * obj1 = 0 ; | |
32861 | PyObject * obj2 = 0 ; | |
32862 | PyObject * obj3 = 0 ; | |
32863 | PyObject * obj4 = 0 ; | |
32864 | PyObject * obj5 = 0 ; | |
32865 | char * kwnames[] = { | |
32866 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
32867 | }; | |
32868 | ||
32869 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
32870 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32871 | if (!SWIG_IsOK(res1)) { | |
32872 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
32873 | } | |
32874 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32875 | { | |
32876 | arg2 = &temp2; | |
32877 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32878 | } | |
32879 | { | |
32880 | arg3 = &temp3; | |
32881 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
32882 | } | |
32883 | { | |
32884 | arg4 = &temp4; | |
32885 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
32886 | } | |
32887 | { | |
32888 | arg5 = &temp5; | |
32889 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
32890 | } | |
32891 | { | |
32892 | arg6 = &temp6; | |
32893 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
32894 | } | |
32895 | { | |
32896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32897 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
32898 | wxPyEndAllowThreads(__tstate); | |
32899 | if (PyErr_Occurred()) SWIG_fail; | |
32900 | } | |
32901 | resultobj = SWIG_Py_Void(); | |
32902 | return resultobj; | |
32903 | fail: | |
32904 | return NULL; | |
32905 | } | |
32906 | ||
32907 | ||
32908 | SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32909 | PyObject *resultobj = 0; | |
32910 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32911 | wxDC *arg2 = 0 ; | |
32912 | wxRect *arg3 = 0 ; | |
32913 | int arg4 = (int) 1 ; | |
32914 | void *argp1 = 0 ; | |
32915 | int res1 = 0 ; | |
32916 | void *argp2 = 0 ; | |
32917 | int res2 = 0 ; | |
32918 | wxRect temp3 ; | |
32919 | int val4 ; | |
32920 | int ecode4 = 0 ; | |
32921 | PyObject * obj0 = 0 ; | |
32922 | PyObject * obj1 = 0 ; | |
32923 | PyObject * obj2 = 0 ; | |
32924 | PyObject * obj3 = 0 ; | |
32925 | char * kwnames[] = { | |
32926 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
32927 | }; | |
32928 | ||
32929 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
32930 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32931 | if (!SWIG_IsOK(res1)) { | |
32932 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
32933 | } | |
32934 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32935 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
32936 | if (!SWIG_IsOK(res2)) { | |
32937 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
32938 | } | |
32939 | if (!argp2) { | |
32940 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
32941 | } | |
32942 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
32943 | { | |
32944 | arg3 = &temp3; | |
32945 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
32946 | } | |
32947 | if (obj3) { | |
32948 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
32949 | if (!SWIG_IsOK(ecode4)) { | |
32950 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'"); | |
32951 | } | |
32952 | arg4 = static_cast< int >(val4); | |
32953 | } | |
32954 | { | |
32955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32956 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
32957 | wxPyEndAllowThreads(__tstate); | |
32958 | if (PyErr_Occurred()) SWIG_fail; | |
32959 | } | |
32960 | resultobj = SWIG_Py_Void(); | |
32961 | return resultobj; | |
32962 | fail: | |
32963 | return NULL; | |
32964 | } | |
32965 | ||
32966 | ||
32967 | SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32968 | PyObject *resultobj = 0; | |
32969 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32970 | wxRect *arg2 = 0 ; | |
32971 | wxDC *arg3 = 0 ; | |
32972 | wxBitmap *arg4 = 0 ; | |
32973 | bool result; | |
32974 | void *argp1 = 0 ; | |
32975 | int res1 = 0 ; | |
32976 | wxRect temp2 ; | |
32977 | void *argp3 = 0 ; | |
32978 | int res3 = 0 ; | |
32979 | void *argp4 = 0 ; | |
32980 | int res4 = 0 ; | |
32981 | PyObject * obj0 = 0 ; | |
32982 | PyObject * obj1 = 0 ; | |
32983 | PyObject * obj2 = 0 ; | |
32984 | PyObject * obj3 = 0 ; | |
32985 | char * kwnames[] = { | |
32986 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
32987 | }; | |
32988 | ||
32989 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
32990 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32991 | if (!SWIG_IsOK(res1)) { | |
32992 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
32993 | } | |
32994 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32995 | { | |
32996 | arg2 = &temp2; | |
32997 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
32998 | } | |
32999 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
33000 | if (!SWIG_IsOK(res3)) { | |
33001 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
33002 | } | |
33003 | if (!argp3) { | |
33004 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
33005 | } | |
33006 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
33007 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 ); | |
33008 | if (!SWIG_IsOK(res4)) { | |
33009 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
33010 | } | |
33011 | if (!argp4) { | |
33012 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
33013 | } | |
33014 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
33015 | { | |
33016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33017 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
33018 | wxPyEndAllowThreads(__tstate); | |
33019 | if (PyErr_Occurred()) SWIG_fail; | |
33020 | } | |
33021 | { | |
33022 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33023 | } | |
33024 | return resultobj; | |
33025 | fail: | |
33026 | return NULL; | |
33027 | } | |
33028 | ||
33029 | ||
33030 | SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33031 | PyObject *obj; | |
33032 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33033 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj)); | |
33034 | return SWIG_Py_Void(); | |
33035 | } | |
33036 | ||
33037 | SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33038 | return SWIG_Python_InitShadowInstance(args); | |
33039 | } | |
33040 | ||
33041 | SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33042 | PyObject *resultobj = 0; | |
33043 | int arg1 ; | |
33044 | int arg2 ; | |
33045 | bool arg3 ; | |
33046 | wxSplitterRenderParams *result = 0 ; | |
33047 | int val1 ; | |
33048 | int ecode1 = 0 ; | |
33049 | int val2 ; | |
33050 | int ecode2 = 0 ; | |
33051 | bool val3 ; | |
33052 | int ecode3 = 0 ; | |
33053 | PyObject * obj0 = 0 ; | |
33054 | PyObject * obj1 = 0 ; | |
33055 | PyObject * obj2 = 0 ; | |
33056 | char * kwnames[] = { | |
33057 | (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL | |
33058 | }; | |
33059 | ||
33060 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
33061 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
33062 | if (!SWIG_IsOK(ecode1)) { | |
33063 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'"); | |
33064 | } | |
33065 | arg1 = static_cast< int >(val1); | |
33066 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33067 | if (!SWIG_IsOK(ecode2)) { | |
33068 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'"); | |
33069 | } | |
33070 | arg2 = static_cast< int >(val2); | |
33071 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
33072 | if (!SWIG_IsOK(ecode3)) { | |
33073 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'"); | |
33074 | } | |
33075 | arg3 = static_cast< bool >(val3); | |
33076 | { | |
33077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33078 | result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3); | |
33079 | wxPyEndAllowThreads(__tstate); | |
33080 | if (PyErr_Occurred()) SWIG_fail; | |
33081 | } | |
33082 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 ); | |
33083 | return resultobj; | |
33084 | fail: | |
33085 | return NULL; | |
33086 | } | |
33087 | ||
33088 | ||
33089 | SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33090 | PyObject *resultobj = 0; | |
33091 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
33092 | void *argp1 = 0 ; | |
33093 | int res1 = 0 ; | |
33094 | PyObject *swig_obj[1] ; | |
33095 | ||
33096 | if (!args) SWIG_fail; | |
33097 | swig_obj[0] = args; | |
33098 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 ); | |
33099 | if (!SWIG_IsOK(res1)) { | |
33100 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
33101 | } | |
33102 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
33103 | { | |
33104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33105 | delete arg1; | |
33106 | ||
33107 | wxPyEndAllowThreads(__tstate); | |
33108 | if (PyErr_Occurred()) SWIG_fail; | |
33109 | } | |
33110 | resultobj = SWIG_Py_Void(); | |
33111 | return resultobj; | |
33112 | fail: | |
33113 | return NULL; | |
33114 | } | |
33115 | ||
33116 | ||
33117 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33118 | PyObject *resultobj = 0; | |
33119 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
33120 | int result; | |
33121 | void *argp1 = 0 ; | |
33122 | int res1 = 0 ; | |
33123 | PyObject *swig_obj[1] ; | |
33124 | ||
33125 | if (!args) SWIG_fail; | |
33126 | swig_obj[0] = args; | |
33127 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
33128 | if (!SWIG_IsOK(res1)) { | |
33129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
33130 | } | |
33131 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
33132 | result = (int)(int) ((arg1)->widthSash); | |
33133 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33134 | return resultobj; | |
33135 | fail: | |
33136 | return NULL; | |
33137 | } | |
33138 | ||
33139 | ||
33140 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33141 | PyObject *resultobj = 0; | |
33142 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
33143 | int result; | |
33144 | void *argp1 = 0 ; | |
33145 | int res1 = 0 ; | |
33146 | PyObject *swig_obj[1] ; | |
33147 | ||
33148 | if (!args) SWIG_fail; | |
33149 | swig_obj[0] = args; | |
33150 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
33151 | if (!SWIG_IsOK(res1)) { | |
33152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
33153 | } | |
33154 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
33155 | result = (int)(int) ((arg1)->border); | |
33156 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33157 | return resultobj; | |
33158 | fail: | |
33159 | return NULL; | |
33160 | } | |
33161 | ||
33162 | ||
33163 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33164 | PyObject *resultobj = 0; | |
33165 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
33166 | bool result; | |
33167 | void *argp1 = 0 ; | |
33168 | int res1 = 0 ; | |
33169 | PyObject *swig_obj[1] ; | |
33170 | ||
33171 | if (!args) SWIG_fail; | |
33172 | swig_obj[0] = args; | |
33173 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
33174 | if (!SWIG_IsOK(res1)) { | |
33175 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
33176 | } | |
33177 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
33178 | result = (bool)(bool) ((arg1)->isHotSensitive); | |
33179 | resultobj = SWIG_From_bool(static_cast< bool >(result)); | |
33180 | return resultobj; | |
33181 | fail: | |
33182 | return NULL; | |
33183 | } | |
33184 | ||
33185 | ||
33186 | SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33187 | PyObject *obj; | |
33188 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33189 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj)); | |
33190 | return SWIG_Py_Void(); | |
33191 | } | |
33192 | ||
33193 | SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33194 | return SWIG_Python_InitShadowInstance(args); | |
33195 | } | |
33196 | ||
33d6fd3b RD |
33197 | SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33198 | PyObject *resultobj = 0; | |
33199 | wxHeaderButtonParams *result = 0 ; | |
33200 | ||
33201 | if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail; | |
33202 | { | |
33203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33204 | result = (wxHeaderButtonParams *)new wxHeaderButtonParams(); | |
33205 | wxPyEndAllowThreads(__tstate); | |
33206 | if (PyErr_Occurred()) SWIG_fail; | |
33207 | } | |
33208 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 ); | |
33209 | return resultobj; | |
33210 | fail: | |
33211 | return NULL; | |
33212 | } | |
33213 | ||
33214 | ||
33215 | SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33216 | PyObject *resultobj = 0; | |
33217 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33218 | void *argp1 = 0 ; | |
33219 | int res1 = 0 ; | |
33220 | PyObject *swig_obj[1] ; | |
33221 | ||
33222 | if (!args) SWIG_fail; | |
33223 | swig_obj[0] = args; | |
33224 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 ); | |
33225 | if (!SWIG_IsOK(res1)) { | |
33226 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33227 | } | |
33228 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33229 | { | |
33230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33231 | delete arg1; | |
33232 | ||
33233 | wxPyEndAllowThreads(__tstate); | |
33234 | if (PyErr_Occurred()) SWIG_fail; | |
33235 | } | |
33236 | resultobj = SWIG_Py_Void(); | |
33237 | return resultobj; | |
33238 | fail: | |
33239 | return NULL; | |
33240 | } | |
33241 | ||
33242 | ||
33243 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33244 | PyObject *resultobj = 0; | |
33245 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33246 | wxColour *arg2 = (wxColour *) 0 ; | |
33247 | void *argp1 = 0 ; | |
33248 | int res1 = 0 ; | |
33249 | wxColour temp2 ; | |
33250 | PyObject *swig_obj[2] ; | |
33251 | ||
33252 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail; | |
33253 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33254 | if (!SWIG_IsOK(res1)) { | |
33255 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33256 | } | |
33257 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33258 | { | |
33259 | arg2 = &temp2; | |
33260 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
33261 | } | |
33262 | if (arg1) (arg1)->m_arrowColour = *arg2; | |
33263 | ||
33264 | resultobj = SWIG_Py_Void(); | |
33265 | return resultobj; | |
33266 | fail: | |
33267 | return NULL; | |
33268 | } | |
33269 | ||
33270 | ||
33271 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33272 | PyObject *resultobj = 0; | |
33273 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33274 | wxColour *result = 0 ; | |
33275 | void *argp1 = 0 ; | |
33276 | int res1 = 0 ; | |
33277 | PyObject *swig_obj[1] ; | |
33278 | ||
33279 | if (!args) SWIG_fail; | |
33280 | swig_obj[0] = args; | |
33281 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33282 | if (!SWIG_IsOK(res1)) { | |
33283 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33284 | } | |
33285 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33286 | result = (wxColour *)& ((arg1)->m_arrowColour); | |
33287 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
33288 | return resultobj; | |
33289 | fail: | |
33290 | return NULL; | |
33291 | } | |
33292 | ||
33293 | ||
33294 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33295 | PyObject *resultobj = 0; | |
33296 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33297 | wxColour *arg2 = (wxColour *) 0 ; | |
33298 | void *argp1 = 0 ; | |
33299 | int res1 = 0 ; | |
33300 | wxColour temp2 ; | |
33301 | PyObject *swig_obj[2] ; | |
33302 | ||
33303 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail; | |
33304 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33305 | if (!SWIG_IsOK(res1)) { | |
33306 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33307 | } | |
33308 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33309 | { | |
33310 | arg2 = &temp2; | |
33311 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
33312 | } | |
33313 | if (arg1) (arg1)->m_selectionColour = *arg2; | |
33314 | ||
33315 | resultobj = SWIG_Py_Void(); | |
33316 | return resultobj; | |
33317 | fail: | |
33318 | return NULL; | |
33319 | } | |
33320 | ||
33321 | ||
33322 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33323 | PyObject *resultobj = 0; | |
33324 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33325 | wxColour *result = 0 ; | |
33326 | void *argp1 = 0 ; | |
33327 | int res1 = 0 ; | |
33328 | PyObject *swig_obj[1] ; | |
33329 | ||
33330 | if (!args) SWIG_fail; | |
33331 | swig_obj[0] = args; | |
33332 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33333 | if (!SWIG_IsOK(res1)) { | |
33334 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33335 | } | |
33336 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33337 | result = (wxColour *)& ((arg1)->m_selectionColour); | |
33338 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
33339 | return resultobj; | |
33340 | fail: | |
33341 | return NULL; | |
33342 | } | |
33343 | ||
33344 | ||
33345 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33346 | PyObject *resultobj = 0; | |
33347 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33348 | wxString *arg2 = (wxString *) 0 ; | |
33349 | void *argp1 = 0 ; | |
33350 | int res1 = 0 ; | |
33351 | bool temp2 = false ; | |
33352 | PyObject *swig_obj[2] ; | |
33353 | ||
33354 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail; | |
33355 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33356 | if (!SWIG_IsOK(res1)) { | |
33357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33358 | } | |
33359 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33360 | { | |
33361 | arg2 = wxString_in_helper(swig_obj[1]); | |
33362 | if (arg2 == NULL) SWIG_fail; | |
33363 | temp2 = true; | |
33364 | } | |
33365 | if (arg1) (arg1)->m_labelText = *arg2; | |
33366 | ||
33367 | resultobj = SWIG_Py_Void(); | |
33368 | { | |
33369 | if (temp2) | |
33370 | delete arg2; | |
33371 | } | |
33372 | return resultobj; | |
33373 | fail: | |
33374 | { | |
33375 | if (temp2) | |
33376 | delete arg2; | |
33377 | } | |
33378 | return NULL; | |
33379 | } | |
33380 | ||
33381 | ||
33382 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33383 | PyObject *resultobj = 0; | |
33384 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33385 | wxString *result = 0 ; | |
33386 | void *argp1 = 0 ; | |
33387 | int res1 = 0 ; | |
33388 | PyObject *swig_obj[1] ; | |
33389 | ||
33390 | if (!args) SWIG_fail; | |
33391 | swig_obj[0] = args; | |
33392 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33393 | if (!SWIG_IsOK(res1)) { | |
33394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33395 | } | |
33396 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33397 | result = (wxString *)& ((arg1)->m_labelText); | |
33398 | { | |
33399 | #if wxUSE_UNICODE | |
33400 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33401 | #else | |
33402 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33403 | #endif | |
33404 | } | |
33405 | return resultobj; | |
33406 | fail: | |
33407 | return NULL; | |
33408 | } | |
33409 | ||
33410 | ||
33411 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33412 | PyObject *resultobj = 0; | |
33413 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33414 | wxFont *arg2 = (wxFont *) 0 ; | |
33415 | void *argp1 = 0 ; | |
33416 | int res1 = 0 ; | |
33417 | void *argp2 = 0 ; | |
33418 | int res2 = 0 ; | |
33419 | PyObject *swig_obj[2] ; | |
33420 | ||
33421 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail; | |
33422 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33423 | if (!SWIG_IsOK(res1)) { | |
33424 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33425 | } | |
33426 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33427 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
33428 | if (!SWIG_IsOK(res2)) { | |
33429 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'"); | |
33430 | } | |
33431 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
33432 | if (arg1) (arg1)->m_labelFont = *arg2; | |
33433 | ||
33434 | resultobj = SWIG_Py_Void(); | |
33435 | return resultobj; | |
33436 | fail: | |
33437 | return NULL; | |
33438 | } | |
33439 | ||
33440 | ||
33441 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33442 | PyObject *resultobj = 0; | |
33443 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33444 | wxFont *result = 0 ; | |
33445 | void *argp1 = 0 ; | |
33446 | int res1 = 0 ; | |
33447 | PyObject *swig_obj[1] ; | |
33448 | ||
33449 | if (!args) SWIG_fail; | |
33450 | swig_obj[0] = args; | |
33451 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33452 | if (!SWIG_IsOK(res1)) { | |
33453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33454 | } | |
33455 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33456 | result = (wxFont *)& ((arg1)->m_labelFont); | |
33457 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
33458 | return resultobj; | |
33459 | fail: | |
33460 | return NULL; | |
33461 | } | |
33462 | ||
33463 | ||
33464 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33465 | PyObject *resultobj = 0; | |
33466 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33467 | wxColour *arg2 = (wxColour *) 0 ; | |
33468 | void *argp1 = 0 ; | |
33469 | int res1 = 0 ; | |
33470 | wxColour temp2 ; | |
33471 | PyObject *swig_obj[2] ; | |
33472 | ||
33473 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail; | |
33474 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33475 | if (!SWIG_IsOK(res1)) { | |
33476 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33477 | } | |
33478 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33479 | { | |
33480 | arg2 = &temp2; | |
33481 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
33482 | } | |
33483 | if (arg1) (arg1)->m_labelColour = *arg2; | |
33484 | ||
33485 | resultobj = SWIG_Py_Void(); | |
33486 | return resultobj; | |
33487 | fail: | |
33488 | return NULL; | |
33489 | } | |
33490 | ||
33491 | ||
33492 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33493 | PyObject *resultobj = 0; | |
33494 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33495 | wxColour *result = 0 ; | |
33496 | void *argp1 = 0 ; | |
33497 | int res1 = 0 ; | |
33498 | PyObject *swig_obj[1] ; | |
33499 | ||
33500 | if (!args) SWIG_fail; | |
33501 | swig_obj[0] = args; | |
33502 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33503 | if (!SWIG_IsOK(res1)) { | |
33504 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33505 | } | |
33506 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33507 | result = (wxColour *)& ((arg1)->m_labelColour); | |
33508 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
33509 | return resultobj; | |
33510 | fail: | |
33511 | return NULL; | |
33512 | } | |
33513 | ||
33514 | ||
33515 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33516 | PyObject *resultobj = 0; | |
33517 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33518 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
33519 | void *argp1 = 0 ; | |
33520 | int res1 = 0 ; | |
33521 | void *argp2 = 0 ; | |
33522 | int res2 = 0 ; | |
33523 | PyObject *swig_obj[2] ; | |
33524 | ||
33525 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail; | |
33526 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33527 | if (!SWIG_IsOK(res1)) { | |
33528 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33529 | } | |
33530 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33531 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
33532 | if (!SWIG_IsOK(res2)) { | |
33533 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'"); | |
33534 | } | |
33535 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
33536 | if (arg1) (arg1)->m_labelBitmap = *arg2; | |
33537 | ||
33538 | resultobj = SWIG_Py_Void(); | |
33539 | return resultobj; | |
33540 | fail: | |
33541 | return NULL; | |
33542 | } | |
33543 | ||
33544 | ||
33545 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33546 | PyObject *resultobj = 0; | |
33547 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33548 | wxBitmap *result = 0 ; | |
33549 | void *argp1 = 0 ; | |
33550 | int res1 = 0 ; | |
33551 | PyObject *swig_obj[1] ; | |
33552 | ||
33553 | if (!args) SWIG_fail; | |
33554 | swig_obj[0] = args; | |
33555 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33556 | if (!SWIG_IsOK(res1)) { | |
33557 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33558 | } | |
33559 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33560 | result = (wxBitmap *)& ((arg1)->m_labelBitmap); | |
33561 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
33562 | return resultobj; | |
33563 | fail: | |
33564 | return NULL; | |
33565 | } | |
33566 | ||
33567 | ||
33568 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33569 | PyObject *resultobj = 0; | |
33570 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33571 | int arg2 ; | |
33572 | void *argp1 = 0 ; | |
33573 | int res1 = 0 ; | |
33574 | int val2 ; | |
33575 | int ecode2 = 0 ; | |
33576 | PyObject *swig_obj[2] ; | |
33577 | ||
33578 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail; | |
33579 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33580 | if (!SWIG_IsOK(res1)) { | |
33581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33582 | } | |
33583 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33584 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
33585 | if (!SWIG_IsOK(ecode2)) { | |
33586 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'"); | |
33587 | } | |
33588 | arg2 = static_cast< int >(val2); | |
33589 | if (arg1) (arg1)->m_labelAlignment = arg2; | |
33590 | ||
33591 | resultobj = SWIG_Py_Void(); | |
33592 | return resultobj; | |
33593 | fail: | |
33594 | return NULL; | |
33595 | } | |
33596 | ||
33597 | ||
33598 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33599 | PyObject *resultobj = 0; | |
33600 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33601 | int result; | |
33602 | void *argp1 = 0 ; | |
33603 | int res1 = 0 ; | |
33604 | PyObject *swig_obj[1] ; | |
33605 | ||
33606 | if (!args) SWIG_fail; | |
33607 | swig_obj[0] = args; | |
33608 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33609 | if (!SWIG_IsOK(res1)) { | |
33610 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33611 | } | |
33612 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33613 | result = (int) ((arg1)->m_labelAlignment); | |
33614 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33615 | return resultobj; | |
33616 | fail: | |
33617 | return NULL; | |
33618 | } | |
33619 | ||
33620 | ||
33621 | SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33622 | PyObject *obj; | |
33623 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33624 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj)); | |
33625 | return SWIG_Py_Void(); | |
33626 | } | |
33627 | ||
33628 | SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33629 | return SWIG_Python_InitShadowInstance(args); | |
33630 | } | |
33631 | ||
0085ce49 RD |
33632 | SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
33633 | PyObject *resultobj = 0; | |
33634 | int arg1 ; | |
33635 | int arg2 ; | |
33636 | wxRendererVersion *result = 0 ; | |
33637 | int val1 ; | |
33638 | int ecode1 = 0 ; | |
33639 | int val2 ; | |
33640 | int ecode2 = 0 ; | |
33641 | PyObject * obj0 = 0 ; | |
33642 | PyObject * obj1 = 0 ; | |
33643 | char * kwnames[] = { | |
33644 | (char *) "version_",(char *) "age_", NULL | |
33645 | }; | |
33646 | ||
33647 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail; | |
33648 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
33649 | if (!SWIG_IsOK(ecode1)) { | |
33650 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'"); | |
33651 | } | |
33652 | arg1 = static_cast< int >(val1); | |
33653 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33654 | if (!SWIG_IsOK(ecode2)) { | |
33655 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'"); | |
33656 | } | |
33657 | arg2 = static_cast< int >(val2); | |
33658 | { | |
33659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33660 | result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2); | |
33661 | wxPyEndAllowThreads(__tstate); | |
33662 | if (PyErr_Occurred()) SWIG_fail; | |
33663 | } | |
33664 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 ); | |
33665 | return resultobj; | |
33666 | fail: | |
33667 | return NULL; | |
33668 | } | |
33669 | ||
33670 | ||
33671 | SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33672 | PyObject *resultobj = 0; | |
33673 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
33674 | void *argp1 = 0 ; | |
33675 | int res1 = 0 ; | |
33676 | PyObject *swig_obj[1] ; | |
33677 | ||
33678 | if (!args) SWIG_fail; | |
33679 | swig_obj[0] = args; | |
33680 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 ); | |
33681 | if (!SWIG_IsOK(res1)) { | |
33682 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
33683 | } | |
33684 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
33685 | { | |
33686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33687 | delete arg1; | |
33688 | ||
33689 | wxPyEndAllowThreads(__tstate); | |
33690 | if (PyErr_Occurred()) SWIG_fail; | |
33691 | } | |
33692 | resultobj = SWIG_Py_Void(); | |
33693 | return resultobj; | |
33694 | fail: | |
33695 | return NULL; | |
33696 | } | |
33697 | ||
33698 | ||
33699 | SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33700 | PyObject *resultobj = 0; | |
33701 | wxRendererVersion *arg1 = 0 ; | |
33702 | bool result; | |
33703 | void *argp1 = 0 ; | |
33704 | int res1 = 0 ; | |
33705 | PyObject * obj0 = 0 ; | |
33706 | char * kwnames[] = { | |
33707 | (char *) "ver", NULL | |
33708 | }; | |
33709 | ||
33710 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail; | |
33711 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0); | |
33712 | if (!SWIG_IsOK(res1)) { | |
33713 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
33714 | } | |
33715 | if (!argp1) { | |
33716 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
33717 | } | |
33718 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
33719 | { | |
33720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33721 | result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1); | |
33722 | wxPyEndAllowThreads(__tstate); | |
33723 | if (PyErr_Occurred()) SWIG_fail; | |
33724 | } | |
33725 | { | |
33726 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33727 | } | |
33728 | return resultobj; | |
33729 | fail: | |
33730 | return NULL; | |
33731 | } | |
33732 | ||
33733 | ||
33734 | SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33735 | PyObject *resultobj = 0; | |
33736 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
33737 | int result; | |
33738 | void *argp1 = 0 ; | |
33739 | int res1 = 0 ; | |
33740 | PyObject *swig_obj[1] ; | |
33741 | ||
33742 | if (!args) SWIG_fail; | |
33743 | swig_obj[0] = args; | |
33744 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
33745 | if (!SWIG_IsOK(res1)) { | |
33746 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
33747 | } | |
33748 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
33749 | result = (int)(int) ((arg1)->version); | |
33750 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33751 | return resultobj; | |
33752 | fail: | |
33753 | return NULL; | |
33754 | } | |
33755 | ||
33756 | ||
33757 | SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33758 | PyObject *resultobj = 0; | |
33759 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
33760 | int result; | |
33761 | void *argp1 = 0 ; | |
33762 | int res1 = 0 ; | |
33763 | PyObject *swig_obj[1] ; | |
33764 | ||
33765 | if (!args) SWIG_fail; | |
33766 | swig_obj[0] = args; | |
33767 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
33768 | if (!SWIG_IsOK(res1)) { | |
33769 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
33770 | } | |
33771 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
33772 | result = (int)(int) ((arg1)->age); | |
33773 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33774 | return resultobj; | |
33775 | fail: | |
33776 | return NULL; | |
33777 | } | |
33778 | ||
33779 | ||
33780 | SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33781 | PyObject *obj; | |
33782 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33783 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj)); | |
33784 | return SWIG_Py_Void(); | |
33785 | } | |
33786 | ||
33787 | SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33788 | return SWIG_Python_InitShadowInstance(args); | |
33789 | } | |
33790 | ||
33791 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33792 | PyObject *resultobj = 0; | |
33793 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
33794 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33795 | wxDC *arg3 = 0 ; | |
33796 | wxRect *arg4 = 0 ; | |
33797 | int arg5 = (int) 0 ; | |
33d6fd3b RD |
33798 | wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ; |
33799 | wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ; | |
0085ce49 RD |
33800 | void *argp1 = 0 ; |
33801 | int res1 = 0 ; | |
33802 | void *argp2 = 0 ; | |
33803 | int res2 = 0 ; | |
33804 | void *argp3 = 0 ; | |
33805 | int res3 = 0 ; | |
33806 | wxRect temp4 ; | |
33807 | int val5 ; | |
33808 | int ecode5 = 0 ; | |
33d6fd3b RD |
33809 | int val6 ; |
33810 | int ecode6 = 0 ; | |
33811 | void *argp7 = 0 ; | |
33812 | int res7 = 0 ; | |
0085ce49 RD |
33813 | PyObject * obj0 = 0 ; |
33814 | PyObject * obj1 = 0 ; | |
33815 | PyObject * obj2 = 0 ; | |
33816 | PyObject * obj3 = 0 ; | |
33817 | PyObject * obj4 = 0 ; | |
33d6fd3b RD |
33818 | PyObject * obj5 = 0 ; |
33819 | PyObject * obj6 = 0 ; | |
0085ce49 | 33820 | char * kwnames[] = { |
33d6fd3b | 33821 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL |
0085ce49 RD |
33822 | }; |
33823 | ||
33d6fd3b | 33824 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
0085ce49 RD |
33825 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); |
33826 | if (!SWIG_IsOK(res1)) { | |
33827 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
33828 | } | |
33829 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
33830 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
33831 | if (!SWIG_IsOK(res2)) { | |
33832 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
33833 | } | |
33834 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
33835 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
33836 | if (!SWIG_IsOK(res3)) { | |
33837 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
33838 | } | |
33839 | if (!argp3) { | |
33840 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
33841 | } | |
33842 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
33843 | { | |
33844 | arg4 = &temp4; | |
33845 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
33846 | } | |
33847 | if (obj4) { | |
33848 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
33849 | if (!SWIG_IsOK(ecode5)) { | |
33850 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'"); | |
33851 | } | |
33852 | arg5 = static_cast< int >(val5); | |
33853 | } | |
33d6fd3b RD |
33854 | if (obj5) { |
33855 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
33856 | if (!SWIG_IsOK(ecode6)) { | |
33857 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'"); | |
33858 | } | |
33859 | arg6 = static_cast< wxHeaderSortIconType >(val6); | |
33860 | } | |
33861 | if (obj6) { | |
33862 | res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33863 | if (!SWIG_IsOK(res7)) { | |
33864 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'"); | |
33865 | } | |
33866 | arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7); | |
33867 | } | |
33868 | { | |
33869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33870 | (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); | |
33871 | wxPyEndAllowThreads(__tstate); | |
33872 | if (PyErr_Occurred()) SWIG_fail; | |
33873 | } | |
33874 | resultobj = SWIG_Py_Void(); | |
33875 | return resultobj; | |
33876 | fail: | |
33877 | return NULL; | |
33878 | } | |
33879 | ||
33880 | ||
33881 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33882 | PyObject *resultobj = 0; | |
33883 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
33884 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33885 | wxDC *arg3 = 0 ; | |
33886 | wxRect *arg4 = 0 ; | |
33887 | int arg5 = (int) 0 ; | |
33888 | wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ; | |
33889 | wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ; | |
33890 | void *argp1 = 0 ; | |
33891 | int res1 = 0 ; | |
33892 | void *argp2 = 0 ; | |
33893 | int res2 = 0 ; | |
33894 | void *argp3 = 0 ; | |
33895 | int res3 = 0 ; | |
33896 | wxRect temp4 ; | |
33897 | int val5 ; | |
33898 | int ecode5 = 0 ; | |
33899 | int val6 ; | |
33900 | int ecode6 = 0 ; | |
33901 | void *argp7 = 0 ; | |
33902 | int res7 = 0 ; | |
33903 | PyObject * obj0 = 0 ; | |
33904 | PyObject * obj1 = 0 ; | |
33905 | PyObject * obj2 = 0 ; | |
33906 | PyObject * obj3 = 0 ; | |
33907 | PyObject * obj4 = 0 ; | |
33908 | PyObject * obj5 = 0 ; | |
33909 | PyObject * obj6 = 0 ; | |
33910 | char * kwnames[] = { | |
33911 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL | |
33912 | }; | |
33913 | ||
33914 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
33915 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
33916 | if (!SWIG_IsOK(res1)) { | |
33917 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
33918 | } | |
33919 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
33920 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
33921 | if (!SWIG_IsOK(res2)) { | |
33922 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
33923 | } | |
33924 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
33925 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
33926 | if (!SWIG_IsOK(res3)) { | |
33927 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'"); | |
33928 | } | |
33929 | if (!argp3) { | |
33930 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'"); | |
33931 | } | |
33932 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
33933 | { | |
33934 | arg4 = &temp4; | |
33935 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
33936 | } | |
33937 | if (obj4) { | |
33938 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
33939 | if (!SWIG_IsOK(ecode5)) { | |
33940 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'"); | |
33941 | } | |
33942 | arg5 = static_cast< int >(val5); | |
33943 | } | |
33944 | if (obj5) { | |
33945 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
33946 | if (!SWIG_IsOK(ecode6)) { | |
33947 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'"); | |
33948 | } | |
33949 | arg6 = static_cast< wxHeaderSortIconType >(val6); | |
33950 | } | |
33951 | if (obj6) { | |
33952 | res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33953 | if (!SWIG_IsOK(res7)) { | |
33954 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'"); | |
33955 | } | |
33956 | arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7); | |
33957 | } | |
0085ce49 RD |
33958 | { |
33959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33d6fd3b | 33960 | (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); |
0085ce49 RD |
33961 | wxPyEndAllowThreads(__tstate); |
33962 | if (PyErr_Occurred()) SWIG_fail; | |
33963 | } | |
33964 | resultobj = SWIG_Py_Void(); | |
33965 | return resultobj; | |
33966 | fail: | |
33967 | return NULL; | |
33968 | } | |
33969 | ||
33970 | ||
33d6fd3b RD |
33971 | SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
33972 | PyObject *resultobj = 0; | |
33973 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
33974 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33975 | int result; | |
33976 | void *argp1 = 0 ; | |
33977 | int res1 = 0 ; | |
33978 | void *argp2 = 0 ; | |
33979 | int res2 = 0 ; | |
33980 | PyObject * obj0 = 0 ; | |
33981 | PyObject * obj1 = 0 ; | |
33982 | char * kwnames[] = { | |
33983 | (char *) "self",(char *) "win", NULL | |
33984 | }; | |
33985 | ||
33986 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
33987 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
33988 | if (!SWIG_IsOK(res1)) { | |
33989 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
33990 | } | |
33991 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
33992 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
33993 | if (!SWIG_IsOK(res2)) { | |
33994 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
33995 | } | |
33996 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
33997 | { | |
33998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33999 | result = (int)(arg1)->GetHeaderButtonHeight(arg2); | |
34000 | wxPyEndAllowThreads(__tstate); | |
34001 | if (PyErr_Occurred()) SWIG_fail; | |
34002 | } | |
34003 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34004 | return resultobj; | |
34005 | fail: | |
34006 | return NULL; | |
34007 | } | |
34008 | ||
34009 | ||
0085ce49 RD |
34010 | SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34011 | PyObject *resultobj = 0; | |
34012 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34013 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34014 | wxDC *arg3 = 0 ; | |
34015 | wxRect *arg4 = 0 ; | |
34016 | int arg5 = (int) 0 ; | |
34017 | void *argp1 = 0 ; | |
34018 | int res1 = 0 ; | |
34019 | void *argp2 = 0 ; | |
34020 | int res2 = 0 ; | |
34021 | void *argp3 = 0 ; | |
34022 | int res3 = 0 ; | |
34023 | wxRect temp4 ; | |
34024 | int val5 ; | |
34025 | int ecode5 = 0 ; | |
34026 | PyObject * obj0 = 0 ; | |
34027 | PyObject * obj1 = 0 ; | |
34028 | PyObject * obj2 = 0 ; | |
34029 | PyObject * obj3 = 0 ; | |
34030 | PyObject * obj4 = 0 ; | |
34031 | char * kwnames[] = { | |
34032 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34033 | }; | |
34034 | ||
34035 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34036 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34037 | if (!SWIG_IsOK(res1)) { | |
34038 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34039 | } | |
34040 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34041 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34042 | if (!SWIG_IsOK(res2)) { | |
34043 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34044 | } | |
34045 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34046 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34047 | if (!SWIG_IsOK(res3)) { | |
34048 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34049 | } | |
34050 | if (!argp3) { | |
34051 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34052 | } | |
34053 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34054 | { | |
34055 | arg4 = &temp4; | |
34056 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34057 | } | |
34058 | if (obj4) { | |
34059 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34060 | if (!SWIG_IsOK(ecode5)) { | |
34061 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'"); | |
34062 | } | |
34063 | arg5 = static_cast< int >(val5); | |
34064 | } | |
34065 | { | |
34066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34067 | (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34068 | wxPyEndAllowThreads(__tstate); | |
34069 | if (PyErr_Occurred()) SWIG_fail; | |
34070 | } | |
34071 | resultobj = SWIG_Py_Void(); | |
34072 | return resultobj; | |
34073 | fail: | |
34074 | return NULL; | |
34075 | } | |
34076 | ||
34077 | ||
34078 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34079 | PyObject *resultobj = 0; | |
34080 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34081 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34082 | wxDC *arg3 = 0 ; | |
34083 | wxRect *arg4 = 0 ; | |
34084 | int arg5 = (int) 0 ; | |
34085 | void *argp1 = 0 ; | |
34086 | int res1 = 0 ; | |
34087 | void *argp2 = 0 ; | |
34088 | int res2 = 0 ; | |
34089 | void *argp3 = 0 ; | |
34090 | int res3 = 0 ; | |
34091 | wxRect temp4 ; | |
34092 | int val5 ; | |
34093 | int ecode5 = 0 ; | |
34094 | PyObject * obj0 = 0 ; | |
34095 | PyObject * obj1 = 0 ; | |
34096 | PyObject * obj2 = 0 ; | |
34097 | PyObject * obj3 = 0 ; | |
34098 | PyObject * obj4 = 0 ; | |
34099 | char * kwnames[] = { | |
34100 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34101 | }; | |
34102 | ||
34103 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34104 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34105 | if (!SWIG_IsOK(res1)) { | |
34106 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34107 | } | |
34108 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34109 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34110 | if (!SWIG_IsOK(res2)) { | |
34111 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34112 | } | |
34113 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34114 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34115 | if (!SWIG_IsOK(res3)) { | |
34116 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34117 | } | |
34118 | if (!argp3) { | |
34119 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34120 | } | |
34121 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34122 | { | |
34123 | arg4 = &temp4; | |
34124 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34125 | } | |
34126 | if (obj4) { | |
34127 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34128 | if (!SWIG_IsOK(ecode5)) { | |
34129 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'"); | |
34130 | } | |
34131 | arg5 = static_cast< int >(val5); | |
34132 | } | |
34133 | { | |
34134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34135 | (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34136 | wxPyEndAllowThreads(__tstate); | |
34137 | if (PyErr_Occurred()) SWIG_fail; | |
34138 | } | |
34139 | resultobj = SWIG_Py_Void(); | |
34140 | return resultobj; | |
34141 | fail: | |
34142 | return NULL; | |
34143 | } | |
34144 | ||
34145 | ||
34146 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34147 | PyObject *resultobj = 0; | |
34148 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34149 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34150 | wxDC *arg3 = 0 ; | |
34151 | wxSize *arg4 = 0 ; | |
34152 | int arg5 ; | |
34153 | wxOrientation arg6 ; | |
34154 | int arg7 = (int) 0 ; | |
34155 | void *argp1 = 0 ; | |
34156 | int res1 = 0 ; | |
34157 | void *argp2 = 0 ; | |
34158 | int res2 = 0 ; | |
34159 | void *argp3 = 0 ; | |
34160 | int res3 = 0 ; | |
34161 | wxSize temp4 ; | |
34162 | int val5 ; | |
34163 | int ecode5 = 0 ; | |
34164 | int val6 ; | |
34165 | int ecode6 = 0 ; | |
34166 | int val7 ; | |
34167 | int ecode7 = 0 ; | |
34168 | PyObject * obj0 = 0 ; | |
34169 | PyObject * obj1 = 0 ; | |
34170 | PyObject * obj2 = 0 ; | |
34171 | PyObject * obj3 = 0 ; | |
34172 | PyObject * obj4 = 0 ; | |
34173 | PyObject * obj5 = 0 ; | |
34174 | PyObject * obj6 = 0 ; | |
34175 | char * kwnames[] = { | |
34176 | (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL | |
34177 | }; | |
34178 | ||
34179 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
34180 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34181 | if (!SWIG_IsOK(res1)) { | |
34182 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34183 | } | |
34184 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34185 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34186 | if (!SWIG_IsOK(res2)) { | |
34187 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34188 | } | |
34189 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34190 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34191 | if (!SWIG_IsOK(res3)) { | |
34192 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34193 | } | |
34194 | if (!argp3) { | |
34195 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34196 | } | |
34197 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34198 | { | |
34199 | arg4 = &temp4; | |
34200 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
34201 | } | |
34202 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34203 | if (!SWIG_IsOK(ecode5)) { | |
34204 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'"); | |
34205 | } | |
34206 | arg5 = static_cast< int >(val5); | |
34207 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
34208 | if (!SWIG_IsOK(ecode6)) { | |
34209 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'"); | |
34210 | } | |
34211 | arg6 = static_cast< wxOrientation >(val6); | |
34212 | if (obj6) { | |
34213 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
34214 | if (!SWIG_IsOK(ecode7)) { | |
34215 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'"); | |
34216 | } | |
34217 | arg7 = static_cast< int >(val7); | |
34218 | } | |
34219 | { | |
34220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34221 | (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7); | |
34222 | wxPyEndAllowThreads(__tstate); | |
34223 | if (PyErr_Occurred()) SWIG_fail; | |
34224 | } | |
34225 | resultobj = SWIG_Py_Void(); | |
34226 | return resultobj; | |
34227 | fail: | |
34228 | return NULL; | |
34229 | } | |
34230 | ||
34231 | ||
34232 | SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34233 | PyObject *resultobj = 0; | |
34234 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34235 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34236 | wxDC *arg3 = 0 ; | |
34237 | wxRect *arg4 = 0 ; | |
34238 | int arg5 = (int) 0 ; | |
34239 | void *argp1 = 0 ; | |
34240 | int res1 = 0 ; | |
34241 | void *argp2 = 0 ; | |
34242 | int res2 = 0 ; | |
34243 | void *argp3 = 0 ; | |
34244 | int res3 = 0 ; | |
34245 | wxRect temp4 ; | |
34246 | int val5 ; | |
34247 | int ecode5 = 0 ; | |
34248 | PyObject * obj0 = 0 ; | |
34249 | PyObject * obj1 = 0 ; | |
34250 | PyObject * obj2 = 0 ; | |
34251 | PyObject * obj3 = 0 ; | |
34252 | PyObject * obj4 = 0 ; | |
34253 | char * kwnames[] = { | |
34254 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34255 | }; | |
34256 | ||
34257 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34258 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34259 | if (!SWIG_IsOK(res1)) { | |
34260 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34261 | } | |
34262 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34263 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34264 | if (!SWIG_IsOK(res2)) { | |
34265 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34266 | } | |
34267 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34268 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34269 | if (!SWIG_IsOK(res3)) { | |
34270 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34271 | } | |
34272 | if (!argp3) { | |
34273 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34274 | } | |
34275 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34276 | { | |
34277 | arg4 = &temp4; | |
34278 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34279 | } | |
34280 | if (obj4) { | |
34281 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34282 | if (!SWIG_IsOK(ecode5)) { | |
34283 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'"); | |
34284 | } | |
34285 | arg5 = static_cast< int >(val5); | |
34286 | } | |
34287 | { | |
34288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34289 | (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34290 | wxPyEndAllowThreads(__tstate); | |
34291 | if (PyErr_Occurred()) SWIG_fail; | |
34292 | } | |
34293 | resultobj = SWIG_Py_Void(); | |
34294 | return resultobj; | |
34295 | fail: | |
34296 | return NULL; | |
34297 | } | |
34298 | ||
34299 | ||
34300 | SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34301 | PyObject *resultobj = 0; | |
34302 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34303 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34304 | wxDC *arg3 = 0 ; | |
34305 | wxRect *arg4 = 0 ; | |
34306 | int arg5 = (int) 0 ; | |
34307 | void *argp1 = 0 ; | |
34308 | int res1 = 0 ; | |
34309 | void *argp2 = 0 ; | |
34310 | int res2 = 0 ; | |
34311 | void *argp3 = 0 ; | |
34312 | int res3 = 0 ; | |
34313 | wxRect temp4 ; | |
34314 | int val5 ; | |
34315 | int ecode5 = 0 ; | |
34316 | PyObject * obj0 = 0 ; | |
34317 | PyObject * obj1 = 0 ; | |
34318 | PyObject * obj2 = 0 ; | |
34319 | PyObject * obj3 = 0 ; | |
34320 | PyObject * obj4 = 0 ; | |
34321 | char * kwnames[] = { | |
34322 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34323 | }; | |
34324 | ||
34325 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34326 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34327 | if (!SWIG_IsOK(res1)) { | |
34328 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34329 | } | |
34330 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34331 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34332 | if (!SWIG_IsOK(res2)) { | |
34333 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34334 | } | |
34335 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34336 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34337 | if (!SWIG_IsOK(res3)) { | |
34338 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34339 | } | |
34340 | if (!argp3) { | |
34341 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34342 | } | |
34343 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34344 | { | |
34345 | arg4 = &temp4; | |
34346 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34347 | } | |
34348 | if (obj4) { | |
34349 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34350 | if (!SWIG_IsOK(ecode5)) { | |
34351 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'"); | |
34352 | } | |
34353 | arg5 = static_cast< int >(val5); | |
34354 | } | |
34355 | { | |
34356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34357 | (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34358 | wxPyEndAllowThreads(__tstate); | |
34359 | if (PyErr_Occurred()) SWIG_fail; | |
34360 | } | |
34361 | resultobj = SWIG_Py_Void(); | |
34362 | return resultobj; | |
34363 | fail: | |
34364 | return NULL; | |
34365 | } | |
34366 | ||
34367 | ||
01f6b6d3 RD |
34368 | SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34369 | PyObject *resultobj = 0; | |
34370 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34371 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34372 | wxDC *arg3 = 0 ; | |
34373 | wxRect *arg4 = 0 ; | |
34374 | int arg5 = (int) 0 ; | |
34375 | void *argp1 = 0 ; | |
34376 | int res1 = 0 ; | |
34377 | void *argp2 = 0 ; | |
34378 | int res2 = 0 ; | |
34379 | void *argp3 = 0 ; | |
34380 | int res3 = 0 ; | |
34381 | wxRect temp4 ; | |
34382 | int val5 ; | |
34383 | int ecode5 = 0 ; | |
34384 | PyObject * obj0 = 0 ; | |
34385 | PyObject * obj1 = 0 ; | |
34386 | PyObject * obj2 = 0 ; | |
34387 | PyObject * obj3 = 0 ; | |
34388 | PyObject * obj4 = 0 ; | |
34389 | char * kwnames[] = { | |
34390 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34391 | }; | |
34392 | ||
34393 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34394 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34395 | if (!SWIG_IsOK(res1)) { | |
34396 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34397 | } | |
34398 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34399 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34400 | if (!SWIG_IsOK(res2)) { | |
34401 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34402 | } | |
34403 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34404 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34405 | if (!SWIG_IsOK(res3)) { | |
34406 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34407 | } | |
34408 | if (!argp3) { | |
34409 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34410 | } | |
34411 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34412 | { | |
34413 | arg4 = &temp4; | |
34414 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34415 | } | |
34416 | if (obj4) { | |
34417 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34418 | if (!SWIG_IsOK(ecode5)) { | |
34419 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'"); | |
34420 | } | |
34421 | arg5 = static_cast< int >(val5); | |
34422 | } | |
34423 | { | |
34424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34425 | (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34426 | wxPyEndAllowThreads(__tstate); | |
34427 | if (PyErr_Occurred()) SWIG_fail; | |
34428 | } | |
34429 | resultobj = SWIG_Py_Void(); | |
34430 | return resultobj; | |
34431 | fail: | |
34432 | return NULL; | |
34433 | } | |
34434 | ||
34435 | ||
34436 | SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34437 | PyObject *resultobj = 0; | |
34438 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34439 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34440 | wxDC *arg3 = 0 ; | |
34441 | wxRect *arg4 = 0 ; | |
34442 | int arg5 = (int) 0 ; | |
34443 | void *argp1 = 0 ; | |
34444 | int res1 = 0 ; | |
34445 | void *argp2 = 0 ; | |
34446 | int res2 = 0 ; | |
34447 | void *argp3 = 0 ; | |
34448 | int res3 = 0 ; | |
34449 | wxRect temp4 ; | |
34450 | int val5 ; | |
34451 | int ecode5 = 0 ; | |
34452 | PyObject * obj0 = 0 ; | |
34453 | PyObject * obj1 = 0 ; | |
34454 | PyObject * obj2 = 0 ; | |
34455 | PyObject * obj3 = 0 ; | |
34456 | PyObject * obj4 = 0 ; | |
34457 | char * kwnames[] = { | |
34458 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34459 | }; | |
34460 | ||
34461 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34462 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34463 | if (!SWIG_IsOK(res1)) { | |
34464 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34465 | } | |
34466 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34467 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34468 | if (!SWIG_IsOK(res2)) { | |
34469 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34470 | } | |
34471 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34472 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34473 | if (!SWIG_IsOK(res3)) { | |
34474 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34475 | } | |
34476 | if (!argp3) { | |
34477 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34478 | } | |
34479 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34480 | { | |
34481 | arg4 = &temp4; | |
34482 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34483 | } | |
34484 | if (obj4) { | |
34485 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34486 | if (!SWIG_IsOK(ecode5)) { | |
34487 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'"); | |
34488 | } | |
34489 | arg5 = static_cast< int >(val5); | |
34490 | } | |
34491 | { | |
34492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34493 | (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34494 | wxPyEndAllowThreads(__tstate); | |
34495 | if (PyErr_Occurred()) SWIG_fail; | |
34496 | } | |
34497 | resultobj = SWIG_Py_Void(); | |
34498 | return resultobj; | |
34499 | fail: | |
34500 | return NULL; | |
34501 | } | |
34502 | ||
34503 | ||
34504 | SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
50efceee RD |
34505 | PyObject *resultobj = 0; |
34506 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34507 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34508 | wxDC *arg3 = 0 ; | |
34509 | wxRect *arg4 = 0 ; | |
34510 | int arg5 = (int) 0 ; | |
34511 | void *argp1 = 0 ; | |
34512 | int res1 = 0 ; | |
34513 | void *argp2 = 0 ; | |
34514 | int res2 = 0 ; | |
34515 | void *argp3 = 0 ; | |
34516 | int res3 = 0 ; | |
34517 | wxRect temp4 ; | |
34518 | int val5 ; | |
34519 | int ecode5 = 0 ; | |
34520 | PyObject * obj0 = 0 ; | |
34521 | PyObject * obj1 = 0 ; | |
34522 | PyObject * obj2 = 0 ; | |
34523 | PyObject * obj3 = 0 ; | |
34524 | PyObject * obj4 = 0 ; | |
34525 | char * kwnames[] = { | |
34526 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34527 | }; | |
34528 | ||
01f6b6d3 | 34529 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
50efceee RD |
34530 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); |
34531 | if (!SWIG_IsOK(res1)) { | |
01f6b6d3 | 34532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'"); |
50efceee RD |
34533 | } |
34534 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34535 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34536 | if (!SWIG_IsOK(res2)) { | |
01f6b6d3 | 34537 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'"); |
50efceee RD |
34538 | } |
34539 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34540 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34541 | if (!SWIG_IsOK(res3)) { | |
01f6b6d3 | 34542 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); |
50efceee RD |
34543 | } |
34544 | if (!argp3) { | |
01f6b6d3 | 34545 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); |
50efceee RD |
34546 | } |
34547 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34548 | { | |
34549 | arg4 = &temp4; | |
34550 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34551 | } | |
34552 | if (obj4) { | |
34553 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34554 | if (!SWIG_IsOK(ecode5)) { | |
01f6b6d3 | 34555 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'"); |
50efceee RD |
34556 | } |
34557 | arg5 = static_cast< int >(val5); | |
34558 | } | |
34559 | { | |
34560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
01f6b6d3 | 34561 | (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5); |
50efceee RD |
34562 | wxPyEndAllowThreads(__tstate); |
34563 | if (PyErr_Occurred()) SWIG_fail; | |
34564 | } | |
34565 | resultobj = SWIG_Py_Void(); | |
34566 | return resultobj; | |
34567 | fail: | |
34568 | return NULL; | |
34569 | } | |
34570 | ||
34571 | ||
0085ce49 RD |
34572 | SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34573 | PyObject *resultobj = 0; | |
34574 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34575 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34576 | SwigValueWrapper<wxSplitterRenderParams > result; | |
34577 | void *argp1 = 0 ; | |
34578 | int res1 = 0 ; | |
34579 | void *argp2 = 0 ; | |
34580 | int res2 = 0 ; | |
34581 | PyObject * obj0 = 0 ; | |
34582 | PyObject * obj1 = 0 ; | |
34583 | char * kwnames[] = { | |
34584 | (char *) "self",(char *) "win", NULL | |
34585 | }; | |
34586 | ||
34587 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail; | |
34588 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34589 | if (!SWIG_IsOK(res1)) { | |
34590 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34591 | } | |
34592 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34593 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34594 | if (!SWIG_IsOK(res2)) { | |
34595 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'"); | |
34596 | } | |
34597 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34598 | { | |
34599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34600 | result = (arg1)->GetSplitterParams((wxWindow const *)arg2); | |
34601 | wxPyEndAllowThreads(__tstate); | |
34602 | if (PyErr_Occurred()) SWIG_fail; | |
34603 | } | |
34604 | resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 ); | |
34605 | return resultobj; | |
34606 | fail: | |
34607 | return NULL; | |
34608 | } | |
34609 | ||
34610 | ||
34611 | SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34612 | PyObject *resultobj = 0; | |
34613 | wxRendererNative *result = 0 ; | |
34614 | ||
34615 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail; | |
34616 | { | |
704eda0c | 34617 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 | 34618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 34619 | { |
0085ce49 RD |
34620 | wxRendererNative &_result_ref = wxRendererNative::Get(); |
34621 | result = (wxRendererNative *) &_result_ref; | |
093d3ff1 | 34622 | } |
0085ce49 RD |
34623 | wxPyEndAllowThreads(__tstate); |
34624 | if (PyErr_Occurred()) SWIG_fail; | |
34625 | } | |
34626 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34627 | return resultobj; | |
34628 | fail: | |
34629 | return NULL; | |
34630 | } | |
34631 | ||
34632 | ||
34633 | SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34634 | PyObject *resultobj = 0; | |
34635 | wxRendererNative *result = 0 ; | |
34636 | ||
34637 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail; | |
34638 | { | |
704eda0c | 34639 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 | 34640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8d38bd1d | 34641 | { |
0085ce49 RD |
34642 | wxRendererNative &_result_ref = wxRendererNative::GetGeneric(); |
34643 | result = (wxRendererNative *) &_result_ref; | |
8d38bd1d | 34644 | } |
0085ce49 RD |
34645 | wxPyEndAllowThreads(__tstate); |
34646 | if (PyErr_Occurred()) SWIG_fail; | |
34647 | } | |
34648 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34649 | return resultobj; | |
34650 | fail: | |
34651 | return NULL; | |
34652 | } | |
34653 | ||
34654 | ||
34655 | SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34656 | PyObject *resultobj = 0; | |
34657 | wxRendererNative *result = 0 ; | |
34658 | ||
34659 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail; | |
34660 | { | |
704eda0c | 34661 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 | 34662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8d38bd1d | 34663 | { |
0085ce49 RD |
34664 | wxRendererNative &_result_ref = wxRendererNative::GetDefault(); |
34665 | result = (wxRendererNative *) &_result_ref; | |
8d38bd1d | 34666 | } |
0085ce49 RD |
34667 | wxPyEndAllowThreads(__tstate); |
34668 | if (PyErr_Occurred()) SWIG_fail; | |
34669 | } | |
34670 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34671 | return resultobj; | |
34672 | fail: | |
34673 | return NULL; | |
34674 | } | |
34675 | ||
34676 | ||
34677 | SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34678 | PyObject *resultobj = 0; | |
34679 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34680 | wxRendererNative *result = 0 ; | |
34681 | void *argp1 = 0 ; | |
34682 | int res1 = 0 ; | |
34683 | PyObject * obj0 = 0 ; | |
34684 | char * kwnames[] = { | |
34685 | (char *) "renderer", NULL | |
34686 | }; | |
34687 | ||
34688 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail; | |
34689 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34690 | if (!SWIG_IsOK(res1)) { | |
34691 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34692 | } | |
34693 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34694 | { | |
704eda0c | 34695 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 RD |
34696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34697 | result = (wxRendererNative *)wxRendererNative::Set(arg1); | |
34698 | wxPyEndAllowThreads(__tstate); | |
34699 | if (PyErr_Occurred()) SWIG_fail; | |
34700 | } | |
34701 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34702 | return resultobj; | |
34703 | fail: | |
34704 | return NULL; | |
34705 | } | |
34706 | ||
34707 | ||
34708 | SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34709 | PyObject *resultobj = 0; | |
34710 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34711 | SwigValueWrapper<wxRendererVersion > result; | |
34712 | void *argp1 = 0 ; | |
34713 | int res1 = 0 ; | |
34714 | PyObject *swig_obj[1] ; | |
34715 | ||
34716 | if (!args) SWIG_fail; | |
34717 | swig_obj[0] = args; | |
34718 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34719 | if (!SWIG_IsOK(res1)) { | |
34720 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'"); | |
34721 | } | |
34722 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34723 | { | |
34724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34725 | result = ((wxRendererNative const *)arg1)->GetVersion(); | |
34726 | wxPyEndAllowThreads(__tstate); | |
34727 | if (PyErr_Occurred()) SWIG_fail; | |
34728 | } | |
34729 | resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 ); | |
34730 | return resultobj; | |
34731 | fail: | |
34732 | return NULL; | |
34733 | } | |
34734 | ||
34735 | ||
34736 | SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34737 | PyObject *obj; | |
34738 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
34739 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj)); | |
34740 | return SWIG_Py_Void(); | |
34741 | } | |
34742 | ||
27e45892 RD |
34743 | SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34744 | PyObject *resultobj = 0; | |
34745 | wxPseudoDC *result = 0 ; | |
34746 | ||
34747 | if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail; | |
34748 | { | |
34749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34750 | result = (wxPseudoDC *)new wxPseudoDC(); | |
34751 | wxPyEndAllowThreads(__tstate); | |
34752 | if (PyErr_Occurred()) SWIG_fail; | |
34753 | } | |
34754 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 ); | |
34755 | return resultobj; | |
34756 | fail: | |
34757 | return NULL; | |
34758 | } | |
34759 | ||
34760 | ||
34761 | SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34762 | PyObject *resultobj = 0; | |
34763 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34764 | void *argp1 = 0 ; | |
34765 | int res1 = 0 ; | |
34766 | PyObject *swig_obj[1] ; | |
34767 | ||
34768 | if (!args) SWIG_fail; | |
34769 | swig_obj[0] = args; | |
34770 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34771 | if (!SWIG_IsOK(res1)) { | |
34772 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34773 | } | |
34774 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34775 | { | |
34776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34777 | (arg1)->BeginDrawing(); | |
34778 | wxPyEndAllowThreads(__tstate); | |
34779 | if (PyErr_Occurred()) SWIG_fail; | |
34780 | } | |
34781 | resultobj = SWIG_Py_Void(); | |
34782 | return resultobj; | |
34783 | fail: | |
34784 | return NULL; | |
34785 | } | |
34786 | ||
34787 | ||
34788 | SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34789 | PyObject *resultobj = 0; | |
34790 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34791 | void *argp1 = 0 ; | |
34792 | int res1 = 0 ; | |
34793 | PyObject *swig_obj[1] ; | |
34794 | ||
34795 | if (!args) SWIG_fail; | |
34796 | swig_obj[0] = args; | |
34797 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34798 | if (!SWIG_IsOK(res1)) { | |
34799 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34800 | } | |
34801 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34802 | { | |
34803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34804 | (arg1)->EndDrawing(); | |
34805 | wxPyEndAllowThreads(__tstate); | |
34806 | if (PyErr_Occurred()) SWIG_fail; | |
34807 | } | |
34808 | resultobj = SWIG_Py_Void(); | |
34809 | return resultobj; | |
34810 | fail: | |
34811 | return NULL; | |
34812 | } | |
34813 | ||
34814 | ||
34815 | SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34816 | PyObject *resultobj = 0; | |
34817 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34818 | void *argp1 = 0 ; | |
34819 | int res1 = 0 ; | |
34820 | PyObject *swig_obj[1] ; | |
34821 | ||
34822 | if (!args) SWIG_fail; | |
34823 | swig_obj[0] = args; | |
34824 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 ); | |
34825 | if (!SWIG_IsOK(res1)) { | |
34826 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34827 | } | |
34828 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34829 | { | |
34830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34831 | delete arg1; | |
34832 | ||
34833 | wxPyEndAllowThreads(__tstate); | |
34834 | if (PyErr_Occurred()) SWIG_fail; | |
34835 | } | |
34836 | resultobj = SWIG_Py_Void(); | |
34837 | return resultobj; | |
34838 | fail: | |
34839 | return NULL; | |
34840 | } | |
34841 | ||
34842 | ||
34843 | SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34844 | PyObject *resultobj = 0; | |
34845 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34846 | void *argp1 = 0 ; | |
34847 | int res1 = 0 ; | |
34848 | PyObject *swig_obj[1] ; | |
34849 | ||
34850 | if (!args) SWIG_fail; | |
34851 | swig_obj[0] = args; | |
34852 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34853 | if (!SWIG_IsOK(res1)) { | |
34854 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34855 | } | |
34856 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34857 | { | |
34858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34859 | (arg1)->RemoveAll(); | |
34860 | wxPyEndAllowThreads(__tstate); | |
34861 | if (PyErr_Occurred()) SWIG_fail; | |
34862 | } | |
34863 | resultobj = SWIG_Py_Void(); | |
34864 | return resultobj; | |
34865 | fail: | |
34866 | return NULL; | |
34867 | } | |
34868 | ||
34869 | ||
34870 | SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34871 | PyObject *resultobj = 0; | |
34872 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34873 | int result; | |
34874 | void *argp1 = 0 ; | |
34875 | int res1 = 0 ; | |
34876 | PyObject *swig_obj[1] ; | |
34877 | ||
34878 | if (!args) SWIG_fail; | |
34879 | swig_obj[0] = args; | |
34880 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34881 | if (!SWIG_IsOK(res1)) { | |
34882 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34883 | } | |
34884 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34885 | { | |
34886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34887 | result = (int)(arg1)->GetLen(); | |
34888 | wxPyEndAllowThreads(__tstate); | |
34889 | if (PyErr_Occurred()) SWIG_fail; | |
34890 | } | |
34891 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34892 | return resultobj; | |
34893 | fail: | |
34894 | return NULL; | |
34895 | } | |
34896 | ||
34897 | ||
34898 | SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34899 | PyObject *resultobj = 0; | |
34900 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34901 | int arg2 ; | |
34902 | void *argp1 = 0 ; | |
34903 | int res1 = 0 ; | |
34904 | int val2 ; | |
34905 | int ecode2 = 0 ; | |
34906 | PyObject * obj0 = 0 ; | |
34907 | PyObject * obj1 = 0 ; | |
34908 | char * kwnames[] = { | |
34909 | (char *) "self",(char *) "id", NULL | |
34910 | }; | |
34911 | ||
34912 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail; | |
34913 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34914 | if (!SWIG_IsOK(res1)) { | |
34915 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34916 | } | |
34917 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34918 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
34919 | if (!SWIG_IsOK(ecode2)) { | |
34920 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'"); | |
34921 | } | |
34922 | arg2 = static_cast< int >(val2); | |
34923 | { | |
34924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34925 | (arg1)->SetId(arg2); | |
34926 | wxPyEndAllowThreads(__tstate); | |
34927 | if (PyErr_Occurred()) SWIG_fail; | |
34928 | } | |
34929 | resultobj = SWIG_Py_Void(); | |
34930 | return resultobj; | |
34931 | fail: | |
34932 | return NULL; | |
34933 | } | |
34934 | ||
34935 | ||
34936 | SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34937 | PyObject *resultobj = 0; | |
34938 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34939 | int arg2 ; | |
34940 | void *argp1 = 0 ; | |
34941 | int res1 = 0 ; | |
34942 | int val2 ; | |
34943 | int ecode2 = 0 ; | |
34944 | PyObject * obj0 = 0 ; | |
34945 | PyObject * obj1 = 0 ; | |
34946 | char * kwnames[] = { | |
34947 | (char *) "self",(char *) "id", NULL | |
34948 | }; | |
34949 | ||
34950 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail; | |
34951 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34952 | if (!SWIG_IsOK(res1)) { | |
34953 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34954 | } | |
34955 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34956 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
34957 | if (!SWIG_IsOK(ecode2)) { | |
34958 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'"); | |
34959 | } | |
34960 | arg2 = static_cast< int >(val2); | |
34961 | { | |
34962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34963 | (arg1)->ClearId(arg2); | |
34964 | wxPyEndAllowThreads(__tstate); | |
34965 | if (PyErr_Occurred()) SWIG_fail; | |
34966 | } | |
34967 | resultobj = SWIG_Py_Void(); | |
34968 | return resultobj; | |
34969 | fail: | |
34970 | return NULL; | |
34971 | } | |
34972 | ||
34973 | ||
34974 | SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34975 | PyObject *resultobj = 0; | |
34976 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34977 | int arg2 ; | |
34978 | void *argp1 = 0 ; | |
34979 | int res1 = 0 ; | |
34980 | int val2 ; | |
34981 | int ecode2 = 0 ; | |
34982 | PyObject * obj0 = 0 ; | |
34983 | PyObject * obj1 = 0 ; | |
34984 | char * kwnames[] = { | |
34985 | (char *) "self",(char *) "id", NULL | |
34986 | }; | |
34987 | ||
34988 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail; | |
34989 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34990 | if (!SWIG_IsOK(res1)) { | |
34991 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34992 | } | |
34993 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34994 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
34995 | if (!SWIG_IsOK(ecode2)) { | |
34996 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'"); | |
34997 | } | |
34998 | arg2 = static_cast< int >(val2); | |
34999 | { | |
35000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35001 | (arg1)->RemoveId(arg2); | |
35002 | wxPyEndAllowThreads(__tstate); | |
35003 | if (PyErr_Occurred()) SWIG_fail; | |
35004 | } | |
35005 | resultobj = SWIG_Py_Void(); | |
35006 | return resultobj; | |
35007 | fail: | |
35008 | return NULL; | |
35009 | } | |
35010 | ||
35011 | ||
35012 | SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35013 | PyObject *resultobj = 0; | |
35014 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35015 | int arg2 ; | |
35016 | int arg3 ; | |
35017 | int arg4 ; | |
35018 | void *argp1 = 0 ; | |
35019 | int res1 = 0 ; | |
35020 | int val2 ; | |
35021 | int ecode2 = 0 ; | |
35022 | int val3 ; | |
35023 | int ecode3 = 0 ; | |
35024 | int val4 ; | |
35025 | int ecode4 = 0 ; | |
35026 | PyObject * obj0 = 0 ; | |
35027 | PyObject * obj1 = 0 ; | |
35028 | PyObject * obj2 = 0 ; | |
35029 | PyObject * obj3 = 0 ; | |
35030 | char * kwnames[] = { | |
35031 | (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL | |
35032 | }; | |
35033 | ||
35034 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
35035 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35036 | if (!SWIG_IsOK(res1)) { | |
35037 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35038 | } | |
35039 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35040 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35041 | if (!SWIG_IsOK(ecode2)) { | |
35042 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'"); | |
35043 | } | |
35044 | arg2 = static_cast< int >(val2); | |
35045 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35046 | if (!SWIG_IsOK(ecode3)) { | |
35047 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'"); | |
35048 | } | |
35049 | arg3 = static_cast< int >(val3); | |
35050 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35051 | if (!SWIG_IsOK(ecode4)) { | |
35052 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'"); | |
35053 | } | |
35054 | arg4 = static_cast< int >(val4); | |
35055 | { | |
35056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35057 | (arg1)->TranslateId(arg2,arg3,arg4); | |
35058 | wxPyEndAllowThreads(__tstate); | |
35059 | if (PyErr_Occurred()) SWIG_fail; | |
35060 | } | |
35061 | resultobj = SWIG_Py_Void(); | |
35062 | return resultobj; | |
35063 | fail: | |
35064 | return NULL; | |
35065 | } | |
35066 | ||
35067 | ||
72ef6efb RD |
35068 | SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35069 | PyObject *resultobj = 0; | |
35070 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35071 | int arg2 ; | |
35072 | bool arg3 = (bool) true ; | |
35073 | void *argp1 = 0 ; | |
35074 | int res1 = 0 ; | |
35075 | int val2 ; | |
35076 | int ecode2 = 0 ; | |
35077 | bool val3 ; | |
35078 | int ecode3 = 0 ; | |
35079 | PyObject * obj0 = 0 ; | |
35080 | PyObject * obj1 = 0 ; | |
35081 | PyObject * obj2 = 0 ; | |
35082 | char * kwnames[] = { | |
35083 | (char *) "self",(char *) "id",(char *) "greyout", NULL | |
35084 | }; | |
35085 | ||
35086 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",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_SetIdGreyedOut" "', 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_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'"); | |
35095 | } | |
35096 | arg2 = static_cast< int >(val2); | |
35097 | if (obj2) { | |
35098 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
35099 | if (!SWIG_IsOK(ecode3)) { | |
35100 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'"); | |
35101 | } | |
35102 | arg3 = static_cast< bool >(val3); | |
35103 | } | |
35104 | { | |
35105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35106 | (arg1)->SetIdGreyedOut(arg2,arg3); | |
35107 | wxPyEndAllowThreads(__tstate); | |
35108 | if (PyErr_Occurred()) SWIG_fail; | |
35109 | } | |
35110 | resultobj = SWIG_Py_Void(); | |
35111 | return resultobj; | |
35112 | fail: | |
35113 | return NULL; | |
35114 | } | |
35115 | ||
35116 | ||
35117 | SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35118 | PyObject *resultobj = 0; | |
35119 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35120 | int arg2 ; | |
35121 | bool result; | |
35122 | void *argp1 = 0 ; | |
35123 | int res1 = 0 ; | |
35124 | int val2 ; | |
35125 | int ecode2 = 0 ; | |
35126 | PyObject * obj0 = 0 ; | |
35127 | PyObject * obj1 = 0 ; | |
35128 | char * kwnames[] = { | |
35129 | (char *) "self",(char *) "id", NULL | |
35130 | }; | |
35131 | ||
35132 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail; | |
35133 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35134 | if (!SWIG_IsOK(res1)) { | |
35135 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35136 | } | |
35137 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35138 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35139 | if (!SWIG_IsOK(ecode2)) { | |
35140 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'"); | |
35141 | } | |
35142 | arg2 = static_cast< int >(val2); | |
35143 | { | |
35144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35145 | result = (bool)(arg1)->GetIdGreyedOut(arg2); | |
35146 | wxPyEndAllowThreads(__tstate); | |
35147 | if (PyErr_Occurred()) SWIG_fail; | |
35148 | } | |
35149 | { | |
35150 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35151 | } | |
35152 | return resultobj; | |
35153 | fail: | |
35154 | return NULL; | |
35155 | } | |
35156 | ||
35157 | ||
35158 | SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35159 | PyObject *resultobj = 0; | |
35160 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35161 | int arg2 ; | |
35162 | int arg3 ; | |
35163 | int arg4 = (int) 1 ; | |
35164 | wxColor const &arg5_defvalue = *wxWHITE ; | |
35165 | wxColor *arg5 = (wxColor *) &arg5_defvalue ; | |
35166 | PyObject *result = 0 ; | |
35167 | void *argp1 = 0 ; | |
35168 | int res1 = 0 ; | |
35169 | int val2 ; | |
35170 | int ecode2 = 0 ; | |
35171 | int val3 ; | |
35172 | int ecode3 = 0 ; | |
35173 | int val4 ; | |
35174 | int ecode4 = 0 ; | |
35175 | void *argp5 = 0 ; | |
35176 | int res5 = 0 ; | |
35177 | PyObject * obj0 = 0 ; | |
35178 | PyObject * obj1 = 0 ; | |
35179 | PyObject * obj2 = 0 ; | |
35180 | PyObject * obj3 = 0 ; | |
35181 | PyObject * obj4 = 0 ; | |
35182 | char * kwnames[] = { | |
35183 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL | |
35184 | }; | |
35185 | ||
35186 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35187 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35188 | if (!SWIG_IsOK(res1)) { | |
35189 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35190 | } | |
35191 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35192 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35193 | if (!SWIG_IsOK(ecode2)) { | |
35194 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'"); | |
35195 | } | |
35196 | arg2 = static_cast< int >(val2); | |
35197 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35198 | if (!SWIG_IsOK(ecode3)) { | |
35199 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'"); | |
35200 | } | |
35201 | arg3 = static_cast< int >(val3); | |
35202 | if (obj3) { | |
35203 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35204 | if (!SWIG_IsOK(ecode4)) { | |
35205 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'"); | |
35206 | } | |
35207 | arg4 = static_cast< int >(val4); | |
35208 | } | |
35209 | if (obj4) { | |
35210 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0); | |
35211 | if (!SWIG_IsOK(res5)) { | |
35212 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'"); | |
35213 | } | |
35214 | if (!argp5) { | |
35215 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'"); | |
35216 | } | |
35217 | arg5 = reinterpret_cast< wxColor * >(argp5); | |
35218 | } | |
35219 | { | |
35220 | result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5); | |
35221 | if (PyErr_Occurred()) SWIG_fail; | |
35222 | } | |
35223 | resultobj = result; | |
35224 | return resultobj; | |
35225 | fail: | |
35226 | return NULL; | |
35227 | } | |
35228 | ||
35229 | ||
35230 | SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35231 | PyObject *resultobj = 0; | |
35232 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35233 | int arg2 ; | |
35234 | int arg3 ; | |
35235 | PyObject *result = 0 ; | |
35236 | void *argp1 = 0 ; | |
35237 | int res1 = 0 ; | |
35238 | int val2 ; | |
35239 | int ecode2 = 0 ; | |
35240 | int val3 ; | |
35241 | int ecode3 = 0 ; | |
35242 | PyObject * obj0 = 0 ; | |
35243 | PyObject * obj1 = 0 ; | |
35244 | PyObject * obj2 = 0 ; | |
35245 | char * kwnames[] = { | |
35246 | (char *) "self",(char *) "x",(char *) "y", NULL | |
35247 | }; | |
35248 | ||
35249 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35250 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35251 | if (!SWIG_IsOK(res1)) { | |
35252 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35253 | } | |
35254 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35255 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35256 | if (!SWIG_IsOK(ecode2)) { | |
35257 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'"); | |
35258 | } | |
35259 | arg2 = static_cast< int >(val2); | |
35260 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35261 | if (!SWIG_IsOK(ecode3)) { | |
35262 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'"); | |
35263 | } | |
35264 | arg3 = static_cast< int >(val3); | |
35265 | { | |
35266 | result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3); | |
35267 | if (PyErr_Occurred()) SWIG_fail; | |
35268 | } | |
35269 | resultobj = result; | |
35270 | return resultobj; | |
35271 | fail: | |
35272 | return NULL; | |
35273 | } | |
35274 | ||
35275 | ||
27e45892 RD |
35276 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35277 | PyObject *resultobj = 0; | |
35278 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35279 | int arg2 ; | |
35280 | wxDC *arg3 = (wxDC *) 0 ; | |
35281 | void *argp1 = 0 ; | |
35282 | int res1 = 0 ; | |
35283 | int val2 ; | |
35284 | int ecode2 = 0 ; | |
35285 | void *argp3 = 0 ; | |
35286 | int res3 = 0 ; | |
35287 | PyObject * obj0 = 0 ; | |
35288 | PyObject * obj1 = 0 ; | |
35289 | PyObject * obj2 = 0 ; | |
35290 | char * kwnames[] = { | |
35291 | (char *) "self",(char *) "id",(char *) "dc", NULL | |
35292 | }; | |
35293 | ||
35294 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35295 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35296 | if (!SWIG_IsOK(res1)) { | |
35297 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35298 | } | |
35299 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35300 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35301 | if (!SWIG_IsOK(ecode2)) { | |
35302 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'"); | |
35303 | } | |
35304 | arg2 = static_cast< int >(val2); | |
35305 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 ); | |
35306 | if (!SWIG_IsOK(res3)) { | |
35307 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'"); | |
35308 | } | |
35309 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35310 | { | |
35311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35312 | (arg1)->DrawIdToDC(arg2,arg3); | |
35313 | wxPyEndAllowThreads(__tstate); | |
35314 | if (PyErr_Occurred()) SWIG_fail; | |
35315 | } | |
35316 | resultobj = SWIG_Py_Void(); | |
35317 | return resultobj; | |
35318 | fail: | |
35319 | return NULL; | |
35320 | } | |
35321 | ||
35322 | ||
35323 | SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35324 | PyObject *resultobj = 0; | |
35325 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35326 | int arg2 ; | |
35327 | wxRect *arg3 = 0 ; | |
35328 | void *argp1 = 0 ; | |
35329 | int res1 = 0 ; | |
35330 | int val2 ; | |
35331 | int ecode2 = 0 ; | |
35332 | wxRect temp3 ; | |
35333 | PyObject * obj0 = 0 ; | |
35334 | PyObject * obj1 = 0 ; | |
35335 | PyObject * obj2 = 0 ; | |
35336 | char * kwnames[] = { | |
35337 | (char *) "self",(char *) "id",(char *) "rect", NULL | |
35338 | }; | |
35339 | ||
35340 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35341 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35342 | if (!SWIG_IsOK(res1)) { | |
35343 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35344 | } | |
35345 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35346 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35347 | if (!SWIG_IsOK(ecode2)) { | |
35348 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'"); | |
35349 | } | |
35350 | arg2 = static_cast< int >(val2); | |
35351 | { | |
35352 | arg3 = &temp3; | |
35353 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
35354 | } | |
35355 | { | |
35356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35357 | (arg1)->SetIdBounds(arg2,*arg3); | |
35358 | wxPyEndAllowThreads(__tstate); | |
35359 | if (PyErr_Occurred()) SWIG_fail; | |
35360 | } | |
35361 | resultobj = SWIG_Py_Void(); | |
35362 | return resultobj; | |
35363 | fail: | |
35364 | return NULL; | |
35365 | } | |
35366 | ||
35367 | ||
35368 | SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35369 | PyObject *resultobj = 0; | |
35370 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35371 | int arg2 ; | |
35372 | wxRect result; | |
35373 | void *argp1 = 0 ; | |
35374 | int res1 = 0 ; | |
35375 | int val2 ; | |
35376 | int ecode2 = 0 ; | |
35377 | PyObject * obj0 = 0 ; | |
35378 | PyObject * obj1 = 0 ; | |
35379 | char * kwnames[] = { | |
35380 | (char *) "self",(char *) "id", NULL | |
35381 | }; | |
35382 | ||
35383 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail; | |
35384 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35385 | if (!SWIG_IsOK(res1)) { | |
35386 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35387 | } | |
35388 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35389 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35390 | if (!SWIG_IsOK(ecode2)) { | |
35391 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'"); | |
35392 | } | |
35393 | arg2 = static_cast< int >(val2); | |
35394 | { | |
35395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35396 | result = wxPseudoDC_GetIdBounds(arg1,arg2); | |
35397 | wxPyEndAllowThreads(__tstate); | |
35398 | if (PyErr_Occurred()) SWIG_fail; | |
35399 | } | |
35400 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
35401 | return resultobj; | |
35402 | fail: | |
35403 | return NULL; | |
35404 | } | |
35405 | ||
35406 | ||
35407 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35408 | PyObject *resultobj = 0; | |
35409 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35410 | wxDC *arg2 = (wxDC *) 0 ; | |
35411 | wxRect *arg3 = 0 ; | |
35412 | void *argp1 = 0 ; | |
35413 | int res1 = 0 ; | |
35414 | void *argp2 = 0 ; | |
35415 | int res2 = 0 ; | |
35416 | wxRect temp3 ; | |
35417 | PyObject * obj0 = 0 ; | |
35418 | PyObject * obj1 = 0 ; | |
35419 | PyObject * obj2 = 0 ; | |
35420 | char * kwnames[] = { | |
35421 | (char *) "self",(char *) "dc",(char *) "rect", NULL | |
35422 | }; | |
35423 | ||
35424 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35425 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35426 | if (!SWIG_IsOK(res1)) { | |
35427 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35428 | } | |
35429 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35430 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
35431 | if (!SWIG_IsOK(res2)) { | |
35432 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'"); | |
35433 | } | |
35434 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
35435 | { | |
35436 | arg3 = &temp3; | |
35437 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
35438 | } | |
35439 | { | |
35440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35441 | (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3); | |
35442 | wxPyEndAllowThreads(__tstate); | |
35443 | if (PyErr_Occurred()) SWIG_fail; | |
35444 | } | |
35445 | resultobj = SWIG_Py_Void(); | |
35446 | return resultobj; | |
35447 | fail: | |
35448 | return NULL; | |
35449 | } | |
35450 | ||
35451 | ||
35452 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35453 | PyObject *resultobj = 0; | |
35454 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35455 | wxDC *arg2 = (wxDC *) 0 ; | |
35456 | wxRegion *arg3 = 0 ; | |
35457 | void *argp1 = 0 ; | |
35458 | int res1 = 0 ; | |
35459 | void *argp2 = 0 ; | |
35460 | int res2 = 0 ; | |
35461 | void *argp3 = 0 ; | |
35462 | int res3 = 0 ; | |
35463 | PyObject * obj0 = 0 ; | |
35464 | PyObject * obj1 = 0 ; | |
35465 | PyObject * obj2 = 0 ; | |
35466 | char * kwnames[] = { | |
35467 | (char *) "self",(char *) "dc",(char *) "region", NULL | |
35468 | }; | |
35469 | ||
35470 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35471 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35472 | if (!SWIG_IsOK(res1)) { | |
35473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35474 | } | |
35475 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35476 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
35477 | if (!SWIG_IsOK(res2)) { | |
35478 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'"); | |
35479 | } | |
35480 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
35481 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0); | |
35482 | if (!SWIG_IsOK(res3)) { | |
35483 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'"); | |
35484 | } | |
35485 | if (!argp3) { | |
35486 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'"); | |
35487 | } | |
35488 | arg3 = reinterpret_cast< wxRegion * >(argp3); | |
35489 | { | |
35490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35491 | (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3); | |
35492 | wxPyEndAllowThreads(__tstate); | |
35493 | if (PyErr_Occurred()) SWIG_fail; | |
35494 | } | |
35495 | resultobj = SWIG_Py_Void(); | |
35496 | return resultobj; | |
35497 | fail: | |
35498 | return NULL; | |
35499 | } | |
35500 | ||
35501 | ||
35502 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35503 | PyObject *resultobj = 0; | |
35504 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35505 | wxDC *arg2 = (wxDC *) 0 ; | |
35506 | void *argp1 = 0 ; | |
35507 | int res1 = 0 ; | |
35508 | void *argp2 = 0 ; | |
35509 | int res2 = 0 ; | |
35510 | PyObject * obj0 = 0 ; | |
35511 | PyObject * obj1 = 0 ; | |
35512 | char * kwnames[] = { | |
35513 | (char *) "self",(char *) "dc", NULL | |
35514 | }; | |
35515 | ||
35516 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
35517 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35518 | if (!SWIG_IsOK(res1)) { | |
35519 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35520 | } | |
35521 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35522 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
35523 | if (!SWIG_IsOK(res2)) { | |
35524 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'"); | |
35525 | } | |
35526 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
35527 | { | |
35528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35529 | (arg1)->DrawToDC(arg2); | |
35530 | wxPyEndAllowThreads(__tstate); | |
35531 | if (PyErr_Occurred()) SWIG_fail; | |
35532 | } | |
35533 | resultobj = SWIG_Py_Void(); | |
35534 | return resultobj; | |
35535 | fail: | |
35536 | return NULL; | |
35537 | } | |
35538 | ||
35539 | ||
35540 | SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35541 | PyObject *resultobj = 0; | |
35542 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35543 | int arg2 ; | |
35544 | int arg3 ; | |
35545 | wxColour *arg4 = 0 ; | |
35546 | int arg5 = (int) wxFLOOD_SURFACE ; | |
35547 | void *argp1 = 0 ; | |
35548 | int res1 = 0 ; | |
35549 | int val2 ; | |
35550 | int ecode2 = 0 ; | |
35551 | int val3 ; | |
35552 | int ecode3 = 0 ; | |
35553 | wxColour temp4 ; | |
35554 | int val5 ; | |
35555 | int ecode5 = 0 ; | |
35556 | PyObject * obj0 = 0 ; | |
35557 | PyObject * obj1 = 0 ; | |
35558 | PyObject * obj2 = 0 ; | |
35559 | PyObject * obj3 = 0 ; | |
35560 | PyObject * obj4 = 0 ; | |
35561 | char * kwnames[] = { | |
35562 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
35563 | }; | |
35564 | ||
35565 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35566 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35567 | if (!SWIG_IsOK(res1)) { | |
35568 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35569 | } | |
35570 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35571 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35572 | if (!SWIG_IsOK(ecode2)) { | |
35573 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
35574 | } | |
35575 | arg2 = static_cast< int >(val2); | |
35576 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35577 | if (!SWIG_IsOK(ecode3)) { | |
35578 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
35579 | } | |
35580 | arg3 = static_cast< int >(val3); | |
35581 | { | |
35582 | arg4 = &temp4; | |
35583 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
35584 | } | |
35585 | if (obj4) { | |
35586 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35587 | if (!SWIG_IsOK(ecode5)) { | |
35588 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
35589 | } | |
35590 | arg5 = static_cast< int >(val5); | |
35591 | } | |
35592 | { | |
35593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35594 | (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
35595 | wxPyEndAllowThreads(__tstate); | |
35596 | if (PyErr_Occurred()) SWIG_fail; | |
35597 | } | |
35598 | resultobj = SWIG_Py_Void(); | |
35599 | return resultobj; | |
35600 | fail: | |
35601 | return NULL; | |
35602 | } | |
35603 | ||
35604 | ||
35605 | SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35606 | PyObject *resultobj = 0; | |
35607 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35608 | wxPoint *arg2 = 0 ; | |
35609 | wxColour *arg3 = 0 ; | |
35610 | int arg4 = (int) wxFLOOD_SURFACE ; | |
35611 | void *argp1 = 0 ; | |
35612 | int res1 = 0 ; | |
35613 | wxPoint temp2 ; | |
35614 | wxColour temp3 ; | |
35615 | int val4 ; | |
35616 | int ecode4 = 0 ; | |
35617 | PyObject * obj0 = 0 ; | |
35618 | PyObject * obj1 = 0 ; | |
35619 | PyObject * obj2 = 0 ; | |
35620 | PyObject * obj3 = 0 ; | |
35621 | char * kwnames[] = { | |
35622 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
35623 | }; | |
35624 | ||
35625 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
35626 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35627 | if (!SWIG_IsOK(res1)) { | |
35628 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35629 | } | |
35630 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35631 | { | |
35632 | arg2 = &temp2; | |
35633 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
35634 | } | |
35635 | { | |
35636 | arg3 = &temp3; | |
35637 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
35638 | } | |
35639 | if (obj3) { | |
35640 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35641 | if (!SWIG_IsOK(ecode4)) { | |
35642 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
35643 | } | |
35644 | arg4 = static_cast< int >(val4); | |
35645 | } | |
35646 | { | |
35647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35648 | (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
35649 | wxPyEndAllowThreads(__tstate); | |
35650 | if (PyErr_Occurred()) SWIG_fail; | |
35651 | } | |
35652 | resultobj = SWIG_Py_Void(); | |
35653 | return resultobj; | |
35654 | fail: | |
35655 | return NULL; | |
35656 | } | |
35657 | ||
35658 | ||
35659 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35660 | PyObject *resultobj = 0; | |
35661 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35662 | int arg2 ; | |
35663 | int arg3 ; | |
35664 | int arg4 ; | |
35665 | int arg5 ; | |
35666 | void *argp1 = 0 ; | |
35667 | int res1 = 0 ; | |
35668 | int val2 ; | |
35669 | int ecode2 = 0 ; | |
35670 | int val3 ; | |
35671 | int ecode3 = 0 ; | |
35672 | int val4 ; | |
35673 | int ecode4 = 0 ; | |
35674 | int val5 ; | |
35675 | int ecode5 = 0 ; | |
35676 | PyObject * obj0 = 0 ; | |
35677 | PyObject * obj1 = 0 ; | |
35678 | PyObject * obj2 = 0 ; | |
35679 | PyObject * obj3 = 0 ; | |
35680 | PyObject * obj4 = 0 ; | |
35681 | char * kwnames[] = { | |
35682 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
35683 | }; | |
35684 | ||
35685 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35686 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35687 | if (!SWIG_IsOK(res1)) { | |
35688 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35689 | } | |
35690 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35691 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35692 | if (!SWIG_IsOK(ecode2)) { | |
35693 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
35694 | } | |
35695 | arg2 = static_cast< int >(val2); | |
35696 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35697 | if (!SWIG_IsOK(ecode3)) { | |
35698 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
35699 | } | |
35700 | arg3 = static_cast< int >(val3); | |
35701 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35702 | if (!SWIG_IsOK(ecode4)) { | |
35703 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
35704 | } | |
35705 | arg4 = static_cast< int >(val4); | |
35706 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35707 | if (!SWIG_IsOK(ecode5)) { | |
35708 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
35709 | } | |
35710 | arg5 = static_cast< int >(val5); | |
35711 | { | |
35712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35713 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
35714 | wxPyEndAllowThreads(__tstate); | |
35715 | if (PyErr_Occurred()) SWIG_fail; | |
35716 | } | |
35717 | resultobj = SWIG_Py_Void(); | |
35718 | return resultobj; | |
35719 | fail: | |
35720 | return NULL; | |
35721 | } | |
35722 | ||
35723 | ||
35724 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35725 | PyObject *resultobj = 0; | |
35726 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35727 | wxPoint *arg2 = 0 ; | |
35728 | wxPoint *arg3 = 0 ; | |
35729 | void *argp1 = 0 ; | |
35730 | int res1 = 0 ; | |
35731 | wxPoint temp2 ; | |
35732 | wxPoint temp3 ; | |
35733 | PyObject * obj0 = 0 ; | |
35734 | PyObject * obj1 = 0 ; | |
35735 | PyObject * obj2 = 0 ; | |
35736 | char * kwnames[] = { | |
35737 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
35738 | }; | |
35739 | ||
35740 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35741 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35742 | if (!SWIG_IsOK(res1)) { | |
35743 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35744 | } | |
35745 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35746 | { | |
35747 | arg2 = &temp2; | |
35748 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
35749 | } | |
35750 | { | |
35751 | arg3 = &temp3; | |
35752 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
35753 | } | |
35754 | { | |
35755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35756 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
35757 | wxPyEndAllowThreads(__tstate); | |
35758 | if (PyErr_Occurred()) SWIG_fail; | |
35759 | } | |
35760 | resultobj = SWIG_Py_Void(); | |
35761 | return resultobj; | |
35762 | fail: | |
35763 | return NULL; | |
35764 | } | |
35765 | ||
35766 | ||
35767 | SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35768 | PyObject *resultobj = 0; | |
35769 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35770 | int arg2 ; | |
35771 | int arg3 ; | |
35772 | void *argp1 = 0 ; | |
35773 | int res1 = 0 ; | |
35774 | int val2 ; | |
35775 | int ecode2 = 0 ; | |
35776 | int val3 ; | |
35777 | int ecode3 = 0 ; | |
35778 | PyObject * obj0 = 0 ; | |
35779 | PyObject * obj1 = 0 ; | |
35780 | PyObject * obj2 = 0 ; | |
35781 | char * kwnames[] = { | |
35782 | (char *) "self",(char *) "x",(char *) "y", NULL | |
35783 | }; | |
35784 | ||
35785 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35786 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35787 | if (!SWIG_IsOK(res1)) { | |
35788 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35789 | } | |
35790 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35791 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35792 | if (!SWIG_IsOK(ecode2)) { | |
35793 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
35794 | } | |
35795 | arg2 = static_cast< int >(val2); | |
35796 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35797 | if (!SWIG_IsOK(ecode3)) { | |
35798 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
35799 | } | |
35800 | arg3 = static_cast< int >(val3); | |
35801 | { | |
35802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35803 | (arg1)->CrossHair(arg2,arg3); | |
35804 | wxPyEndAllowThreads(__tstate); | |
35805 | if (PyErr_Occurred()) SWIG_fail; | |
35806 | } | |
35807 | resultobj = SWIG_Py_Void(); | |
35808 | return resultobj; | |
35809 | fail: | |
35810 | return NULL; | |
35811 | } | |
35812 | ||
35813 | ||
35814 | SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35815 | PyObject *resultobj = 0; | |
35816 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35817 | wxPoint *arg2 = 0 ; | |
35818 | void *argp1 = 0 ; | |
35819 | int res1 = 0 ; | |
35820 | wxPoint temp2 ; | |
35821 | PyObject * obj0 = 0 ; | |
35822 | PyObject * obj1 = 0 ; | |
35823 | char * kwnames[] = { | |
35824 | (char *) "self",(char *) "pt", NULL | |
35825 | }; | |
35826 | ||
35827 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
35828 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35829 | if (!SWIG_IsOK(res1)) { | |
35830 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35831 | } | |
35832 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35833 | { | |
35834 | arg2 = &temp2; | |
35835 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
35836 | } | |
35837 | { | |
35838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35839 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
35840 | wxPyEndAllowThreads(__tstate); | |
35841 | if (PyErr_Occurred()) SWIG_fail; | |
35842 | } | |
35843 | resultobj = SWIG_Py_Void(); | |
35844 | return resultobj; | |
35845 | fail: | |
35846 | return NULL; | |
35847 | } | |
35848 | ||
35849 | ||
35850 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35851 | PyObject *resultobj = 0; | |
35852 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35853 | int arg2 ; | |
35854 | int arg3 ; | |
35855 | int arg4 ; | |
35856 | int arg5 ; | |
35857 | int arg6 ; | |
35858 | int arg7 ; | |
35859 | void *argp1 = 0 ; | |
35860 | int res1 = 0 ; | |
35861 | int val2 ; | |
35862 | int ecode2 = 0 ; | |
35863 | int val3 ; | |
35864 | int ecode3 = 0 ; | |
35865 | int val4 ; | |
35866 | int ecode4 = 0 ; | |
35867 | int val5 ; | |
35868 | int ecode5 = 0 ; | |
35869 | int val6 ; | |
35870 | int ecode6 = 0 ; | |
35871 | int val7 ; | |
35872 | int ecode7 = 0 ; | |
35873 | PyObject * obj0 = 0 ; | |
35874 | PyObject * obj1 = 0 ; | |
35875 | PyObject * obj2 = 0 ; | |
35876 | PyObject * obj3 = 0 ; | |
35877 | PyObject * obj4 = 0 ; | |
35878 | PyObject * obj5 = 0 ; | |
35879 | PyObject * obj6 = 0 ; | |
35880 | char * kwnames[] = { | |
35881 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
35882 | }; | |
35883 | ||
35884 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
35885 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35886 | if (!SWIG_IsOK(res1)) { | |
35887 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35888 | } | |
35889 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35890 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35891 | if (!SWIG_IsOK(ecode2)) { | |
35892 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
35893 | } | |
35894 | arg2 = static_cast< int >(val2); | |
35895 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35896 | if (!SWIG_IsOK(ecode3)) { | |
35897 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
35898 | } | |
35899 | arg3 = static_cast< int >(val3); | |
35900 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35901 | if (!SWIG_IsOK(ecode4)) { | |
35902 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
35903 | } | |
35904 | arg4 = static_cast< int >(val4); | |
35905 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35906 | if (!SWIG_IsOK(ecode5)) { | |
35907 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
35908 | } | |
35909 | arg5 = static_cast< int >(val5); | |
35910 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
35911 | if (!SWIG_IsOK(ecode6)) { | |
35912 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
35913 | } | |
35914 | arg6 = static_cast< int >(val6); | |
35915 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
35916 | if (!SWIG_IsOK(ecode7)) { | |
35917 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
35918 | } | |
35919 | arg7 = static_cast< int >(val7); | |
35920 | { | |
35921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35922 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
35923 | wxPyEndAllowThreads(__tstate); | |
35924 | if (PyErr_Occurred()) SWIG_fail; | |
35925 | } | |
35926 | resultobj = SWIG_Py_Void(); | |
35927 | return resultobj; | |
35928 | fail: | |
35929 | return NULL; | |
35930 | } | |
35931 | ||
35932 | ||
35933 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35934 | PyObject *resultobj = 0; | |
35935 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35936 | wxPoint *arg2 = 0 ; | |
35937 | wxPoint *arg3 = 0 ; | |
35938 | wxPoint *arg4 = 0 ; | |
35939 | void *argp1 = 0 ; | |
35940 | int res1 = 0 ; | |
35941 | wxPoint temp2 ; | |
35942 | wxPoint temp3 ; | |
35943 | wxPoint temp4 ; | |
35944 | PyObject * obj0 = 0 ; | |
35945 | PyObject * obj1 = 0 ; | |
35946 | PyObject * obj2 = 0 ; | |
35947 | PyObject * obj3 = 0 ; | |
35948 | char * kwnames[] = { | |
35949 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
35950 | }; | |
35951 | ||
35952 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
35953 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35954 | if (!SWIG_IsOK(res1)) { | |
35955 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35956 | } | |
35957 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35958 | { | |
35959 | arg2 = &temp2; | |
35960 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
35961 | } | |
35962 | { | |
35963 | arg3 = &temp3; | |
35964 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
35965 | } | |
35966 | { | |
35967 | arg4 = &temp4; | |
35968 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
35969 | } | |
35970 | { | |
35971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35972 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
35973 | wxPyEndAllowThreads(__tstate); | |
35974 | if (PyErr_Occurred()) SWIG_fail; | |
35975 | } | |
35976 | resultobj = SWIG_Py_Void(); | |
35977 | return resultobj; | |
35978 | fail: | |
35979 | return NULL; | |
35980 | } | |
35981 | ||
35982 | ||
35983 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35984 | PyObject *resultobj = 0; | |
35985 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35986 | int arg2 ; | |
35987 | int arg3 ; | |
35988 | int arg4 ; | |
35989 | int arg5 ; | |
35990 | void *argp1 = 0 ; | |
35991 | int res1 = 0 ; | |
35992 | int val2 ; | |
35993 | int ecode2 = 0 ; | |
35994 | int val3 ; | |
35995 | int ecode3 = 0 ; | |
35996 | int val4 ; | |
35997 | int ecode4 = 0 ; | |
35998 | int val5 ; | |
35999 | int ecode5 = 0 ; | |
36000 | PyObject * obj0 = 0 ; | |
36001 | PyObject * obj1 = 0 ; | |
36002 | PyObject * obj2 = 0 ; | |
36003 | PyObject * obj3 = 0 ; | |
36004 | PyObject * obj4 = 0 ; | |
36005 | char * kwnames[] = { | |
36006 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
36007 | }; | |
36008 | ||
36009 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36010 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36011 | if (!SWIG_IsOK(res1)) { | |
36012 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36013 | } | |
36014 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36015 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36016 | if (!SWIG_IsOK(ecode2)) { | |
36017 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
36018 | } | |
36019 | arg2 = static_cast< int >(val2); | |
36020 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36021 | if (!SWIG_IsOK(ecode3)) { | |
36022 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
36023 | } | |
36024 | arg3 = static_cast< int >(val3); | |
36025 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36026 | if (!SWIG_IsOK(ecode4)) { | |
36027 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
36028 | } | |
36029 | arg4 = static_cast< int >(val4); | |
36030 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36031 | if (!SWIG_IsOK(ecode5)) { | |
36032 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
36033 | } | |
36034 | arg5 = static_cast< int >(val5); | |
36035 | { | |
36036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36037 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
36038 | wxPyEndAllowThreads(__tstate); | |
36039 | if (PyErr_Occurred()) SWIG_fail; | |
36040 | } | |
36041 | resultobj = SWIG_Py_Void(); | |
36042 | return resultobj; | |
36043 | fail: | |
36044 | return NULL; | |
36045 | } | |
36046 | ||
36047 | ||
36048 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36049 | PyObject *resultobj = 0; | |
36050 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36051 | wxRect *arg2 = 0 ; | |
36052 | void *argp1 = 0 ; | |
36053 | int res1 = 0 ; | |
36054 | wxRect temp2 ; | |
36055 | PyObject * obj0 = 0 ; | |
36056 | PyObject * obj1 = 0 ; | |
36057 | char * kwnames[] = { | |
36058 | (char *) "self",(char *) "rect", NULL | |
36059 | }; | |
36060 | ||
36061 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
36062 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36063 | if (!SWIG_IsOK(res1)) { | |
36064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36065 | } | |
36066 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36067 | { | |
36068 | arg2 = &temp2; | |
36069 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
36070 | } | |
36071 | { | |
36072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36073 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
36074 | wxPyEndAllowThreads(__tstate); | |
36075 | if (PyErr_Occurred()) SWIG_fail; | |
36076 | } | |
36077 | resultobj = SWIG_Py_Void(); | |
36078 | return resultobj; | |
36079 | fail: | |
36080 | return NULL; | |
36081 | } | |
36082 | ||
36083 | ||
36084 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36085 | PyObject *resultobj = 0; | |
36086 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36087 | int arg2 ; | |
36088 | int arg3 ; | |
36089 | int arg4 ; | |
36090 | int arg5 ; | |
36091 | double arg6 ; | |
36092 | double arg7 ; | |
36093 | void *argp1 = 0 ; | |
36094 | int res1 = 0 ; | |
36095 | int val2 ; | |
36096 | int ecode2 = 0 ; | |
36097 | int val3 ; | |
36098 | int ecode3 = 0 ; | |
36099 | int val4 ; | |
36100 | int ecode4 = 0 ; | |
36101 | int val5 ; | |
36102 | int ecode5 = 0 ; | |
36103 | double val6 ; | |
36104 | int ecode6 = 0 ; | |
36105 | double val7 ; | |
36106 | int ecode7 = 0 ; | |
36107 | PyObject * obj0 = 0 ; | |
36108 | PyObject * obj1 = 0 ; | |
36109 | PyObject * obj2 = 0 ; | |
36110 | PyObject * obj3 = 0 ; | |
36111 | PyObject * obj4 = 0 ; | |
36112 | PyObject * obj5 = 0 ; | |
36113 | PyObject * obj6 = 0 ; | |
36114 | char * kwnames[] = { | |
36115 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
36116 | }; | |
36117 | ||
36118 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
36119 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36120 | if (!SWIG_IsOK(res1)) { | |
36121 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36122 | } | |
36123 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36124 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36125 | if (!SWIG_IsOK(ecode2)) { | |
36126 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
36127 | } | |
36128 | arg2 = static_cast< int >(val2); | |
36129 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36130 | if (!SWIG_IsOK(ecode3)) { | |
36131 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
36132 | } | |
36133 | arg3 = static_cast< int >(val3); | |
36134 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36135 | if (!SWIG_IsOK(ecode4)) { | |
36136 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
36137 | } | |
36138 | arg4 = static_cast< int >(val4); | |
36139 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36140 | if (!SWIG_IsOK(ecode5)) { | |
36141 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
36142 | } | |
36143 | arg5 = static_cast< int >(val5); | |
36144 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
36145 | if (!SWIG_IsOK(ecode6)) { | |
36146 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
36147 | } | |
36148 | arg6 = static_cast< double >(val6); | |
36149 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
36150 | if (!SWIG_IsOK(ecode7)) { | |
36151 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
36152 | } | |
36153 | arg7 = static_cast< double >(val7); | |
36154 | { | |
36155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36156 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
36157 | wxPyEndAllowThreads(__tstate); | |
36158 | if (PyErr_Occurred()) SWIG_fail; | |
36159 | } | |
36160 | resultobj = SWIG_Py_Void(); | |
36161 | return resultobj; | |
36162 | fail: | |
36163 | return NULL; | |
36164 | } | |
36165 | ||
36166 | ||
36167 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36168 | PyObject *resultobj = 0; | |
36169 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36170 | wxPoint *arg2 = 0 ; | |
36171 | wxSize *arg3 = 0 ; | |
36172 | double arg4 ; | |
36173 | double arg5 ; | |
36174 | void *argp1 = 0 ; | |
36175 | int res1 = 0 ; | |
36176 | wxPoint temp2 ; | |
36177 | wxSize temp3 ; | |
36178 | double val4 ; | |
36179 | int ecode4 = 0 ; | |
36180 | double val5 ; | |
36181 | int ecode5 = 0 ; | |
36182 | PyObject * obj0 = 0 ; | |
36183 | PyObject * obj1 = 0 ; | |
36184 | PyObject * obj2 = 0 ; | |
36185 | PyObject * obj3 = 0 ; | |
36186 | PyObject * obj4 = 0 ; | |
36187 | char * kwnames[] = { | |
36188 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
36189 | }; | |
36190 | ||
36191 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36192 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36193 | if (!SWIG_IsOK(res1)) { | |
36194 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36195 | } | |
36196 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36197 | { | |
36198 | arg2 = &temp2; | |
36199 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36200 | } | |
36201 | { | |
36202 | arg3 = &temp3; | |
36203 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
36204 | } | |
36205 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
36206 | if (!SWIG_IsOK(ecode4)) { | |
36207 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
36208 | } | |
36209 | arg4 = static_cast< double >(val4); | |
36210 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
36211 | if (!SWIG_IsOK(ecode5)) { | |
36212 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
36213 | } | |
36214 | arg5 = static_cast< double >(val5); | |
36215 | { | |
36216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36217 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
36218 | wxPyEndAllowThreads(__tstate); | |
36219 | if (PyErr_Occurred()) SWIG_fail; | |
36220 | } | |
36221 | resultobj = SWIG_Py_Void(); | |
36222 | return resultobj; | |
36223 | fail: | |
36224 | return NULL; | |
36225 | } | |
36226 | ||
36227 | ||
36228 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36229 | PyObject *resultobj = 0; | |
36230 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36231 | int arg2 ; | |
36232 | int arg3 ; | |
36233 | void *argp1 = 0 ; | |
36234 | int res1 = 0 ; | |
36235 | int val2 ; | |
36236 | int ecode2 = 0 ; | |
36237 | int val3 ; | |
36238 | int ecode3 = 0 ; | |
36239 | PyObject * obj0 = 0 ; | |
36240 | PyObject * obj1 = 0 ; | |
36241 | PyObject * obj2 = 0 ; | |
36242 | char * kwnames[] = { | |
36243 | (char *) "self",(char *) "x",(char *) "y", NULL | |
36244 | }; | |
36245 | ||
36246 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36247 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36248 | if (!SWIG_IsOK(res1)) { | |
36249 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36250 | } | |
36251 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36252 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36253 | if (!SWIG_IsOK(ecode2)) { | |
36254 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
36255 | } | |
36256 | arg2 = static_cast< int >(val2); | |
36257 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36258 | if (!SWIG_IsOK(ecode3)) { | |
36259 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
36260 | } | |
36261 | arg3 = static_cast< int >(val3); | |
36262 | { | |
36263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36264 | (arg1)->DrawPoint(arg2,arg3); | |
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_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36276 | PyObject *resultobj = 0; | |
36277 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36278 | wxPoint *arg2 = 0 ; | |
36279 | void *argp1 = 0 ; | |
36280 | int res1 = 0 ; | |
36281 | wxPoint temp2 ; | |
36282 | PyObject * obj0 = 0 ; | |
36283 | PyObject * obj1 = 0 ; | |
36284 | char * kwnames[] = { | |
36285 | (char *) "self",(char *) "pt", NULL | |
36286 | }; | |
36287 | ||
36288 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
36289 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36290 | if (!SWIG_IsOK(res1)) { | |
36291 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36292 | } | |
36293 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36294 | { | |
36295 | arg2 = &temp2; | |
36296 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36297 | } | |
36298 | { | |
36299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36300 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
36301 | wxPyEndAllowThreads(__tstate); | |
36302 | if (PyErr_Occurred()) SWIG_fail; | |
36303 | } | |
36304 | resultobj = SWIG_Py_Void(); | |
36305 | return resultobj; | |
36306 | fail: | |
36307 | return NULL; | |
36308 | } | |
36309 | ||
36310 | ||
36311 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36312 | PyObject *resultobj = 0; | |
36313 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36314 | int arg2 ; | |
36315 | int arg3 ; | |
36316 | int arg4 ; | |
36317 | int arg5 ; | |
36318 | void *argp1 = 0 ; | |
36319 | int res1 = 0 ; | |
36320 | int val2 ; | |
36321 | int ecode2 = 0 ; | |
36322 | int val3 ; | |
36323 | int ecode3 = 0 ; | |
36324 | int val4 ; | |
36325 | int ecode4 = 0 ; | |
36326 | int val5 ; | |
36327 | int ecode5 = 0 ; | |
36328 | PyObject * obj0 = 0 ; | |
36329 | PyObject * obj1 = 0 ; | |
36330 | PyObject * obj2 = 0 ; | |
36331 | PyObject * obj3 = 0 ; | |
36332 | PyObject * obj4 = 0 ; | |
36333 | char * kwnames[] = { | |
36334 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
36335 | }; | |
36336 | ||
36337 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36338 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36339 | if (!SWIG_IsOK(res1)) { | |
36340 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36341 | } | |
36342 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36343 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36344 | if (!SWIG_IsOK(ecode2)) { | |
36345 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
36346 | } | |
36347 | arg2 = static_cast< int >(val2); | |
36348 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36349 | if (!SWIG_IsOK(ecode3)) { | |
36350 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
36351 | } | |
36352 | arg3 = static_cast< int >(val3); | |
36353 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36354 | if (!SWIG_IsOK(ecode4)) { | |
36355 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
36356 | } | |
36357 | arg4 = static_cast< int >(val4); | |
36358 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36359 | if (!SWIG_IsOK(ecode5)) { | |
36360 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
36361 | } | |
36362 | arg5 = static_cast< int >(val5); | |
36363 | { | |
36364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36365 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
36366 | wxPyEndAllowThreads(__tstate); | |
36367 | if (PyErr_Occurred()) SWIG_fail; | |
36368 | } | |
36369 | resultobj = SWIG_Py_Void(); | |
36370 | return resultobj; | |
36371 | fail: | |
36372 | return NULL; | |
36373 | } | |
36374 | ||
36375 | ||
36376 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36377 | PyObject *resultobj = 0; | |
36378 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36379 | wxRect *arg2 = 0 ; | |
36380 | void *argp1 = 0 ; | |
36381 | int res1 = 0 ; | |
36382 | wxRect temp2 ; | |
36383 | PyObject * obj0 = 0 ; | |
36384 | PyObject * obj1 = 0 ; | |
36385 | char * kwnames[] = { | |
36386 | (char *) "self",(char *) "rect", NULL | |
36387 | }; | |
36388 | ||
36389 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
36390 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36391 | if (!SWIG_IsOK(res1)) { | |
36392 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36393 | } | |
36394 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36395 | { | |
36396 | arg2 = &temp2; | |
36397 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
36398 | } | |
36399 | { | |
36400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36401 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
36402 | wxPyEndAllowThreads(__tstate); | |
36403 | if (PyErr_Occurred()) SWIG_fail; | |
36404 | } | |
36405 | resultobj = SWIG_Py_Void(); | |
36406 | return resultobj; | |
36407 | fail: | |
36408 | return NULL; | |
36409 | } | |
36410 | ||
36411 | ||
36412 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36413 | PyObject *resultobj = 0; | |
36414 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36415 | wxPoint *arg2 = 0 ; | |
36416 | wxSize *arg3 = 0 ; | |
36417 | void *argp1 = 0 ; | |
36418 | int res1 = 0 ; | |
36419 | wxPoint temp2 ; | |
36420 | wxSize temp3 ; | |
36421 | PyObject * obj0 = 0 ; | |
36422 | PyObject * obj1 = 0 ; | |
36423 | PyObject * obj2 = 0 ; | |
36424 | char * kwnames[] = { | |
36425 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
36426 | }; | |
36427 | ||
36428 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36429 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36430 | if (!SWIG_IsOK(res1)) { | |
36431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36432 | } | |
36433 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36434 | { | |
36435 | arg2 = &temp2; | |
36436 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36437 | } | |
36438 | { | |
36439 | arg3 = &temp3; | |
36440 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
36441 | } | |
36442 | { | |
36443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36444 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
36445 | wxPyEndAllowThreads(__tstate); | |
36446 | if (PyErr_Occurred()) SWIG_fail; | |
36447 | } | |
36448 | resultobj = SWIG_Py_Void(); | |
36449 | return resultobj; | |
36450 | fail: | |
36451 | return NULL; | |
36452 | } | |
36453 | ||
36454 | ||
36455 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36456 | PyObject *resultobj = 0; | |
36457 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36458 | int arg2 ; | |
36459 | int arg3 ; | |
36460 | int arg4 ; | |
36461 | int arg5 ; | |
36462 | double arg6 ; | |
36463 | void *argp1 = 0 ; | |
36464 | int res1 = 0 ; | |
36465 | int val2 ; | |
36466 | int ecode2 = 0 ; | |
36467 | int val3 ; | |
36468 | int ecode3 = 0 ; | |
36469 | int val4 ; | |
36470 | int ecode4 = 0 ; | |
36471 | int val5 ; | |
36472 | int ecode5 = 0 ; | |
36473 | double val6 ; | |
36474 | int ecode6 = 0 ; | |
36475 | PyObject * obj0 = 0 ; | |
36476 | PyObject * obj1 = 0 ; | |
36477 | PyObject * obj2 = 0 ; | |
36478 | PyObject * obj3 = 0 ; | |
36479 | PyObject * obj4 = 0 ; | |
36480 | PyObject * obj5 = 0 ; | |
36481 | char * kwnames[] = { | |
36482 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
36483 | }; | |
36484 | ||
36485 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
36486 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36487 | if (!SWIG_IsOK(res1)) { | |
36488 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36489 | } | |
36490 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36491 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36492 | if (!SWIG_IsOK(ecode2)) { | |
36493 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'"); | |
36494 | } | |
36495 | arg2 = static_cast< int >(val2); | |
36496 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36497 | if (!SWIG_IsOK(ecode3)) { | |
36498 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
36499 | } | |
36500 | arg3 = static_cast< int >(val3); | |
36501 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36502 | if (!SWIG_IsOK(ecode4)) { | |
36503 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
36504 | } | |
36505 | arg4 = static_cast< int >(val4); | |
36506 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36507 | if (!SWIG_IsOK(ecode5)) { | |
36508 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
36509 | } | |
36510 | arg5 = static_cast< int >(val5); | |
36511 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
36512 | if (!SWIG_IsOK(ecode6)) { | |
36513 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
36514 | } | |
36515 | arg6 = static_cast< double >(val6); | |
36516 | { | |
36517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36518 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
36519 | wxPyEndAllowThreads(__tstate); | |
36520 | if (PyErr_Occurred()) SWIG_fail; | |
36521 | } | |
36522 | resultobj = SWIG_Py_Void(); | |
36523 | return resultobj; | |
36524 | fail: | |
36525 | return NULL; | |
36526 | } | |
36527 | ||
36528 | ||
36529 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36530 | PyObject *resultobj = 0; | |
36531 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36532 | wxRect *arg2 = 0 ; | |
36533 | double arg3 ; | |
36534 | void *argp1 = 0 ; | |
36535 | int res1 = 0 ; | |
36536 | wxRect temp2 ; | |
36537 | double val3 ; | |
36538 | int ecode3 = 0 ; | |
36539 | PyObject * obj0 = 0 ; | |
36540 | PyObject * obj1 = 0 ; | |
36541 | PyObject * obj2 = 0 ; | |
36542 | char * kwnames[] = { | |
36543 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
36544 | }; | |
36545 | ||
36546 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36547 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36548 | if (!SWIG_IsOK(res1)) { | |
36549 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36550 | } | |
36551 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36552 | { | |
36553 | arg2 = &temp2; | |
36554 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
36555 | } | |
36556 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
36557 | if (!SWIG_IsOK(ecode3)) { | |
36558 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
36559 | } | |
36560 | arg3 = static_cast< double >(val3); | |
36561 | { | |
36562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36563 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
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_DrawRoundedRectanglePointSize(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 | double arg4 ; | |
36580 | void *argp1 = 0 ; | |
36581 | int res1 = 0 ; | |
36582 | wxPoint temp2 ; | |
36583 | wxSize temp3 ; | |
36584 | double val4 ; | |
36585 | int ecode4 = 0 ; | |
36586 | PyObject * obj0 = 0 ; | |
36587 | PyObject * obj1 = 0 ; | |
36588 | PyObject * obj2 = 0 ; | |
36589 | PyObject * obj3 = 0 ; | |
36590 | char * kwnames[] = { | |
36591 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
36592 | }; | |
36593 | ||
36594 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36595 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36596 | if (!SWIG_IsOK(res1)) { | |
36597 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36598 | } | |
36599 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36600 | { | |
36601 | arg2 = &temp2; | |
36602 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36603 | } | |
36604 | { | |
36605 | arg3 = &temp3; | |
36606 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
36607 | } | |
36608 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
36609 | if (!SWIG_IsOK(ecode4)) { | |
36610 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
36611 | } | |
36612 | arg4 = static_cast< double >(val4); | |
36613 | { | |
36614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36615 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
36616 | wxPyEndAllowThreads(__tstate); | |
36617 | if (PyErr_Occurred()) SWIG_fail; | |
36618 | } | |
36619 | resultobj = SWIG_Py_Void(); | |
36620 | return resultobj; | |
36621 | fail: | |
36622 | return NULL; | |
36623 | } | |
36624 | ||
36625 | ||
36626 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36627 | PyObject *resultobj = 0; | |
36628 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36629 | int arg2 ; | |
36630 | int arg3 ; | |
36631 | int arg4 ; | |
36632 | void *argp1 = 0 ; | |
36633 | int res1 = 0 ; | |
36634 | int val2 ; | |
36635 | int ecode2 = 0 ; | |
36636 | int val3 ; | |
36637 | int ecode3 = 0 ; | |
36638 | int val4 ; | |
36639 | int ecode4 = 0 ; | |
36640 | PyObject * obj0 = 0 ; | |
36641 | PyObject * obj1 = 0 ; | |
36642 | PyObject * obj2 = 0 ; | |
36643 | PyObject * obj3 = 0 ; | |
36644 | char * kwnames[] = { | |
36645 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
36646 | }; | |
36647 | ||
36648 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36649 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36650 | if (!SWIG_IsOK(res1)) { | |
36651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36652 | } | |
36653 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36654 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36655 | if (!SWIG_IsOK(ecode2)) { | |
36656 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
36657 | } | |
36658 | arg2 = static_cast< int >(val2); | |
36659 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36660 | if (!SWIG_IsOK(ecode3)) { | |
36661 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
36662 | } | |
36663 | arg3 = static_cast< int >(val3); | |
36664 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36665 | if (!SWIG_IsOK(ecode4)) { | |
36666 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
36667 | } | |
36668 | arg4 = static_cast< int >(val4); | |
36669 | { | |
36670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36671 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
36672 | wxPyEndAllowThreads(__tstate); | |
36673 | if (PyErr_Occurred()) SWIG_fail; | |
36674 | } | |
36675 | resultobj = SWIG_Py_Void(); | |
36676 | return resultobj; | |
36677 | fail: | |
36678 | return NULL; | |
36679 | } | |
36680 | ||
36681 | ||
36682 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36683 | PyObject *resultobj = 0; | |
36684 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36685 | wxPoint *arg2 = 0 ; | |
36686 | int arg3 ; | |
36687 | void *argp1 = 0 ; | |
36688 | int res1 = 0 ; | |
36689 | wxPoint temp2 ; | |
36690 | int val3 ; | |
36691 | int ecode3 = 0 ; | |
36692 | PyObject * obj0 = 0 ; | |
36693 | PyObject * obj1 = 0 ; | |
36694 | PyObject * obj2 = 0 ; | |
36695 | char * kwnames[] = { | |
36696 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
36697 | }; | |
36698 | ||
36699 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36700 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36701 | if (!SWIG_IsOK(res1)) { | |
36702 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36703 | } | |
36704 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36705 | { | |
36706 | arg2 = &temp2; | |
36707 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36708 | } | |
36709 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36710 | if (!SWIG_IsOK(ecode3)) { | |
36711 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
36712 | } | |
36713 | arg3 = static_cast< int >(val3); | |
36714 | { | |
36715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36716 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
36717 | wxPyEndAllowThreads(__tstate); | |
36718 | if (PyErr_Occurred()) SWIG_fail; | |
36719 | } | |
36720 | resultobj = SWIG_Py_Void(); | |
36721 | return resultobj; | |
36722 | fail: | |
36723 | return NULL; | |
36724 | } | |
36725 | ||
36726 | ||
36727 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36728 | PyObject *resultobj = 0; | |
36729 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36730 | int arg2 ; | |
36731 | int arg3 ; | |
36732 | int arg4 ; | |
36733 | int arg5 ; | |
36734 | void *argp1 = 0 ; | |
36735 | int res1 = 0 ; | |
36736 | int val2 ; | |
36737 | int ecode2 = 0 ; | |
36738 | int val3 ; | |
36739 | int ecode3 = 0 ; | |
36740 | int val4 ; | |
36741 | int ecode4 = 0 ; | |
36742 | int val5 ; | |
36743 | int ecode5 = 0 ; | |
36744 | PyObject * obj0 = 0 ; | |
36745 | PyObject * obj1 = 0 ; | |
36746 | PyObject * obj2 = 0 ; | |
36747 | PyObject * obj3 = 0 ; | |
36748 | PyObject * obj4 = 0 ; | |
36749 | char * kwnames[] = { | |
36750 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
36751 | }; | |
36752 | ||
36753 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36754 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36755 | if (!SWIG_IsOK(res1)) { | |
36756 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36757 | } | |
36758 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36759 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36760 | if (!SWIG_IsOK(ecode2)) { | |
36761 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
36762 | } | |
36763 | arg2 = static_cast< int >(val2); | |
36764 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36765 | if (!SWIG_IsOK(ecode3)) { | |
36766 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', 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_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
36772 | } | |
36773 | arg4 = static_cast< int >(val4); | |
36774 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36775 | if (!SWIG_IsOK(ecode5)) { | |
36776 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
36777 | } | |
36778 | arg5 = static_cast< int >(val5); | |
36779 | { | |
36780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36781 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
36782 | wxPyEndAllowThreads(__tstate); | |
36783 | if (PyErr_Occurred()) SWIG_fail; | |
36784 | } | |
36785 | resultobj = SWIG_Py_Void(); | |
36786 | return resultobj; | |
36787 | fail: | |
36788 | return NULL; | |
36789 | } | |
36790 | ||
36791 | ||
36792 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36793 | PyObject *resultobj = 0; | |
36794 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36795 | wxRect *arg2 = 0 ; | |
36796 | void *argp1 = 0 ; | |
36797 | int res1 = 0 ; | |
36798 | wxRect temp2 ; | |
36799 | PyObject * obj0 = 0 ; | |
36800 | PyObject * obj1 = 0 ; | |
36801 | char * kwnames[] = { | |
36802 | (char *) "self",(char *) "rect", NULL | |
36803 | }; | |
36804 | ||
36805 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
36806 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36807 | if (!SWIG_IsOK(res1)) { | |
36808 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36809 | } | |
36810 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36811 | { | |
36812 | arg2 = &temp2; | |
36813 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
36814 | } | |
36815 | { | |
36816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36817 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
36818 | wxPyEndAllowThreads(__tstate); | |
36819 | if (PyErr_Occurred()) SWIG_fail; | |
36820 | } | |
36821 | resultobj = SWIG_Py_Void(); | |
36822 | return resultobj; | |
36823 | fail: | |
36824 | return NULL; | |
36825 | } | |
36826 | ||
36827 | ||
36828 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36829 | PyObject *resultobj = 0; | |
36830 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36831 | wxPoint *arg2 = 0 ; | |
36832 | wxSize *arg3 = 0 ; | |
36833 | void *argp1 = 0 ; | |
36834 | int res1 = 0 ; | |
36835 | wxPoint temp2 ; | |
36836 | wxSize temp3 ; | |
36837 | PyObject * obj0 = 0 ; | |
36838 | PyObject * obj1 = 0 ; | |
36839 | PyObject * obj2 = 0 ; | |
36840 | char * kwnames[] = { | |
36841 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
36842 | }; | |
36843 | ||
36844 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36845 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36846 | if (!SWIG_IsOK(res1)) { | |
36847 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36848 | } | |
36849 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36850 | { | |
36851 | arg2 = &temp2; | |
36852 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36853 | } | |
36854 | { | |
36855 | arg3 = &temp3; | |
36856 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
36857 | } | |
36858 | { | |
36859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36860 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
36861 | wxPyEndAllowThreads(__tstate); | |
36862 | if (PyErr_Occurred()) SWIG_fail; | |
36863 | } | |
36864 | resultobj = SWIG_Py_Void(); | |
36865 | return resultobj; | |
36866 | fail: | |
36867 | return NULL; | |
36868 | } | |
36869 | ||
36870 | ||
36871 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36872 | PyObject *resultobj = 0; | |
36873 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36874 | wxIcon *arg2 = 0 ; | |
36875 | int arg3 ; | |
36876 | int arg4 ; | |
36877 | void *argp1 = 0 ; | |
36878 | int res1 = 0 ; | |
36879 | void *argp2 = 0 ; | |
36880 | int res2 = 0 ; | |
36881 | int val3 ; | |
36882 | int ecode3 = 0 ; | |
36883 | int val4 ; | |
36884 | int ecode4 = 0 ; | |
36885 | PyObject * obj0 = 0 ; | |
36886 | PyObject * obj1 = 0 ; | |
36887 | PyObject * obj2 = 0 ; | |
36888 | PyObject * obj3 = 0 ; | |
36889 | char * kwnames[] = { | |
36890 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
36891 | }; | |
36892 | ||
36893 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36894 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36895 | if (!SWIG_IsOK(res1)) { | |
36896 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36897 | } | |
36898 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36899 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
36900 | if (!SWIG_IsOK(res2)) { | |
36901 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
36902 | } | |
36903 | if (!argp2) { | |
36904 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
36905 | } | |
36906 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
36907 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36908 | if (!SWIG_IsOK(ecode3)) { | |
36909 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
36910 | } | |
36911 | arg3 = static_cast< int >(val3); | |
36912 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36913 | if (!SWIG_IsOK(ecode4)) { | |
36914 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
36915 | } | |
36916 | arg4 = static_cast< int >(val4); | |
36917 | { | |
36918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36919 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
36920 | wxPyEndAllowThreads(__tstate); | |
36921 | if (PyErr_Occurred()) SWIG_fail; | |
36922 | } | |
36923 | resultobj = SWIG_Py_Void(); | |
36924 | return resultobj; | |
36925 | fail: | |
36926 | return NULL; | |
36927 | } | |
36928 | ||
36929 | ||
36930 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36931 | PyObject *resultobj = 0; | |
36932 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36933 | wxIcon *arg2 = 0 ; | |
36934 | wxPoint *arg3 = 0 ; | |
36935 | void *argp1 = 0 ; | |
36936 | int res1 = 0 ; | |
36937 | void *argp2 = 0 ; | |
36938 | int res2 = 0 ; | |
36939 | wxPoint temp3 ; | |
36940 | PyObject * obj0 = 0 ; | |
36941 | PyObject * obj1 = 0 ; | |
36942 | PyObject * obj2 = 0 ; | |
36943 | char * kwnames[] = { | |
36944 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
36945 | }; | |
36946 | ||
36947 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36948 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36949 | if (!SWIG_IsOK(res1)) { | |
36950 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36951 | } | |
36952 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36953 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
36954 | if (!SWIG_IsOK(res2)) { | |
36955 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
36956 | } | |
36957 | if (!argp2) { | |
36958 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
36959 | } | |
36960 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
36961 | { | |
36962 | arg3 = &temp3; | |
36963 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36964 | } | |
36965 | { | |
36966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36967 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
36968 | wxPyEndAllowThreads(__tstate); | |
36969 | if (PyErr_Occurred()) SWIG_fail; | |
36970 | } | |
36971 | resultobj = SWIG_Py_Void(); | |
36972 | return resultobj; | |
36973 | fail: | |
36974 | return NULL; | |
36975 | } | |
36976 | ||
36977 | ||
36978 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36979 | PyObject *resultobj = 0; | |
36980 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36981 | wxBitmap *arg2 = 0 ; | |
36982 | int arg3 ; | |
36983 | int arg4 ; | |
36984 | bool arg5 = (bool) false ; | |
36985 | void *argp1 = 0 ; | |
36986 | int res1 = 0 ; | |
36987 | void *argp2 = 0 ; | |
36988 | int res2 = 0 ; | |
36989 | int val3 ; | |
36990 | int ecode3 = 0 ; | |
36991 | int val4 ; | |
36992 | int ecode4 = 0 ; | |
36993 | bool val5 ; | |
36994 | int ecode5 = 0 ; | |
36995 | PyObject * obj0 = 0 ; | |
36996 | PyObject * obj1 = 0 ; | |
36997 | PyObject * obj2 = 0 ; | |
36998 | PyObject * obj3 = 0 ; | |
36999 | PyObject * obj4 = 0 ; | |
37000 | char * kwnames[] = { | |
37001 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
37002 | }; | |
37003 | ||
37004 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37005 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37006 | if (!SWIG_IsOK(res1)) { | |
37007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37008 | } | |
37009 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37010 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
37011 | if (!SWIG_IsOK(res2)) { | |
37012 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
37013 | } | |
37014 | if (!argp2) { | |
37015 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
37016 | } | |
37017 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
37018 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37019 | if (!SWIG_IsOK(ecode3)) { | |
37020 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
37021 | } | |
37022 | arg3 = static_cast< int >(val3); | |
37023 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37024 | if (!SWIG_IsOK(ecode4)) { | |
37025 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
37026 | } | |
37027 | arg4 = static_cast< int >(val4); | |
37028 | if (obj4) { | |
37029 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
37030 | if (!SWIG_IsOK(ecode5)) { | |
37031 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
37032 | } | |
37033 | arg5 = static_cast< bool >(val5); | |
37034 | } | |
37035 | { | |
37036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37037 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
37038 | wxPyEndAllowThreads(__tstate); | |
37039 | if (PyErr_Occurred()) SWIG_fail; | |
37040 | } | |
37041 | resultobj = SWIG_Py_Void(); | |
37042 | return resultobj; | |
37043 | fail: | |
37044 | return NULL; | |
37045 | } | |
37046 | ||
37047 | ||
37048 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37049 | PyObject *resultobj = 0; | |
37050 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37051 | wxBitmap *arg2 = 0 ; | |
37052 | wxPoint *arg3 = 0 ; | |
37053 | bool arg4 = (bool) false ; | |
37054 | void *argp1 = 0 ; | |
37055 | int res1 = 0 ; | |
37056 | void *argp2 = 0 ; | |
37057 | int res2 = 0 ; | |
37058 | wxPoint temp3 ; | |
37059 | bool val4 ; | |
37060 | int ecode4 = 0 ; | |
37061 | PyObject * obj0 = 0 ; | |
37062 | PyObject * obj1 = 0 ; | |
37063 | PyObject * obj2 = 0 ; | |
37064 | PyObject * obj3 = 0 ; | |
37065 | char * kwnames[] = { | |
37066 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
37067 | }; | |
37068 | ||
37069 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37070 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37071 | if (!SWIG_IsOK(res1)) { | |
37072 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37073 | } | |
37074 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37075 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
37076 | if (!SWIG_IsOK(res2)) { | |
37077 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
37078 | } | |
37079 | if (!argp2) { | |
37080 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
37081 | } | |
37082 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
37083 | { | |
37084 | arg3 = &temp3; | |
37085 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37086 | } | |
37087 | if (obj3) { | |
37088 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
37089 | if (!SWIG_IsOK(ecode4)) { | |
37090 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
37091 | } | |
37092 | arg4 = static_cast< bool >(val4); | |
37093 | } | |
37094 | { | |
37095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37096 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
37097 | wxPyEndAllowThreads(__tstate); | |
37098 | if (PyErr_Occurred()) SWIG_fail; | |
37099 | } | |
37100 | resultobj = SWIG_Py_Void(); | |
37101 | return resultobj; | |
37102 | fail: | |
37103 | return NULL; | |
37104 | } | |
37105 | ||
37106 | ||
37107 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37108 | PyObject *resultobj = 0; | |
37109 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37110 | wxString *arg2 = 0 ; | |
37111 | int arg3 ; | |
37112 | int arg4 ; | |
37113 | void *argp1 = 0 ; | |
37114 | int res1 = 0 ; | |
37115 | bool temp2 = false ; | |
37116 | int val3 ; | |
37117 | int ecode3 = 0 ; | |
37118 | int val4 ; | |
37119 | int ecode4 = 0 ; | |
37120 | PyObject * obj0 = 0 ; | |
37121 | PyObject * obj1 = 0 ; | |
37122 | PyObject * obj2 = 0 ; | |
37123 | PyObject * obj3 = 0 ; | |
37124 | char * kwnames[] = { | |
37125 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
37126 | }; | |
37127 | ||
37128 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37129 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37130 | if (!SWIG_IsOK(res1)) { | |
37131 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37132 | } | |
37133 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37134 | { | |
37135 | arg2 = wxString_in_helper(obj1); | |
37136 | if (arg2 == NULL) SWIG_fail; | |
37137 | temp2 = true; | |
37138 | } | |
37139 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37140 | if (!SWIG_IsOK(ecode3)) { | |
37141 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
37142 | } | |
37143 | arg3 = static_cast< int >(val3); | |
37144 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37145 | if (!SWIG_IsOK(ecode4)) { | |
37146 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
37147 | } | |
37148 | arg4 = static_cast< int >(val4); | |
37149 | { | |
37150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37151 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
37152 | wxPyEndAllowThreads(__tstate); | |
37153 | if (PyErr_Occurred()) SWIG_fail; | |
37154 | } | |
37155 | resultobj = SWIG_Py_Void(); | |
37156 | { | |
37157 | if (temp2) | |
37158 | delete arg2; | |
37159 | } | |
37160 | return resultobj; | |
37161 | fail: | |
37162 | { | |
37163 | if (temp2) | |
37164 | delete arg2; | |
37165 | } | |
37166 | return NULL; | |
37167 | } | |
37168 | ||
37169 | ||
37170 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37171 | PyObject *resultobj = 0; | |
37172 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37173 | wxString *arg2 = 0 ; | |
37174 | wxPoint *arg3 = 0 ; | |
37175 | void *argp1 = 0 ; | |
37176 | int res1 = 0 ; | |
37177 | bool temp2 = false ; | |
37178 | wxPoint temp3 ; | |
37179 | PyObject * obj0 = 0 ; | |
37180 | PyObject * obj1 = 0 ; | |
37181 | PyObject * obj2 = 0 ; | |
37182 | char * kwnames[] = { | |
37183 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
37184 | }; | |
37185 | ||
37186 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37187 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37188 | if (!SWIG_IsOK(res1)) { | |
37189 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37190 | } | |
37191 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37192 | { | |
37193 | arg2 = wxString_in_helper(obj1); | |
37194 | if (arg2 == NULL) SWIG_fail; | |
37195 | temp2 = true; | |
37196 | } | |
37197 | { | |
37198 | arg3 = &temp3; | |
37199 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37200 | } | |
37201 | { | |
37202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37203 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
37204 | wxPyEndAllowThreads(__tstate); | |
37205 | if (PyErr_Occurred()) SWIG_fail; | |
37206 | } | |
37207 | resultobj = SWIG_Py_Void(); | |
37208 | { | |
37209 | if (temp2) | |
37210 | delete arg2; | |
37211 | } | |
37212 | return resultobj; | |
37213 | fail: | |
37214 | { | |
37215 | if (temp2) | |
37216 | delete arg2; | |
37217 | } | |
37218 | return NULL; | |
37219 | } | |
37220 | ||
37221 | ||
37222 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37223 | PyObject *resultobj = 0; | |
37224 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37225 | wxString *arg2 = 0 ; | |
37226 | int arg3 ; | |
37227 | int arg4 ; | |
37228 | double arg5 ; | |
37229 | void *argp1 = 0 ; | |
37230 | int res1 = 0 ; | |
37231 | bool temp2 = false ; | |
37232 | int val3 ; | |
37233 | int ecode3 = 0 ; | |
37234 | int val4 ; | |
37235 | int ecode4 = 0 ; | |
37236 | double val5 ; | |
37237 | int ecode5 = 0 ; | |
37238 | PyObject * obj0 = 0 ; | |
37239 | PyObject * obj1 = 0 ; | |
37240 | PyObject * obj2 = 0 ; | |
37241 | PyObject * obj3 = 0 ; | |
37242 | PyObject * obj4 = 0 ; | |
37243 | char * kwnames[] = { | |
37244 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
37245 | }; | |
37246 | ||
37247 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37248 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37249 | if (!SWIG_IsOK(res1)) { | |
37250 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37251 | } | |
37252 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37253 | { | |
37254 | arg2 = wxString_in_helper(obj1); | |
37255 | if (arg2 == NULL) SWIG_fail; | |
37256 | temp2 = true; | |
37257 | } | |
37258 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37259 | if (!SWIG_IsOK(ecode3)) { | |
37260 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
37261 | } | |
37262 | arg3 = static_cast< int >(val3); | |
37263 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37264 | if (!SWIG_IsOK(ecode4)) { | |
37265 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
37266 | } | |
37267 | arg4 = static_cast< int >(val4); | |
37268 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
37269 | if (!SWIG_IsOK(ecode5)) { | |
37270 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
37271 | } | |
37272 | arg5 = static_cast< double >(val5); | |
37273 | { | |
37274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37275 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
37276 | wxPyEndAllowThreads(__tstate); | |
37277 | if (PyErr_Occurred()) SWIG_fail; | |
37278 | } | |
37279 | resultobj = SWIG_Py_Void(); | |
37280 | { | |
37281 | if (temp2) | |
37282 | delete arg2; | |
37283 | } | |
37284 | return resultobj; | |
37285 | fail: | |
37286 | { | |
37287 | if (temp2) | |
37288 | delete arg2; | |
37289 | } | |
37290 | return NULL; | |
37291 | } | |
37292 | ||
37293 | ||
37294 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37295 | PyObject *resultobj = 0; | |
37296 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37297 | wxString *arg2 = 0 ; | |
37298 | wxPoint *arg3 = 0 ; | |
37299 | double arg4 ; | |
37300 | void *argp1 = 0 ; | |
37301 | int res1 = 0 ; | |
37302 | bool temp2 = false ; | |
37303 | wxPoint temp3 ; | |
37304 | double val4 ; | |
37305 | int ecode4 = 0 ; | |
37306 | PyObject * obj0 = 0 ; | |
37307 | PyObject * obj1 = 0 ; | |
37308 | PyObject * obj2 = 0 ; | |
37309 | PyObject * obj3 = 0 ; | |
37310 | char * kwnames[] = { | |
37311 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
37312 | }; | |
37313 | ||
37314 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37315 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37316 | if (!SWIG_IsOK(res1)) { | |
37317 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37318 | } | |
37319 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37320 | { | |
37321 | arg2 = wxString_in_helper(obj1); | |
37322 | if (arg2 == NULL) SWIG_fail; | |
37323 | temp2 = true; | |
37324 | } | |
37325 | { | |
37326 | arg3 = &temp3; | |
37327 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37328 | } | |
37329 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
37330 | if (!SWIG_IsOK(ecode4)) { | |
37331 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
37332 | } | |
37333 | arg4 = static_cast< double >(val4); | |
37334 | { | |
37335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37336 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
37337 | wxPyEndAllowThreads(__tstate); | |
37338 | if (PyErr_Occurred()) SWIG_fail; | |
37339 | } | |
37340 | resultobj = SWIG_Py_Void(); | |
37341 | { | |
37342 | if (temp2) | |
37343 | delete arg2; | |
37344 | } | |
37345 | return resultobj; | |
37346 | fail: | |
37347 | { | |
37348 | if (temp2) | |
37349 | delete arg2; | |
37350 | } | |
37351 | return NULL; | |
37352 | } | |
37353 | ||
37354 | ||
37355 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37356 | PyObject *resultobj = 0; | |
37357 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37358 | int arg2 ; | |
37359 | wxPoint *arg3 = (wxPoint *) 0 ; | |
37360 | int arg4 = (int) 0 ; | |
37361 | int arg5 = (int) 0 ; | |
37362 | void *argp1 = 0 ; | |
37363 | int res1 = 0 ; | |
37364 | int val4 ; | |
37365 | int ecode4 = 0 ; | |
37366 | int val5 ; | |
37367 | int ecode5 = 0 ; | |
37368 | PyObject * obj0 = 0 ; | |
37369 | PyObject * obj1 = 0 ; | |
37370 | PyObject * obj2 = 0 ; | |
37371 | PyObject * obj3 = 0 ; | |
37372 | char * kwnames[] = { | |
37373 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
37374 | }; | |
37375 | ||
37376 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37377 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37378 | if (!SWIG_IsOK(res1)) { | |
37379 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37380 | } | |
37381 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37382 | { | |
37383 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
37384 | if (arg3 == NULL) SWIG_fail; | |
37385 | } | |
37386 | if (obj2) { | |
37387 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
37388 | if (!SWIG_IsOK(ecode4)) { | |
37389 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
37390 | } | |
37391 | arg4 = static_cast< int >(val4); | |
37392 | } | |
37393 | if (obj3) { | |
37394 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
37395 | if (!SWIG_IsOK(ecode5)) { | |
37396 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
37397 | } | |
37398 | arg5 = static_cast< int >(val5); | |
37399 | } | |
37400 | { | |
37401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37402 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
37403 | wxPyEndAllowThreads(__tstate); | |
37404 | if (PyErr_Occurred()) SWIG_fail; | |
37405 | } | |
37406 | resultobj = SWIG_Py_Void(); | |
37407 | { | |
37408 | if (arg3) delete [] arg3; | |
37409 | } | |
37410 | return resultobj; | |
37411 | fail: | |
37412 | { | |
37413 | if (arg3) delete [] arg3; | |
37414 | } | |
37415 | return NULL; | |
37416 | } | |
37417 | ||
37418 | ||
37419 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37420 | PyObject *resultobj = 0; | |
37421 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37422 | int arg2 ; | |
37423 | wxPoint *arg3 = (wxPoint *) 0 ; | |
37424 | int arg4 = (int) 0 ; | |
37425 | int arg5 = (int) 0 ; | |
37426 | int arg6 = (int) wxODDEVEN_RULE ; | |
37427 | void *argp1 = 0 ; | |
37428 | int res1 = 0 ; | |
37429 | int val4 ; | |
37430 | int ecode4 = 0 ; | |
37431 | int val5 ; | |
37432 | int ecode5 = 0 ; | |
37433 | int val6 ; | |
37434 | int ecode6 = 0 ; | |
37435 | PyObject * obj0 = 0 ; | |
37436 | PyObject * obj1 = 0 ; | |
37437 | PyObject * obj2 = 0 ; | |
37438 | PyObject * obj3 = 0 ; | |
37439 | PyObject * obj4 = 0 ; | |
37440 | char * kwnames[] = { | |
37441 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
37442 | }; | |
37443 | ||
37444 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37445 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37446 | if (!SWIG_IsOK(res1)) { | |
37447 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37448 | } | |
37449 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37450 | { | |
37451 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
37452 | if (arg3 == NULL) SWIG_fail; | |
37453 | } | |
37454 | if (obj2) { | |
37455 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
37456 | if (!SWIG_IsOK(ecode4)) { | |
37457 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
37458 | } | |
37459 | arg4 = static_cast< int >(val4); | |
37460 | } | |
37461 | if (obj3) { | |
37462 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
37463 | if (!SWIG_IsOK(ecode5)) { | |
37464 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
37465 | } | |
37466 | arg5 = static_cast< int >(val5); | |
37467 | } | |
37468 | if (obj4) { | |
37469 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
37470 | if (!SWIG_IsOK(ecode6)) { | |
37471 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
37472 | } | |
37473 | arg6 = static_cast< int >(val6); | |
37474 | } | |
37475 | { | |
37476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37477 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
37478 | wxPyEndAllowThreads(__tstate); | |
37479 | if (PyErr_Occurred()) SWIG_fail; | |
37480 | } | |
37481 | resultobj = SWIG_Py_Void(); | |
37482 | { | |
37483 | if (arg3) delete [] arg3; | |
37484 | } | |
37485 | return resultobj; | |
37486 | fail: | |
37487 | { | |
37488 | if (arg3) delete [] arg3; | |
37489 | } | |
37490 | return NULL; | |
37491 | } | |
37492 | ||
37493 | ||
37494 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37495 | PyObject *resultobj = 0; | |
37496 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37497 | wxString *arg2 = 0 ; | |
37498 | wxRect *arg3 = 0 ; | |
37499 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
37500 | int arg5 = (int) -1 ; | |
37501 | void *argp1 = 0 ; | |
37502 | int res1 = 0 ; | |
37503 | bool temp2 = false ; | |
37504 | wxRect temp3 ; | |
37505 | int val4 ; | |
37506 | int ecode4 = 0 ; | |
37507 | int val5 ; | |
37508 | int ecode5 = 0 ; | |
37509 | PyObject * obj0 = 0 ; | |
37510 | PyObject * obj1 = 0 ; | |
37511 | PyObject * obj2 = 0 ; | |
37512 | PyObject * obj3 = 0 ; | |
37513 | PyObject * obj4 = 0 ; | |
37514 | char * kwnames[] = { | |
37515 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
37516 | }; | |
37517 | ||
37518 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37519 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37520 | if (!SWIG_IsOK(res1)) { | |
37521 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37522 | } | |
37523 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37524 | { | |
37525 | arg2 = wxString_in_helper(obj1); | |
37526 | if (arg2 == NULL) SWIG_fail; | |
37527 | temp2 = true; | |
37528 | } | |
37529 | { | |
37530 | arg3 = &temp3; | |
37531 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
37532 | } | |
37533 | if (obj3) { | |
37534 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37535 | if (!SWIG_IsOK(ecode4)) { | |
37536 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
37537 | } | |
37538 | arg4 = static_cast< int >(val4); | |
37539 | } | |
37540 | if (obj4) { | |
37541 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37542 | if (!SWIG_IsOK(ecode5)) { | |
37543 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
37544 | } | |
37545 | arg5 = static_cast< int >(val5); | |
37546 | } | |
37547 | { | |
37548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37549 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
37550 | wxPyEndAllowThreads(__tstate); | |
37551 | if (PyErr_Occurred()) SWIG_fail; | |
37552 | } | |
37553 | resultobj = SWIG_Py_Void(); | |
37554 | { | |
37555 | if (temp2) | |
37556 | delete arg2; | |
37557 | } | |
37558 | return resultobj; | |
37559 | fail: | |
37560 | { | |
37561 | if (temp2) | |
37562 | delete arg2; | |
37563 | } | |
37564 | return NULL; | |
37565 | } | |
37566 | ||
37567 | ||
37568 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37569 | PyObject *resultobj = 0; | |
37570 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37571 | wxString *arg2 = 0 ; | |
37572 | wxBitmap *arg3 = 0 ; | |
37573 | wxRect *arg4 = 0 ; | |
37574 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
37575 | int arg6 = (int) -1 ; | |
37576 | void *argp1 = 0 ; | |
37577 | int res1 = 0 ; | |
37578 | bool temp2 = false ; | |
37579 | void *argp3 = 0 ; | |
37580 | int res3 = 0 ; | |
37581 | wxRect temp4 ; | |
37582 | int val5 ; | |
37583 | int ecode5 = 0 ; | |
37584 | int val6 ; | |
37585 | int ecode6 = 0 ; | |
37586 | PyObject * obj0 = 0 ; | |
37587 | PyObject * obj1 = 0 ; | |
37588 | PyObject * obj2 = 0 ; | |
37589 | PyObject * obj3 = 0 ; | |
37590 | PyObject * obj4 = 0 ; | |
37591 | PyObject * obj5 = 0 ; | |
37592 | char * kwnames[] = { | |
37593 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
37594 | }; | |
37595 | ||
37596 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
37597 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37598 | if (!SWIG_IsOK(res1)) { | |
37599 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37600 | } | |
37601 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37602 | { | |
37603 | arg2 = wxString_in_helper(obj1); | |
37604 | if (arg2 == NULL) SWIG_fail; | |
37605 | temp2 = true; | |
37606 | } | |
37607 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
37608 | if (!SWIG_IsOK(res3)) { | |
37609 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
37610 | } | |
37611 | if (!argp3) { | |
37612 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
37613 | } | |
37614 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
37615 | { | |
37616 | arg4 = &temp4; | |
37617 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
37618 | } | |
37619 | if (obj4) { | |
37620 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37621 | if (!SWIG_IsOK(ecode5)) { | |
37622 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
37623 | } | |
37624 | arg5 = static_cast< int >(val5); | |
37625 | } | |
37626 | if (obj5) { | |
37627 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
37628 | if (!SWIG_IsOK(ecode6)) { | |
37629 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
37630 | } | |
37631 | arg6 = static_cast< int >(val6); | |
37632 | } | |
37633 | { | |
37634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37635 | (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
37636 | wxPyEndAllowThreads(__tstate); | |
37637 | if (PyErr_Occurred()) SWIG_fail; | |
37638 | } | |
37639 | resultobj = SWIG_Py_Void(); | |
37640 | { | |
37641 | if (temp2) | |
37642 | delete arg2; | |
37643 | } | |
37644 | return resultobj; | |
37645 | fail: | |
37646 | { | |
37647 | if (temp2) | |
37648 | delete arg2; | |
37649 | } | |
37650 | return NULL; | |
37651 | } | |
37652 | ||
37653 | ||
37654 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37655 | PyObject *resultobj = 0; | |
37656 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37657 | int arg2 ; | |
37658 | wxPoint *arg3 = (wxPoint *) 0 ; | |
37659 | void *argp1 = 0 ; | |
37660 | int res1 = 0 ; | |
37661 | PyObject * obj0 = 0 ; | |
37662 | PyObject * obj1 = 0 ; | |
37663 | char * kwnames[] = { | |
37664 | (char *) "self",(char *) "points", NULL | |
37665 | }; | |
37666 | ||
37667 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
37668 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37669 | if (!SWIG_IsOK(res1)) { | |
37670 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37671 | } | |
37672 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37673 | { | |
37674 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
37675 | if (arg3 == NULL) SWIG_fail; | |
37676 | } | |
37677 | { | |
37678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37679 | (arg1)->DrawSpline(arg2,arg3); | |
37680 | wxPyEndAllowThreads(__tstate); | |
37681 | if (PyErr_Occurred()) SWIG_fail; | |
37682 | } | |
37683 | resultobj = SWIG_Py_Void(); | |
37684 | { | |
37685 | if (arg3) delete [] arg3; | |
37686 | } | |
37687 | return resultobj; | |
37688 | fail: | |
37689 | { | |
37690 | if (arg3) delete [] arg3; | |
37691 | } | |
37692 | return NULL; | |
37693 | } | |
37694 | ||
37695 | ||
37696 | SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
37697 | PyObject *resultobj = 0; | |
37698 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37699 | void *argp1 = 0 ; | |
37700 | int res1 = 0 ; | |
37701 | PyObject *swig_obj[1] ; | |
37702 | ||
37703 | if (!args) SWIG_fail; | |
37704 | swig_obj[0] = args; | |
37705 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37706 | if (!SWIG_IsOK(res1)) { | |
37707 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37708 | } | |
37709 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37710 | { | |
37711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37712 | (arg1)->Clear(); | |
37713 | wxPyEndAllowThreads(__tstate); | |
37714 | if (PyErr_Occurred()) SWIG_fail; | |
37715 | } | |
37716 | resultobj = SWIG_Py_Void(); | |
37717 | return resultobj; | |
37718 | fail: | |
37719 | return NULL; | |
37720 | } | |
37721 | ||
37722 | ||
37723 | SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37724 | PyObject *resultobj = 0; | |
37725 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37726 | wxFont *arg2 = 0 ; | |
37727 | void *argp1 = 0 ; | |
37728 | int res1 = 0 ; | |
37729 | void *argp2 = 0 ; | |
37730 | int res2 = 0 ; | |
37731 | PyObject * obj0 = 0 ; | |
37732 | PyObject * obj1 = 0 ; | |
37733 | char * kwnames[] = { | |
37734 | (char *) "self",(char *) "font", NULL | |
37735 | }; | |
37736 | ||
37737 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
37738 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37739 | if (!SWIG_IsOK(res1)) { | |
37740 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37741 | } | |
37742 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37743 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
37744 | if (!SWIG_IsOK(res2)) { | |
37745 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
37746 | } | |
37747 | if (!argp2) { | |
37748 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
37749 | } | |
37750 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
37751 | { | |
37752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37753 | (arg1)->SetFont((wxFont const &)*arg2); | |
37754 | wxPyEndAllowThreads(__tstate); | |
37755 | if (PyErr_Occurred()) SWIG_fail; | |
37756 | } | |
37757 | resultobj = SWIG_Py_Void(); | |
37758 | return resultobj; | |
37759 | fail: | |
37760 | return NULL; | |
37761 | } | |
37762 | ||
37763 | ||
37764 | SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37765 | PyObject *resultobj = 0; | |
37766 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37767 | wxPen *arg2 = 0 ; | |
37768 | void *argp1 = 0 ; | |
37769 | int res1 = 0 ; | |
37770 | void *argp2 = 0 ; | |
37771 | int res2 = 0 ; | |
37772 | PyObject * obj0 = 0 ; | |
37773 | PyObject * obj1 = 0 ; | |
37774 | char * kwnames[] = { | |
37775 | (char *) "self",(char *) "pen", NULL | |
37776 | }; | |
37777 | ||
37778 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
37779 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37780 | if (!SWIG_IsOK(res1)) { | |
37781 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37782 | } | |
37783 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37784 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
37785 | if (!SWIG_IsOK(res2)) { | |
37786 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
37787 | } | |
37788 | if (!argp2) { | |
37789 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
37790 | } | |
37791 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
37792 | { | |
37793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37794 | (arg1)->SetPen((wxPen const &)*arg2); | |
37795 | wxPyEndAllowThreads(__tstate); | |
37796 | if (PyErr_Occurred()) SWIG_fail; | |
37797 | } | |
37798 | resultobj = SWIG_Py_Void(); | |
37799 | return resultobj; | |
37800 | fail: | |
37801 | return NULL; | |
37802 | } | |
37803 | ||
37804 | ||
37805 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37806 | PyObject *resultobj = 0; | |
37807 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37808 | wxBrush *arg2 = 0 ; | |
37809 | void *argp1 = 0 ; | |
37810 | int res1 = 0 ; | |
37811 | void *argp2 = 0 ; | |
37812 | int res2 = 0 ; | |
37813 | PyObject * obj0 = 0 ; | |
37814 | PyObject * obj1 = 0 ; | |
37815 | char * kwnames[] = { | |
37816 | (char *) "self",(char *) "brush", NULL | |
37817 | }; | |
37818 | ||
37819 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
37820 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37821 | if (!SWIG_IsOK(res1)) { | |
37822 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37823 | } | |
37824 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37825 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
37826 | if (!SWIG_IsOK(res2)) { | |
37827 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
37828 | } | |
37829 | if (!argp2) { | |
37830 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
37831 | } | |
37832 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
37833 | { | |
37834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37835 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
37836 | wxPyEndAllowThreads(__tstate); | |
37837 | if (PyErr_Occurred()) SWIG_fail; | |
37838 | } | |
37839 | resultobj = SWIG_Py_Void(); | |
37840 | return resultobj; | |
37841 | fail: | |
37842 | return NULL; | |
37843 | } | |
37844 | ||
37845 | ||
37846 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37847 | PyObject *resultobj = 0; | |
37848 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37849 | wxBrush *arg2 = 0 ; | |
37850 | void *argp1 = 0 ; | |
37851 | int res1 = 0 ; | |
37852 | void *argp2 = 0 ; | |
37853 | int res2 = 0 ; | |
37854 | PyObject * obj0 = 0 ; | |
37855 | PyObject * obj1 = 0 ; | |
37856 | char * kwnames[] = { | |
37857 | (char *) "self",(char *) "brush", NULL | |
37858 | }; | |
37859 | ||
37860 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
37861 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37862 | if (!SWIG_IsOK(res1)) { | |
37863 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37864 | } | |
37865 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37866 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
37867 | if (!SWIG_IsOK(res2)) { | |
37868 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
37869 | } | |
37870 | if (!argp2) { | |
37871 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
37872 | } | |
37873 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
37874 | { | |
37875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37876 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
37877 | wxPyEndAllowThreads(__tstate); | |
37878 | if (PyErr_Occurred()) SWIG_fail; | |
37879 | } | |
37880 | resultobj = SWIG_Py_Void(); | |
37881 | return resultobj; | |
37882 | fail: | |
37883 | return NULL; | |
37884 | } | |
37885 | ||
37886 | ||
37887 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37888 | PyObject *resultobj = 0; | |
37889 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37890 | int arg2 ; | |
37891 | void *argp1 = 0 ; | |
37892 | int res1 = 0 ; | |
37893 | int val2 ; | |
37894 | int ecode2 = 0 ; | |
37895 | PyObject * obj0 = 0 ; | |
37896 | PyObject * obj1 = 0 ; | |
37897 | char * kwnames[] = { | |
37898 | (char *) "self",(char *) "mode", NULL | |
37899 | }; | |
37900 | ||
37901 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
37902 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37903 | if (!SWIG_IsOK(res1)) { | |
37904 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37905 | } | |
37906 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37907 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37908 | if (!SWIG_IsOK(ecode2)) { | |
37909 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
37910 | } | |
37911 | arg2 = static_cast< int >(val2); | |
37912 | { | |
37913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37914 | (arg1)->SetBackgroundMode(arg2); | |
37915 | wxPyEndAllowThreads(__tstate); | |
37916 | if (PyErr_Occurred()) SWIG_fail; | |
37917 | } | |
37918 | resultobj = SWIG_Py_Void(); | |
37919 | return resultobj; | |
37920 | fail: | |
37921 | return NULL; | |
37922 | } | |
37923 | ||
37924 | ||
37925 | SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37926 | PyObject *resultobj = 0; | |
37927 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37928 | wxPalette *arg2 = 0 ; | |
37929 | void *argp1 = 0 ; | |
37930 | int res1 = 0 ; | |
37931 | void *argp2 = 0 ; | |
37932 | int res2 = 0 ; | |
37933 | PyObject * obj0 = 0 ; | |
37934 | PyObject * obj1 = 0 ; | |
37935 | char * kwnames[] = { | |
37936 | (char *) "self",(char *) "palette", NULL | |
37937 | }; | |
37938 | ||
37939 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
37940 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37941 | if (!SWIG_IsOK(res1)) { | |
37942 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37943 | } | |
37944 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37945 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
37946 | if (!SWIG_IsOK(res2)) { | |
37947 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
37948 | } | |
37949 | if (!argp2) { | |
37950 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
37951 | } | |
37952 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
37953 | { | |
37954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37955 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
37956 | wxPyEndAllowThreads(__tstate); | |
37957 | if (PyErr_Occurred()) SWIG_fail; | |
37958 | } | |
37959 | resultobj = SWIG_Py_Void(); | |
37960 | return resultobj; | |
37961 | fail: | |
37962 | return NULL; | |
37963 | } | |
37964 | ||
37965 | ||
37966 | SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37967 | PyObject *resultobj = 0; | |
37968 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37969 | wxColour *arg2 = 0 ; | |
37970 | void *argp1 = 0 ; | |
37971 | int res1 = 0 ; | |
37972 | wxColour temp2 ; | |
37973 | PyObject * obj0 = 0 ; | |
37974 | PyObject * obj1 = 0 ; | |
37975 | char * kwnames[] = { | |
37976 | (char *) "self",(char *) "colour", NULL | |
37977 | }; | |
37978 | ||
37979 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
37980 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37981 | if (!SWIG_IsOK(res1)) { | |
37982 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37983 | } | |
37984 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37985 | { | |
37986 | arg2 = &temp2; | |
37987 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
37988 | } | |
37989 | { | |
37990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37991 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
37992 | wxPyEndAllowThreads(__tstate); | |
37993 | if (PyErr_Occurred()) SWIG_fail; | |
37994 | } | |
37995 | resultobj = SWIG_Py_Void(); | |
37996 | return resultobj; | |
37997 | fail: | |
37998 | return NULL; | |
37999 | } | |
38000 | ||
38001 | ||
38002 | SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38003 | PyObject *resultobj = 0; | |
38004 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38005 | wxColour *arg2 = 0 ; | |
38006 | void *argp1 = 0 ; | |
38007 | int res1 = 0 ; | |
38008 | wxColour temp2 ; | |
38009 | PyObject * obj0 = 0 ; | |
38010 | PyObject * obj1 = 0 ; | |
38011 | char * kwnames[] = { | |
38012 | (char *) "self",(char *) "colour", NULL | |
38013 | }; | |
38014 | ||
38015 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
38016 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38017 | if (!SWIG_IsOK(res1)) { | |
38018 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38019 | } | |
38020 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38021 | { | |
38022 | arg2 = &temp2; | |
38023 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
38024 | } | |
38025 | { | |
38026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38027 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
38028 | wxPyEndAllowThreads(__tstate); | |
38029 | if (PyErr_Occurred()) SWIG_fail; | |
38030 | } | |
38031 | resultobj = SWIG_Py_Void(); | |
38032 | return resultobj; | |
38033 | fail: | |
38034 | return NULL; | |
38035 | } | |
38036 | ||
38037 | ||
38038 | SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38039 | PyObject *resultobj = 0; | |
38040 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38041 | int arg2 ; | |
38042 | void *argp1 = 0 ; | |
38043 | int res1 = 0 ; | |
38044 | int val2 ; | |
38045 | int ecode2 = 0 ; | |
38046 | PyObject * obj0 = 0 ; | |
38047 | PyObject * obj1 = 0 ; | |
38048 | char * kwnames[] = { | |
38049 | (char *) "self",(char *) "function", NULL | |
38050 | }; | |
38051 | ||
38052 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
38053 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38054 | if (!SWIG_IsOK(res1)) { | |
38055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38056 | } | |
38057 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38058 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38059 | if (!SWIG_IsOK(ecode2)) { | |
38060 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
38061 | } | |
38062 | arg2 = static_cast< int >(val2); | |
38063 | { | |
38064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38065 | (arg1)->SetLogicalFunction(arg2); | |
38066 | wxPyEndAllowThreads(__tstate); | |
38067 | if (PyErr_Occurred()) SWIG_fail; | |
38068 | } | |
38069 | resultobj = SWIG_Py_Void(); | |
38070 | return resultobj; | |
38071 | fail: | |
38072 | return NULL; | |
38073 | } | |
38074 | ||
38075 | ||
38076 | SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38077 | PyObject *obj; | |
38078 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
38079 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj)); | |
38080 | return SWIG_Py_Void(); | |
38081 | } | |
38082 | ||
38083 | SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38084 | return SWIG_Python_InitShadowInstance(args); | |
38085 | } | |
38086 | ||
38087 | static PyMethodDef SwigMethods[] = { | |
38088 | { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL}, | |
38089 | { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL}, | |
38090 | { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL}, | |
38091 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL}, | |
38092 | { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL}, | |
38093 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38094 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38095 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38096 | { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL}, | |
38097 | { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL}, | |
38098 | { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL}, | |
38099 | { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL}, | |
fc46b7f3 | 38100 | { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL}, |
b39fe951 | 38101 | { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL}, |
27e45892 RD |
38102 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
38103 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38104 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38105 | { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38106 | { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL}, | |
38107 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38108 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
fc46b7f3 | 38109 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL}, |
27e45892 RD |
38110 | { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL}, |
38111 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL}, | |
38112 | { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL}, | |
38113 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38114 | { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL}, | |
38115 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38116 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38117 | { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL}, | |
b39fe951 | 38118 | { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL}, |
27e45892 RD |
38119 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL}, |
38120 | { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL}, | |
38121 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38122 | { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL}, | |
38123 | { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL}, | |
38124 | { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL}, | |
38125 | { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL}, | |
38126 | { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL}, | |
38127 | { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL}, | |
b39fe951 | 38128 | { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL}, |
27e45892 RD |
38129 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL}, |
38130 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38131 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38132 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38133 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38134 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38135 | { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL}, | |
38136 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38137 | { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL}, | |
38138 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38139 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38140 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL}, | |
38141 | { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL}, | |
38142 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38143 | { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38144 | { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL}, | |
38145 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38146 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38147 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38148 | { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL}, | |
38149 | { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL}, | |
38150 | { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL}, | |
38151 | { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL}, | |
b39fe951 | 38152 | { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL}, |
27e45892 RD |
38153 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL}, |
38154 | { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL}, | |
38155 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38156 | { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL}, | |
38157 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38158 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38159 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38160 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38161 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 38162 | { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL}, |
27e45892 RD |
38163 | { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL}, |
38164 | { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL}, | |
38165 | { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL}, | |
38166 | { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL}, | |
38167 | { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL}, | |
38168 | { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL}, | |
38169 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38170 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38171 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38172 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38173 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38174 | { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL}, | |
38175 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38176 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38177 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38178 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38179 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8f514ab4 RD |
38180 | { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, |
38181 | { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL}, | |
27e45892 RD |
38182 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, |
38183 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38184 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL}, | |
38185 | { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL}, | |
fc46b7f3 RD |
38186 | { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, |
38187 | { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38188 | { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38189 | { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL}, | |
38190 | { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL}, | |
38191 | { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL}, | |
38192 | { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL}, | |
38193 | { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL}, | |
38194 | { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL}, | |
38195 | { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL}, | |
38196 | { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL}, | |
38197 | { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL}, | |
38198 | { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL}, | |
38199 | { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL}, | |
38200 | { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL}, | |
38201 | { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL}, | |
38202 | { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL}, | |
38203 | { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL}, | |
38204 | { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38205 | { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL}, | |
38206 | { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL}, | |
38207 | { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38208 | { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38209 | { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38210 | { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38211 | { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38212 | { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL}, | |
38213 | { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL}, | |
38214 | { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL}, | |
38215 | { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL}, | |
38216 | { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL}, | |
38217 | { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL}, | |
38218 | { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL}, | |
38219 | { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL}, | |
38220 | { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL}, | |
38221 | { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL}, | |
38222 | { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL}, | |
38223 | { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL}, | |
38224 | { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38225 | { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL}, | |
38226 | { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL}, | |
38227 | { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38228 | { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38229 | { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38230 | { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38231 | { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38232 | { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL}, | |
38233 | { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL}, | |
38234 | { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL}, | |
27e45892 RD |
38235 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL}, |
38236 | { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL}, | |
38237 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL}, | |
38238 | { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL}, | |
38239 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38240 | { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL}, | |
38241 | { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL}, | |
38242 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38243 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38244 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38245 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 38246 | { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL}, |
27e45892 RD |
38247 | { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL}, |
38248 | { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL}, | |
38249 | { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL}, | |
38250 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38251 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38252 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38253 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38254 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL}, | |
38255 | { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL}, | |
38256 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38257 | { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL}, | |
38258 | { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL}, | |
38259 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38260 | { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL}, | |
38261 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38262 | { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL}, | |
38263 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL}, | |
38264 | { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL}, | |
38265 | { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL}, | |
38266 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38267 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38268 | { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL}, | |
38269 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38270 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38271 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38272 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL}, | |
38273 | { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL}, | |
38274 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38275 | { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL}, | |
38276 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38277 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 38278 | { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL}, |
27e45892 RD |
38279 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL}, |
38280 | { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL}, | |
38281 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38282 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38283 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38284 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38285 | { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL}, | |
38286 | { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL}, | |
38287 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38288 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38289 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38290 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38291 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38292 | { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL}, | |
38293 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38294 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38295 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38296 | { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL}, | |
f5263701 | 38297 | { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL}, |
27e45892 RD |
38298 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL}, |
38299 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38300 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38301 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38302 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38303 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38304 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38305 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38306 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38307 | { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL}, | |
38308 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38309 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38310 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL}, | |
38311 | { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL}, | |
38312 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38313 | { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL}, | |
38314 | { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL}, | |
38315 | { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL}, | |
38316 | { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL}, | |
38317 | { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL}, | |
38318 | { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL}, | |
38319 | { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL}, | |
38320 | { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL}, | |
38321 | { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL}, | |
38322 | { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL}, | |
38323 | { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL}, | |
38324 | { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL}, | |
38325 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL}, | |
38326 | { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL}, | |
38327 | { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL}, | |
38328 | { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL}, | |
38329 | { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL}, | |
38330 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38331 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL}, | |
38332 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL}, | |
38333 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL}, | |
38334 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL}, | |
38335 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL}, | |
38336 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL}, | |
38337 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL}, | |
38338 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38339 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38340 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38341 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38342 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38343 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38344 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38345 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38346 | { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL}, | |
38347 | { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL}, | |
38348 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38349 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL}, | |
38350 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL}, | |
38351 | { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL}, | |
38352 | { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL}, | |
38353 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL}, | |
38354 | { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL}, | |
38355 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL}, | |
38356 | { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL}, | |
38357 | { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL}, | |
38358 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38359 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL}, | |
38360 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL}, | |
38361 | { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL}, | |
38362 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38363 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38364 | { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL}, | |
38365 | { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL}, | |
38366 | { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL}, | |
38367 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38368 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38369 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL}, | |
38370 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38371 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38372 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38373 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38374 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38375 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL}, | |
38376 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38377 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38378 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38379 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38380 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL}, | |
38381 | { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL}, | |
38382 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38383 | { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL}, | |
38384 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38385 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38386 | { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38387 | { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38388 | { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 38389 | { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL}, |
27e45892 | 38390 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
38391 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, |
38392 | { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL}, | |
38393 | { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL}, | |
38394 | { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL}, | |
38395 | { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL}, | |
38396 | { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL}, | |
38397 | { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL}, | |
38398 | { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL}, | |
38399 | { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL}, | |
38400 | { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL}, | |
38401 | { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL}, | |
38402 | { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL}, | |
38403 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL}, | |
38404 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL}, | |
38405 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38406 | { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38407 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38408 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38409 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38410 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38411 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38412 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38413 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38414 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38415 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38416 | { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL}, | |
38417 | { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL}, | |
38418 | { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL}, | |
38419 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38420 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL}, | |
38421 | { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL}, | |
38422 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38423 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL}, | |
38424 | { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL}, | |
38425 | { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL}, | |
38426 | { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL}, | |
38427 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38428 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38429 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
704eda0c RD |
38430 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL}, |
38431 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL}, | |
38432 | { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
38433 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL}, |
38434 | { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL}, | |
38435 | { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL}, | |
38436 | { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL}, | |
38437 | { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL}, | |
38438 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL}, | |
38439 | { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL}, | |
38440 | { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL}, | |
38441 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL}, | |
38442 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38443 | { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL}, | |
38444 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38445 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38446 | { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL}, | |
38447 | { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL}, | |
38448 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL}, | |
38449 | { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL}, | |
38450 | { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL}, | |
38451 | { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL}, | |
38452 | { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL}, | |
38453 | { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL}, | |
38454 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38455 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33d6fd3b | 38456 | { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
38457 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL}, |
38458 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38459 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38460 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38461 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38462 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38463 | { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL}, | |
38464 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL}, | |
38465 | { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL}, | |
fc46b7f3 RD |
38466 | { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL}, |
38467 | { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL}, | |
38468 | { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38469 | { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38470 | { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38471 | { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL}, | |
38472 | { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
38473 | { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL}, |
38474 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL}, | |
38475 | { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL}, | |
38476 | { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL}, | |
38477 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38478 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38479 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38480 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38481 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38482 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL}, | |
38483 | { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL}, | |
38484 | { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL}, | |
38485 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38486 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38487 | { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38488 | { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38489 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38490 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38491 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38492 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38493 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38494 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38495 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38496 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38497 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38498 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38499 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38500 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38501 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38502 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38503 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38504 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38505 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38506 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38507 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38508 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38509 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38510 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38511 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38512 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38513 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38514 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38515 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38516 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38517 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38518 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38519 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38520 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38521 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38522 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38523 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8f514ab4 | 38524 | { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
38525 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL}, |
38526 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38527 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38528 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38529 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38530 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38531 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38532 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38533 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38534 | { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL}, | |
38535 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38536 | { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL}, | |
38537 | { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL}, | |
38538 | { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL}, | |
38539 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38540 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38541 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38542 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38543 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38544 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38545 | { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL}, | |
38546 | { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL}, | |
38547 | { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL}, | |
38548 | { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL}, | |
38549 | { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL}, | |
38550 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38551 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38552 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38553 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38554 | { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL}, | |
38555 | { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL}, | |
38556 | { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL}, | |
38557 | { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL}, | |
38558 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38559 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38560 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38561 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38562 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38563 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38564 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38565 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38566 | { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL}, | |
38567 | { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL}, | |
38568 | { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL}, | |
38569 | { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL}, | |
b39fe951 | 38570 | { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL}, |
0085ce49 RD |
38571 | { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL}, |
38572 | { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL}, | |
38573 | { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL}, | |
38574 | { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL}, | |
38575 | { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL}, | |
38576 | { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL}, | |
38577 | { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL}, | |
38578 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38579 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38580 | { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL}, | |
38581 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38582 | { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL}, | |
38583 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38584 | { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL}, | |
38585 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38586 | { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL}, | |
38587 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL}, | |
38588 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38589 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38590 | { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL}, | |
38591 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL}, | |
38592 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38593 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38594 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38595 | { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL}, | |
38596 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38597 | { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL}, | |
38598 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38599 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38600 | { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL}, | |
38601 | { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL}, | |
38602 | { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL}, | |
38603 | { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL}, | |
38604 | { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL}, | |
38605 | { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL}, | |
b39fe951 RD |
38606 | { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL}, |
38607 | { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
38608 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL}, |
38609 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38610 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38611 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38612 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38613 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38614 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL}, | |
70d7cb34 RD |
38615 | { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL}, |
38616 | { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL}, | |
38617 | { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL}, | |
38618 | { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL}, | |
38619 | { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38620 | { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL}, | |
38621 | { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL}, | |
38622 | { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL}, | |
38623 | { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38624 | { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL}, | |
38625 | { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL}, | |
38626 | { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL}, | |
38627 | { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL}, | |
38628 | { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL}, | |
38629 | { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL}, | |
38630 | { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL}, | |
8e99bda9 | 38631 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
38632 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
38633 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8f514ab4 | 38634 | { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
38635 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL}, |
38636 | { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
38637 | { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL}, |
38638 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38639 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38640 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL}, | |
38641 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL}, | |
38642 | { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL}, | |
72ef6efb RD |
38643 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
38644 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL}, | |
38645 | { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
38646 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
38647 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL}, | |
38648 | { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL}, | |
38649 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38650 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL}, | |
38651 | { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL}, | |
24f6c4e8 RD |
38652 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL}, |
38653 | { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL}, | |
38654 | { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL}, | |
38655 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL}, | |
38656 | { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL}, | |
38657 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38658 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
38659 | { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
38660 | { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38661 | { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
38662 | { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
8e99bda9 | 38663 | { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
38664 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
38665 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL}, | |
38666 | { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL}, | |
38667 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38668 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL}, | |
38669 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38670 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38671 | { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL}, | |
38672 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL}, | |
38673 | { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL}, | |
38674 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38675 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL}, | |
38676 | { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL}, | |
38677 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38678 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL}, | |
38679 | { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL}, | |
38680 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38681 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL}, | |
38682 | { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL}, | |
70d7cb34 RD |
38683 | { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL}, |
38684 | { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL}, | |
38685 | { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL}, | |
38686 | { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL}, | |
38687 | { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL}, | |
38688 | { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL}, | |
38689 | { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL}, | |
38690 | { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL}, | |
38691 | { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL}, | |
38692 | { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL}, | |
38693 | { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL}, | |
38694 | { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL}, | |
38695 | { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL}, | |
38696 | { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL}, | |
38697 | { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL}, | |
38698 | { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL}, | |
38699 | { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL}, | |
38700 | { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL}, | |
8f514ab4 | 38701 | { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL}, |
5c8c7dd3 RD |
38702 | { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL}, |
38703 | { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38704 | { (char *)"GraphicsMatrix_Copy", (PyCFunction) _wrap_GraphicsMatrix_Copy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38705 | { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38706 | { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL}, | |
38707 | { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38708 | { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL}, | |
38709 | { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38710 | { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38711 | { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38712 | { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38713 | { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38714 | { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL}, | |
38715 | { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL}, | |
8f514ab4 RD |
38716 | { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL}, |
38717 | { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL}, | |
72ef6efb | 38718 | { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL}, |
70d7cb34 RD |
38719 | { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL}, |
38720 | { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL}, | |
38721 | { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL}, | |
38722 | { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
38723 | { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL}, |
38724 | { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL}, | |
70d7cb34 | 38725 | { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL}, |
72ef6efb RD |
38726 | { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL}, |
38727 | { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38728 | { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38729 | { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70d7cb34 RD |
38730 | { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, |
38731 | { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38732 | { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL}, | |
38733 | { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38734 | { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38735 | { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL}, | |
38736 | { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL}, | |
72ef6efb | 38737 | { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL}, |
8f514ab4 | 38738 | { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL}, |
72ef6efb | 38739 | { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL}, |
0a27f394 RD |
38740 | { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL}, |
38741 | { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70d7cb34 | 38742 | { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb | 38743 | { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL}, |
70d7cb34 RD |
38744 | { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
38745 | { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38746 | { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38747 | { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38748 | { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38749 | { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
38750 | { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL}, |
38751 | { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL}, | |
0a27f394 | 38752 | { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb | 38753 | { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL}, |
0a27f394 RD |
38754 | { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL}, |
38755 | { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL}, | |
72ef6efb RD |
38756 | { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL}, |
38757 | { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38758 | { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
5c8c7dd3 RD |
38759 | { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL}, |
38760 | { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38761 | { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL}, | |
70d7cb34 RD |
38762 | { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL}, |
38763 | { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL}, | |
38764 | { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL}, | |
72ef6efb RD |
38765 | { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL}, |
38766 | { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38767 | { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 RD |
38768 | { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, |
38769 | { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
be68621e | 38770 | { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb RD |
38771 | { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, |
38772 | { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38773 | { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38774 | { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38775 | { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 38776 | { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL}, |
f8eb59b9 | 38777 | { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb RD |
38778 | { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, |
38779 | { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38780 | { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38781 | { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70d7cb34 | 38782 | { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL}, |
72ef6efb | 38783 | { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL}, |
70d7cb34 RD |
38784 | { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL}, |
38785 | { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL}, | |
38786 | { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL}, | |
38787 | { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38788 | { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38789 | { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL}, | |
38790 | { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38791 | { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38792 | { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38793 | { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38794 | { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38795 | { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38796 | { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL}, | |
72ef6efb RD |
38797 | { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
38798 | { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL}, | |
0a27f394 RD |
38799 | { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL}, |
38800 | { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
38801 | { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL}, |
38802 | { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL}, | |
b39fe951 RD |
38803 | { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL}, |
38804 | { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL}, | |
38805 | { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL}, | |
38806 | { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL}, | |
38807 | { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL}, | |
38808 | { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL}, | |
38809 | { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL}, | |
38810 | { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL}, | |
38811 | { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL}, | |
38812 | { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
38813 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL}, |
38814 | { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL}, | |
38815 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38816 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38817 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38818 | { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38819 | { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38820 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38821 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38822 | { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL}, | |
38823 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38824 | { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL}, | |
38825 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38826 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL}, | |
38827 | { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL}, | |
50efceee RD |
38828 | { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL}, |
38829 | { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL}, | |
38830 | { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL}, | |
38831 | { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL}, | |
38832 | { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38833 | { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38834 | { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38835 | { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38836 | { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38837 | { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL}, | |
38838 | { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL}, | |
38839 | { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL}, | |
38840 | { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL}, | |
38841 | { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL}, | |
38842 | { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL}, | |
0085ce49 | 38843 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
50efceee | 38844 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 38845 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 38846 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 38847 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
50efceee | 38848 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 38849 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 38850 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL}, |
50efceee RD |
38851 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, |
38852 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38853 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38854 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL}, | |
0085ce49 RD |
38855 | { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL}, |
38856 | { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL}, | |
38857 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38858 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38859 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38860 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38861 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL}, | |
38862 | { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL}, | |
50efceee RD |
38863 | { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL}, |
38864 | { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL}, | |
38865 | { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL}, | |
38866 | { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL}, | |
0085ce49 RD |
38867 | { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL}, |
38868 | { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL}, | |
38869 | { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL}, | |
38870 | { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL}, | |
38871 | { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL}, | |
38872 | { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL}, | |
38873 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38874 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38875 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38876 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38877 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38878 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38879 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38880 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38881 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL}, | |
38882 | { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL}, | |
38883 | { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38884 | { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL}, | |
38885 | { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL}, | |
38886 | { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL}, | |
38887 | { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL}, | |
38888 | { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL}, | |
38889 | { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL}, | |
33d6fd3b RD |
38890 | { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL}, |
38891 | { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL}, | |
38892 | { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL}, | |
38893 | { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL}, | |
38894 | { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL}, | |
38895 | { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL}, | |
38896 | { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL}, | |
38897 | { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL}, | |
38898 | { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL}, | |
38899 | { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL}, | |
38900 | { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL}, | |
38901 | { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL}, | |
38902 | { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL}, | |
38903 | { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL}, | |
38904 | { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL}, | |
38905 | { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL}, | |
38906 | { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL}, | |
38907 | { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
38908 | { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL}, |
38909 | { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL}, | |
38910 | { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38911 | { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL}, | |
38912 | { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL}, | |
38913 | { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL}, | |
38914 | { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL}, | |
38915 | { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33d6fd3b RD |
38916 | { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL}, |
38917 | { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
38918 | { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL}, |
38919 | { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38920 | { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38921 | { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38922 | { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
01f6b6d3 RD |
38923 | { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
38924 | { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38925 | { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
38926 | { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL}, |
38927 | { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL}, | |
38928 | { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL}, | |
38929 | { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL}, | |
38930 | { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38931 | { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL}, | |
38932 | { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL}, | |
27e45892 RD |
38933 | { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL}, |
38934 | { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL}, | |
38935 | { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL}, | |
38936 | { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL}, | |
38937 | { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL}, | |
38938 | { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL}, | |
38939 | { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38940 | { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38941 | { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38942 | { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
38943 | { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL}, |
38944 | { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38945 | { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38946 | { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
27e45892 RD |
38947 | { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
38948 | { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38949 | { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38950 | { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38951 | { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38952 | { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38953 | { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38954 | { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38955 | { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38956 | { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38957 | { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38958 | { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38959 | { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38960 | { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38961 | { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38962 | { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38963 | { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38964 | { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38965 | { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38966 | { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38967 | { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38968 | { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38969 | { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38970 | { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38971 | { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38972 | { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38973 | { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38974 | { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38975 | { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38976 | { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38977 | { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38978 | { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38979 | { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38980 | { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38981 | { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38982 | { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38983 | { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38984 | { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38985 | { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38986 | { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38987 | { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38988 | { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38989 | { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38990 | { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38991 | { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL}, | |
38992 | { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38993 | { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38994 | { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38995 | { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38996 | { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38997 | { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38998 | { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38999 | { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39000 | { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39001 | { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL}, | |
39002 | { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
39003 | { NULL, NULL, 0, NULL } |
39004 | }; | |
39005 | ||
39006 | ||
39007 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
39008 | ||
72ef6efb RD |
39009 | static void *_p_wxPaintDCTo_p_wxClientDC(void *x) { |
39010 | return (void *)((wxClientDC *) ((wxPaintDC *) x)); | |
39011 | } | |
8e99bda9 RD |
39012 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
39013 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
39014 | } | |
39015 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
39016 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
39017 | } | |
72ef6efb RD |
39018 | static void *_p_wxClientDCTo_p_wxWindowDC(void *x) { |
39019 | return (void *)((wxWindowDC *) ((wxClientDC *) x)); | |
39020 | } | |
39021 | static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) { | |
39022 | return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x)); | |
39023 | } | |
fc46b7f3 RD |
39024 | static void *_p_wxPyLocaleTo_p_wxLocale(void *x) { |
39025 | return (void *)((wxLocale *) ((wxPyLocale *) x)); | |
39026 | } | |
70d7cb34 RD |
39027 | static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) { |
39028 | return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x)); | |
39029 | } | |
39030 | static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) { | |
39031 | return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x)); | |
39032 | } | |
39033 | static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) { | |
39034 | return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x)); | |
39035 | } | |
39036 | static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) { | |
39037 | return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x)); | |
39038 | } | |
39039 | static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) { | |
39040 | return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x)); | |
39041 | } | |
39042 | static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) { | |
39043 | return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x)); | |
39044 | } | |
0085ce49 RD |
39045 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { |
39046 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
39047 | } | |
39048 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
39049 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
39050 | } | |
39051 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
39052 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
39053 | } | |
39054 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
39055 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
39056 | } | |
39057 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
39058 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
39059 | } | |
39060 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
39061 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
39062 | } | |
39063 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
39064 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
39065 | } | |
39066 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
39067 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
39068 | } | |
72ef6efb RD |
39069 | static void *_p_wxGCDCTo_p_wxDC(void *x) { |
39070 | return (void *)((wxDC *) ((wxGCDC *) x)); | |
39071 | } | |
0085ce49 RD |
39072 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
39073 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
39074 | } | |
24f6c4e8 RD |
39075 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
39076 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
39077 | } | |
0085ce49 RD |
39078 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { |
39079 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
39080 | } | |
39081 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
39082 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
39083 | } | |
39084 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
39085 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
39086 | } | |
39087 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
39088 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
39089 | } | |
0085ce49 | 39090 | static void *_p_wxClientDCTo_p_wxDC(void *x) { |
72ef6efb | 39091 | return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x)); |
0085ce49 RD |
39092 | } |
39093 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
72ef6efb | 39094 | return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x)); |
0085ce49 | 39095 | } |
24f6c4e8 RD |
39096 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { |
39097 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
39098 | } | |
39099 | static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) { | |
39100 | return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x)); | |
39101 | } | |
0085ce49 RD |
39102 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { |
39103 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
39104 | } | |
39105 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
39106 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
39107 | } | |
50efceee RD |
39108 | static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) { |
39109 | return (void *)((wxGDIObjListBase *) ((wxBrushList *) x)); | |
39110 | } | |
39111 | static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) { | |
39112 | return (void *)((wxGDIObjListBase *) ((wxFontList *) x)); | |
39113 | } | |
39114 | static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) { | |
39115 | return (void *)((wxGDIObjListBase *) ((wxPenList *) x)); | |
39116 | } | |
0085ce49 RD |
39117 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
39118 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
39119 | } | |
39120 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
39121 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
39122 | } | |
39123 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
39124 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
39125 | } | |
39126 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
39127 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
39128 | } | |
0085ce49 RD |
39129 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
39130 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
39131 | } | |
34e0a3bb RD |
39132 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
39133 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
39134 | } | |
0085ce49 RD |
39135 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
39136 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
39137 | } | |
39138 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
39139 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
39140 | } | |
39141 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
39142 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
39143 | } | |
39144 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
39145 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
39146 | } | |
39147 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
39148 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
39149 | } | |
39150 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
39151 | return (void *)((wxObject *) ((wxSizer *) x)); | |
39152 | } | |
39153 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
39154 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
39155 | } | |
39156 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
39157 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
39158 | } | |
0085ce49 RD |
39159 | static void *_p_wxEventTo_p_wxObject(void *x) { |
39160 | return (void *)((wxObject *) ((wxEvent *) x)); | |
39161 | } | |
39162 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
39163 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
39164 | } | |
39165 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
39166 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
39167 | } | |
39168 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
39169 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
39170 | } | |
27e45892 RD |
39171 | static void *_p_wxPseudoDCTo_p_wxObject(void *x) { |
39172 | return (void *)((wxObject *) ((wxPseudoDC *) x)); | |
39173 | } | |
2131d850 RD |
39174 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
39175 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
39176 | } | |
0085ce49 RD |
39177 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
39178 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
39179 | } | |
39180 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
39181 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
39182 | } | |
39183 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
39184 | return (void *)((wxObject *) ((wxDC *) x)); | |
39185 | } | |
39186 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
39187 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
39188 | } | |
39189 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
39190 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
39191 | } | |
39192 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
39193 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
39194 | } | |
39195 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
39196 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
39197 | } | |
39198 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
39199 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
39200 | } | |
70d7cb34 RD |
39201 | static void *_p_wxGraphicsPenTo_p_wxObject(void *x) { |
39202 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x)); | |
39203 | } | |
0085ce49 RD |
39204 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { |
39205 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
39206 | } | |
39207 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
72ef6efb | 39208 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x)); |
0085ce49 RD |
39209 | } |
39210 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
39211 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
39212 | } | |
39213 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
39214 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
39215 | } | |
39216 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
39217 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
39218 | } | |
39219 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
39220 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
39221 | } | |
39222 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
39223 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
39224 | } | |
39225 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
39226 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
39227 | } | |
70d7cb34 RD |
39228 | static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) { |
39229 | return (void *)((wxObject *) ((wxGraphicsObject *) x)); | |
39230 | } | |
39231 | static void *_p_wxGraphicsPathTo_p_wxObject(void *x) { | |
39232 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x)); | |
39233 | } | |
0085ce49 RD |
39234 | static void *_p_wxEffectsTo_p_wxObject(void *x) { |
39235 | return (void *)((wxObject *) ((wxEffects *) x)); | |
39236 | } | |
39237 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
39238 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
39239 | } | |
39240 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
39241 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
39242 | } | |
39243 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
39244 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
39245 | } | |
70d7cb34 RD |
39246 | static void *_p_wxGraphicsContextTo_p_wxObject(void *x) { |
39247 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x)); | |
39248 | } | |
0085ce49 RD |
39249 | static void *_p_wxShowEventTo_p_wxObject(void *x) { |
39250 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
39251 | } | |
39252 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
39253 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
39254 | } | |
39255 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
39256 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
39257 | } | |
39258 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
39259 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
39260 | } | |
39261 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
39262 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
39263 | } | |
39264 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
39265 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
39266 | } | |
39267 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
39268 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
39269 | } | |
39270 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
39271 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
39272 | } | |
39273 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
39274 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
39275 | } | |
39276 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
39277 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
39278 | } | |
39279 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
39280 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
39281 | } | |
39282 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
39283 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
39284 | } | |
39285 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
39286 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
39287 | } | |
39288 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
39289 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
39290 | } | |
39291 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
39292 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
39293 | } | |
39294 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
39295 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
39296 | } | |
39297 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
39298 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
39299 | } | |
39300 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
39301 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
39302 | } | |
39303 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
39304 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
39305 | } | |
39306 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
39307 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
39308 | } | |
39309 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { | |
39310 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
39311 | } | |
39312 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
39313 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
39314 | } | |
39315 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
39316 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
39317 | } | |
39318 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
39319 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
39320 | } | |
39321 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
39322 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
39323 | } | |
34e0a3bb RD |
39324 | static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { |
39325 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
39326 | } | |
24f6c4e8 RD |
39327 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { |
39328 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x)); | |
39329 | } | |
0085ce49 | 39330 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { |
8e99bda9 | 39331 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); |
0085ce49 | 39332 | } |
24f6c4e8 RD |
39333 | static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) { |
39334 | return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x)); | |
0085ce49 RD |
39335 | } |
39336 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
39337 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
39338 | } | |
39339 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
39340 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
39341 | } | |
39342 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { | |
39343 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
39344 | } | |
39345 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
39346 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
39347 | } | |
39348 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
39349 | return (void *)((wxObject *) ((wxImage *) x)); | |
39350 | } | |
39351 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
39352 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
39353 | } | |
70d7cb34 RD |
39354 | static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) { |
39355 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x)); | |
39356 | } | |
39357 | static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) { | |
39358 | return (void *)((wxObject *) ((wxGraphicsRenderer *) x)); | |
39359 | } | |
0085ce49 RD |
39360 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
39361 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
39362 | } | |
39363 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
8e99bda9 | 39364 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); |
0085ce49 RD |
39365 | } |
39366 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
39367 | return (void *)((wxObject *) ((wxImageList *) x)); | |
39368 | } | |
72ef6efb RD |
39369 | static void *_p_wxGCDCTo_p_wxObject(void *x) { |
39370 | return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x)); | |
39371 | } | |
0085ce49 RD |
39372 | static void *_p_wxCursorTo_p_wxObject(void *x) { |
39373 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
39374 | } | |
39375 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
39376 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
39377 | } | |
39378 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
39379 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
39380 | } | |
70d7cb34 RD |
39381 | static void *_p_wxGraphicsFontTo_p_wxObject(void *x) { |
39382 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x)); | |
39383 | } | |
0085ce49 RD |
39384 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
39385 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
39386 | } | |
39387 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
39388 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
39389 | } | |
39390 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
39391 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
39392 | } | |
39393 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
39394 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
39395 | } | |
39396 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
39397 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
39398 | } | |
39399 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
39400 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
39401 | } | |
39402 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
39403 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
39404 | } | |
0085ce49 RD |
39405 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
39406 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
39407 | } | |
39408 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
39409 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
39410 | } | |
39411 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
39412 | return (void *)((wxObject *) ((wxMask *) x)); | |
39413 | } | |
70d7cb34 RD |
39414 | static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) { |
39415 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x)); | |
39416 | } | |
0085ce49 RD |
39417 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { |
39418 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
39419 | } | |
39420 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
39421 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
39422 | } | |
39423 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
39424 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
39425 | } | |
39426 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
39427 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
39428 | } | |
39429 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
39430 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
39431 | } | |
39432 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
39433 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
39434 | } | |
39435 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
39436 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
39437 | } | |
39438 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
39439 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
39440 | } | |
39441 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
39442 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
39443 | } | |
39444 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
39445 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
39446 | } | |
39447 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
39448 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
39449 | } | |
39450 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
39451 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
39452 | } | |
39453 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
39454 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
39455 | } | |
39456 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
39457 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
39458 | } | |
39459 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
39460 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
39461 | } | |
39462 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
39463 | return (void *)((wxObject *) ((wxColour *) x)); | |
39464 | } | |
0085ce49 RD |
39465 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { |
39466 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
39467 | } | |
39468 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
39469 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
39470 | } | |
39471 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
39472 | return (void *)((wxWindow *) ((wxControl *) x)); | |
39473 | } | |
39474 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
39475 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
39476 | } | |
39477 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
39478 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
39479 | } | |
fc46b7f3 RD |
39480 | static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) { |
39481 | return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x)); | |
39482 | } | |
39483 | static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) { | |
39484 | return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x)); | |
39485 | } | |
39486 | static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0}; | |
0085ce49 | 39487 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
72ef6efb | 39488 | static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39489 | 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}; |
39490 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
39491 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
39492 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
39493 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
0a27f394 | 39494 | static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; |
fc46b7f3 RD |
39495 | static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0}; |
39496 | static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0}; | |
24f6c4e8 | 39497 | static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39498 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; |
39499 | static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0}; | |
39500 | static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0}; | |
39501 | static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0}; | |
39502 | static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0}; | |
fc46b7f3 | 39503 | static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0}; |
0085ce49 | 39504 | static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0}; |
72ef6efb | 39505 | static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39506 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; |
39507 | static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0}; | |
39508 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0}; | |
39509 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; | |
70d7cb34 RD |
39510 | static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0}; |
39511 | static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0}; | |
b39fe951 | 39512 | static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
39513 | static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0}; |
39514 | static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0}; | |
0085ce49 RD |
39515 | static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0}; |
39516 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
39517 | static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0}; | |
39518 | static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0}; | |
39519 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
39520 | static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0}; | |
39521 | static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0}; | |
72ef6efb | 39522 | static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0}; |
50efceee | 39523 | static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0}; |
0085ce49 | 39524 | static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0}; |
70d7cb34 | 39525 | static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0}; |
72ef6efb | 39526 | static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
39527 | static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0}; |
39528 | static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0}; | |
39529 | static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0}; | |
72ef6efb | 39530 | static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
39531 | static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0}; |
39532 | static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0}; | |
33d6fd3b | 39533 | static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39534 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; |
39535 | static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0}; | |
39536 | static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0}; | |
39537 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0}; | |
39538 | static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0}; | |
39539 | static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0}; | |
39540 | static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0}; | |
39541 | static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0}; | |
39542 | static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0}; | |
39543 | static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0}; | |
39544 | static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0}; | |
39545 | static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0}; | |
39546 | static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0}; | |
39547 | static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0}; | |
fc46b7f3 RD |
39548 | static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0}; |
39549 | static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0}; | |
0085ce49 RD |
39550 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; |
39551 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
0085ce49 | 39552 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; |
34e0a3bb | 39553 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; |
0085ce49 RD |
39554 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; |
39555 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; | |
39556 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
39557 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
39558 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
39559 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
39560 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
39561 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
39562 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0}; | |
39563 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
39564 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
39565 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
2131d850 | 39566 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; |
0085ce49 RD |
39567 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; |
39568 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
39569 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
39570 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
39571 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
39572 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
39573 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
39574 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
39575 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
39576 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
39577 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
39578 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0}; | |
39579 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
39580 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
39581 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
39582 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
39583 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
39584 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
39585 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
39586 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
39587 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
39588 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
39589 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
0085ce49 | 39590 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0}; |
70d7cb34 RD |
39591 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; |
39592 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
39593 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
39594 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
39595 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
39596 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
24f6c4e8 | 39597 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; |
72ef6efb | 39598 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; |
27e45892 | 39599 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; |
2131d850 | 39600 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; |
0085ce49 RD |
39601 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; |
39602 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
39603 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
34e0a3bb | 39604 | static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0}; |
0085ce49 RD |
39605 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; |
39606 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; | |
39607 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; | |
39608 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
39609 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
39610 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
39611 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
39612 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0}; | |
39613 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
39614 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
39615 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
39616 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
39617 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
39618 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
39619 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
39620 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0}; | |
39621 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
39622 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
39623 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
39624 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
39625 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
39626 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
b39fe951 | 39627 | static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39628 | static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0}; |
39629 | static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0}; | |
39630 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
39631 | static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0}; | |
39632 | static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0}; | |
fc46b7f3 | 39633 | static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0}; |
0085ce49 | 39634 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; |
72ef6efb | 39635 | static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0}; |
70d7cb34 | 39636 | static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39637 | static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0}; |
39638 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0}; | |
39639 | static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0}; | |
27e45892 | 39640 | static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0}; |
0085ce49 | 39641 | static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0}; |
fc46b7f3 | 39642 | static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0}; |
0085ce49 | 39643 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; |
70d7cb34 | 39644 | static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39645 | static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0}; |
39646 | static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0}; | |
39647 | static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0}; | |
39648 | static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0}; | |
39649 | static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0}; | |
39650 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
39651 | static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0}; | |
50efceee | 39652 | static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39653 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; |
39654 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
39655 | static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0}; | |
39656 | ||
39657 | static swig_type_info *swig_type_initial[] = { | |
fc46b7f3 | 39658 | &_swigt__p_buffer, |
0085ce49 RD |
39659 | &_swigt__p_char, |
39660 | &_swigt__p_double, | |
39661 | &_swigt__p_form_ops_t, | |
39662 | &_swigt__p_int, | |
39663 | &_swigt__p_unsigned_char, | |
39664 | &_swigt__p_unsigned_int, | |
39665 | &_swigt__p_unsigned_long, | |
0a27f394 | 39666 | &_swigt__p_void, |
0085ce49 RD |
39667 | &_swigt__p_wxANIHandler, |
39668 | &_swigt__p_wxAcceleratorTable, | |
39669 | &_swigt__p_wxActivateEvent, | |
fc46b7f3 RD |
39670 | &_swigt__p_wxAlphaPixelData, |
39671 | &_swigt__p_wxAlphaPixelData_Accessor, | |
24f6c4e8 | 39672 | &_swigt__p_wxAutoBufferedPaintDC, |
0085ce49 RD |
39673 | &_swigt__p_wxBMPHandler, |
39674 | &_swigt__p_wxBitmap, | |
39675 | &_swigt__p_wxBoxSizer, | |
39676 | &_swigt__p_wxBrush, | |
39677 | &_swigt__p_wxBrushList, | |
39678 | &_swigt__p_wxBufferedDC, | |
39679 | &_swigt__p_wxBufferedPaintDC, | |
39680 | &_swigt__p_wxCURHandler, | |
fc46b7f3 | 39681 | &_swigt__p_wxChar, |
0085ce49 RD |
39682 | &_swigt__p_wxChildFocusEvent, |
39683 | &_swigt__p_wxClientDC, | |
2131d850 | 39684 | &_swigt__p_wxClipboardTextEvent, |
0085ce49 | 39685 | &_swigt__p_wxCloseEvent, |
72ef6efb | 39686 | &_swigt__p_wxColor, |
0085ce49 RD |
39687 | &_swigt__p_wxColour, |
39688 | &_swigt__p_wxColourDatabase, | |
39689 | &_swigt__p_wxCommandEvent, | |
39690 | &_swigt__p_wxContextMenuEvent, | |
39691 | &_swigt__p_wxControl, | |
39692 | &_swigt__p_wxControlWithItems, | |
39693 | &_swigt__p_wxCursor, | |
39694 | &_swigt__p_wxDC, | |
70d7cb34 RD |
39695 | &_swigt__p_wxDCBrushChanger, |
39696 | &_swigt__p_wxDCClipper, | |
b39fe951 | 39697 | &_swigt__p_wxDCOverlay, |
70d7cb34 RD |
39698 | &_swigt__p_wxDCPenChanger, |
39699 | &_swigt__p_wxDCTextColourChanger, | |
0085ce49 RD |
39700 | &_swigt__p_wxDash, |
39701 | &_swigt__p_wxDateEvent, | |
39702 | &_swigt__p_wxDisplayChangedEvent, | |
39703 | &_swigt__p_wxDropFilesEvent, | |
39704 | &_swigt__p_wxDuplexMode, | |
39705 | &_swigt__p_wxEffects, | |
39706 | &_swigt__p_wxEncodingConverter, | |
39707 | &_swigt__p_wxEraseEvent, | |
39708 | &_swigt__p_wxEvent, | |
39709 | &_swigt__p_wxEvtHandler, | |
39710 | &_swigt__p_wxFSFile, | |
39711 | &_swigt__p_wxFileSystem, | |
39712 | &_swigt__p_wxFlexGridSizer, | |
39713 | &_swigt__p_wxFocusEvent, | |
39714 | &_swigt__p_wxFont, | |
39715 | &_swigt__p_wxFontList, | |
39716 | &_swigt__p_wxFontMapper, | |
39717 | &_swigt__p_wxGBSizerItem, | |
72ef6efb | 39718 | &_swigt__p_wxGCDC, |
50efceee | 39719 | &_swigt__p_wxGDIObjListBase, |
0085ce49 RD |
39720 | &_swigt__p_wxGDIObject, |
39721 | &_swigt__p_wxGIFHandler, | |
70d7cb34 | 39722 | &_swigt__p_wxGraphicsBrush, |
72ef6efb | 39723 | &_swigt__p_wxGraphicsContext, |
70d7cb34 RD |
39724 | &_swigt__p_wxGraphicsFont, |
39725 | &_swigt__p_wxGraphicsMatrix, | |
39726 | &_swigt__p_wxGraphicsObject, | |
72ef6efb | 39727 | &_swigt__p_wxGraphicsPath, |
70d7cb34 RD |
39728 | &_swigt__p_wxGraphicsPen, |
39729 | &_swigt__p_wxGraphicsRenderer, | |
0085ce49 RD |
39730 | &_swigt__p_wxGridBagSizer, |
39731 | &_swigt__p_wxGridSizer, | |
33d6fd3b | 39732 | &_swigt__p_wxHeaderButtonParams, |
0085ce49 RD |
39733 | &_swigt__p_wxICOHandler, |
39734 | &_swigt__p_wxIcon, | |
39735 | &_swigt__p_wxIconBundle, | |
39736 | &_swigt__p_wxIconLocation, | |
39737 | &_swigt__p_wxIconizeEvent, | |
39738 | &_swigt__p_wxIdleEvent, | |
39739 | &_swigt__p_wxImage, | |
39740 | &_swigt__p_wxImageHandler, | |
39741 | &_swigt__p_wxImageList, | |
39742 | &_swigt__p_wxIndividualLayoutConstraint, | |
39743 | &_swigt__p_wxInitDialogEvent, | |
39744 | &_swigt__p_wxJPEGHandler, | |
39745 | &_swigt__p_wxKeyEvent, | |
39746 | &_swigt__p_wxLanguageInfo, | |
39747 | &_swigt__p_wxLayoutConstraints, | |
39748 | &_swigt__p_wxLocale, | |
39749 | &_swigt__p_wxMask, | |
39750 | &_swigt__p_wxMaximizeEvent, | |
39751 | &_swigt__p_wxMemoryDC, | |
39752 | &_swigt__p_wxMenu, | |
39753 | &_swigt__p_wxMenuBar, | |
39754 | &_swigt__p_wxMenuEvent, | |
39755 | &_swigt__p_wxMenuItem, | |
39756 | &_swigt__p_wxMetaFile, | |
39757 | &_swigt__p_wxMetaFileDC, | |
39758 | &_swigt__p_wxMirrorDC, | |
39759 | &_swigt__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 39760 | &_swigt__p_wxMouseCaptureLostEvent, |
0085ce49 RD |
39761 | &_swigt__p_wxMouseEvent, |
39762 | &_swigt__p_wxMoveEvent, | |
39763 | &_swigt__p_wxNativeEncodingInfo, | |
39764 | &_swigt__p_wxNativeFontInfo, | |
fc46b7f3 RD |
39765 | &_swigt__p_wxNativePixelData, |
39766 | &_swigt__p_wxNativePixelData_Accessor, | |
0085ce49 RD |
39767 | &_swigt__p_wxNavigationKeyEvent, |
39768 | &_swigt__p_wxNcPaintEvent, | |
39769 | &_swigt__p_wxNotifyEvent, | |
39770 | &_swigt__p_wxObject, | |
b39fe951 | 39771 | &_swigt__p_wxOverlay, |
0085ce49 RD |
39772 | &_swigt__p_wxPCXHandler, |
39773 | &_swigt__p_wxPNGHandler, | |
39774 | &_swigt__p_wxPNMHandler, | |
39775 | &_swigt__p_wxPaintDC, | |
39776 | &_swigt__p_wxPaintEvent, | |
39777 | &_swigt__p_wxPalette, | |
39778 | &_swigt__p_wxPaletteChangedEvent, | |
39779 | &_swigt__p_wxPaperSize, | |
39780 | &_swigt__p_wxPen, | |
39781 | &_swigt__p_wxPenList, | |
fc46b7f3 | 39782 | &_swigt__p_wxPixelDataBase, |
0085ce49 | 39783 | &_swigt__p_wxPoint, |
72ef6efb | 39784 | &_swigt__p_wxPoint2D, |
70d7cb34 | 39785 | &_swigt__p_wxPoint2DDouble, |
0085ce49 RD |
39786 | &_swigt__p_wxPostScriptDC, |
39787 | &_swigt__p_wxPrintData, | |
39788 | &_swigt__p_wxPrinterDC, | |
27e45892 | 39789 | &_swigt__p_wxPseudoDC, |
0085ce49 RD |
39790 | &_swigt__p_wxPyApp, |
39791 | &_swigt__p_wxPyCommandEvent, | |
39792 | &_swigt__p_wxPyEvent, | |
39793 | &_swigt__p_wxPyFontEnumerator, | |
39794 | &_swigt__p_wxPyImageHandler, | |
fc46b7f3 | 39795 | &_swigt__p_wxPyLocale, |
0085ce49 RD |
39796 | &_swigt__p_wxPySizer, |
39797 | &_swigt__p_wxPyValidator, | |
39798 | &_swigt__p_wxQueryNewPaletteEvent, | |
39799 | &_swigt__p_wxRect, | |
70d7cb34 | 39800 | &_swigt__p_wxRect2DDouble, |
0085ce49 RD |
39801 | &_swigt__p_wxRegion, |
39802 | &_swigt__p_wxRegionIterator, | |
39803 | &_swigt__p_wxRendererNative, | |
39804 | &_swigt__p_wxRendererVersion, | |
39805 | &_swigt__p_wxScreenDC, | |
39806 | &_swigt__p_wxScrollEvent, | |
39807 | &_swigt__p_wxScrollWinEvent, | |
39808 | &_swigt__p_wxSetCursorEvent, | |
39809 | &_swigt__p_wxShowEvent, | |
39810 | &_swigt__p_wxSize, | |
39811 | &_swigt__p_wxSizeEvent, | |
39812 | &_swigt__p_wxSizer, | |
39813 | &_swigt__p_wxSizerItem, | |
39814 | &_swigt__p_wxSplitterRenderParams, | |
39815 | &_swigt__p_wxStaticBoxSizer, | |
39816 | &_swigt__p_wxStdDialogButtonSizer, | |
50efceee | 39817 | &_swigt__p_wxStockGDI, |
0085ce49 RD |
39818 | &_swigt__p_wxString, |
39819 | &_swigt__p_wxSysColourChangedEvent, | |
39820 | &_swigt__p_wxTIFFHandler, | |
39821 | &_swigt__p_wxUpdateUIEvent, | |
39822 | &_swigt__p_wxValidator, | |
39823 | &_swigt__p_wxWindow, | |
39824 | &_swigt__p_wxWindowCreateEvent, | |
39825 | &_swigt__p_wxWindowDC, | |
39826 | &_swigt__p_wxWindowDestroyEvent, | |
39827 | &_swigt__p_wxXPMHandler, | |
39828 | }; | |
39829 | ||
fc46b7f3 | 39830 | static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
39831 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
39832 | static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; | |
39833 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
39834 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
39835 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
39836 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
39837 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
0a27f394 | 39838 | static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; |
fc46b7f3 RD |
39839 | static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}}; |
39840 | static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 39841 | static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
39842 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; |
39843 | static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}}; | |
39844 | static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}}; | |
39845 | 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}}; | |
39846 | static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 39847 | static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb RD |
39848 | 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}}; |
39849 | static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 RD |
39850 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; |
39851 | static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}}; | |
39852 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 39853 | 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 |
39854 | static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}}; |
39855 | static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}}; | |
b39fe951 | 39856 | static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
39857 | static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}}; |
39858 | static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 RD |
39859 | static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}}; |
39860 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
39861 | static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}}; | |
39862 | static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}}; | |
39863 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
39864 | static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}}; | |
39865 | static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}}; | |
72ef6efb | 39866 | static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}}; |
50efceee | 39867 | 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 | 39868 | 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 | 39869 | static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 39870 | static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
39871 | static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}}; |
39872 | static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}}; | |
39873 | 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 | 39874 | static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
39875 | static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}}; |
39876 | static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}}; | |
33d6fd3b | 39877 | static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
39878 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; |
39879 | static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}}; | |
39880 | static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}}; | |
39881 | static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
39882 | static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}}; | |
39883 | static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 39884 | 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 | 39885 | static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}}; |
8e99bda9 | 39886 | 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 |
39887 | static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}}; |
39888 | static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}}; | |
39889 | static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}}; | |
39890 | static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
39891 | static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 RD |
39892 | static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}}; |
39893 | static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 | 39894 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 39895 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
34e0a3bb | 39896 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
39897 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; |
39898 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
39899 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
39900 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
39901 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
39902 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
39903 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39904 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
39905 | static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39906 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
39907 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
39908 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 39909 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
39910 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; |
39911 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39912 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39913 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39914 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39915 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39916 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
39917 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39918 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
39919 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
39920 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39921 | static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39922 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39923 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
39924 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39925 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39926 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39927 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39928 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39929 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39930 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39931 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39932 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 | 39933 | static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
39934 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
39935 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
39936 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
39937 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
39938 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
39939 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 39940 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 39941 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; |
27e45892 | 39942 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 | 39943 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
39944 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; |
39945 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
39946 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 39947 | static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
39948 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; |
39949 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
39950 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39951 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39952 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39953 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39954 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
39955 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
39956 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39957 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39958 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
39959 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39960 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39961 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39962 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39963 | static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39964 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39965 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39966 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39967 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
39968 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
39969 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
70d7cb34 | 39970 | 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 | 39971 | static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
39972 | static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}}; |
39973 | static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}}; | |
39974 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
39975 | static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}}; | |
39976 | static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 39977 | 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 | 39978 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 39979 | static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 | 39980 | static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
39981 | static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}}; |
39982 | static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
39983 | static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 39984 | static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 39985 | static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}}; |
fc46b7f3 | 39986 | static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 39987 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 | 39988 | static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
39989 | static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}}; |
39990 | static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}}; | |
39991 | static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}}; | |
39992 | static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}}; | |
39993 | static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}}; | |
39994 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
39995 | static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}}; | |
50efceee | 39996 | static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
39997 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; |
39998 | 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 | 39999 | 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 |
40000 | |
40001 | static swig_cast_info *swig_cast_initial[] = { | |
fc46b7f3 | 40002 | _swigc__p_buffer, |
0085ce49 RD |
40003 | _swigc__p_char, |
40004 | _swigc__p_double, | |
40005 | _swigc__p_form_ops_t, | |
40006 | _swigc__p_int, | |
40007 | _swigc__p_unsigned_char, | |
40008 | _swigc__p_unsigned_int, | |
40009 | _swigc__p_unsigned_long, | |
0a27f394 | 40010 | _swigc__p_void, |
0085ce49 RD |
40011 | _swigc__p_wxANIHandler, |
40012 | _swigc__p_wxAcceleratorTable, | |
40013 | _swigc__p_wxActivateEvent, | |
fc46b7f3 RD |
40014 | _swigc__p_wxAlphaPixelData, |
40015 | _swigc__p_wxAlphaPixelData_Accessor, | |
24f6c4e8 | 40016 | _swigc__p_wxAutoBufferedPaintDC, |
0085ce49 RD |
40017 | _swigc__p_wxBMPHandler, |
40018 | _swigc__p_wxBitmap, | |
40019 | _swigc__p_wxBoxSizer, | |
40020 | _swigc__p_wxBrush, | |
40021 | _swigc__p_wxBrushList, | |
40022 | _swigc__p_wxBufferedDC, | |
40023 | _swigc__p_wxBufferedPaintDC, | |
40024 | _swigc__p_wxCURHandler, | |
fc46b7f3 | 40025 | _swigc__p_wxChar, |
0085ce49 RD |
40026 | _swigc__p_wxChildFocusEvent, |
40027 | _swigc__p_wxClientDC, | |
2131d850 | 40028 | _swigc__p_wxClipboardTextEvent, |
0085ce49 | 40029 | _swigc__p_wxCloseEvent, |
72ef6efb | 40030 | _swigc__p_wxColor, |
0085ce49 RD |
40031 | _swigc__p_wxColour, |
40032 | _swigc__p_wxColourDatabase, | |
40033 | _swigc__p_wxCommandEvent, | |
40034 | _swigc__p_wxContextMenuEvent, | |
40035 | _swigc__p_wxControl, | |
40036 | _swigc__p_wxControlWithItems, | |
40037 | _swigc__p_wxCursor, | |
40038 | _swigc__p_wxDC, | |
70d7cb34 RD |
40039 | _swigc__p_wxDCBrushChanger, |
40040 | _swigc__p_wxDCClipper, | |
b39fe951 | 40041 | _swigc__p_wxDCOverlay, |
70d7cb34 RD |
40042 | _swigc__p_wxDCPenChanger, |
40043 | _swigc__p_wxDCTextColourChanger, | |
0085ce49 RD |
40044 | _swigc__p_wxDash, |
40045 | _swigc__p_wxDateEvent, | |
40046 | _swigc__p_wxDisplayChangedEvent, | |
40047 | _swigc__p_wxDropFilesEvent, | |
40048 | _swigc__p_wxDuplexMode, | |
40049 | _swigc__p_wxEffects, | |
40050 | _swigc__p_wxEncodingConverter, | |
40051 | _swigc__p_wxEraseEvent, | |
40052 | _swigc__p_wxEvent, | |
40053 | _swigc__p_wxEvtHandler, | |
40054 | _swigc__p_wxFSFile, | |
40055 | _swigc__p_wxFileSystem, | |
40056 | _swigc__p_wxFlexGridSizer, | |
40057 | _swigc__p_wxFocusEvent, | |
40058 | _swigc__p_wxFont, | |
40059 | _swigc__p_wxFontList, | |
40060 | _swigc__p_wxFontMapper, | |
40061 | _swigc__p_wxGBSizerItem, | |
72ef6efb | 40062 | _swigc__p_wxGCDC, |
50efceee | 40063 | _swigc__p_wxGDIObjListBase, |
0085ce49 RD |
40064 | _swigc__p_wxGDIObject, |
40065 | _swigc__p_wxGIFHandler, | |
70d7cb34 | 40066 | _swigc__p_wxGraphicsBrush, |
72ef6efb | 40067 | _swigc__p_wxGraphicsContext, |
70d7cb34 RD |
40068 | _swigc__p_wxGraphicsFont, |
40069 | _swigc__p_wxGraphicsMatrix, | |
40070 | _swigc__p_wxGraphicsObject, | |
72ef6efb | 40071 | _swigc__p_wxGraphicsPath, |
70d7cb34 RD |
40072 | _swigc__p_wxGraphicsPen, |
40073 | _swigc__p_wxGraphicsRenderer, | |
0085ce49 RD |
40074 | _swigc__p_wxGridBagSizer, |
40075 | _swigc__p_wxGridSizer, | |
33d6fd3b | 40076 | _swigc__p_wxHeaderButtonParams, |
0085ce49 RD |
40077 | _swigc__p_wxICOHandler, |
40078 | _swigc__p_wxIcon, | |
40079 | _swigc__p_wxIconBundle, | |
40080 | _swigc__p_wxIconLocation, | |
40081 | _swigc__p_wxIconizeEvent, | |
40082 | _swigc__p_wxIdleEvent, | |
40083 | _swigc__p_wxImage, | |
40084 | _swigc__p_wxImageHandler, | |
40085 | _swigc__p_wxImageList, | |
40086 | _swigc__p_wxIndividualLayoutConstraint, | |
40087 | _swigc__p_wxInitDialogEvent, | |
40088 | _swigc__p_wxJPEGHandler, | |
40089 | _swigc__p_wxKeyEvent, | |
40090 | _swigc__p_wxLanguageInfo, | |
40091 | _swigc__p_wxLayoutConstraints, | |
40092 | _swigc__p_wxLocale, | |
40093 | _swigc__p_wxMask, | |
40094 | _swigc__p_wxMaximizeEvent, | |
40095 | _swigc__p_wxMemoryDC, | |
40096 | _swigc__p_wxMenu, | |
40097 | _swigc__p_wxMenuBar, | |
40098 | _swigc__p_wxMenuEvent, | |
40099 | _swigc__p_wxMenuItem, | |
40100 | _swigc__p_wxMetaFile, | |
40101 | _swigc__p_wxMetaFileDC, | |
40102 | _swigc__p_wxMirrorDC, | |
40103 | _swigc__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 40104 | _swigc__p_wxMouseCaptureLostEvent, |
0085ce49 RD |
40105 | _swigc__p_wxMouseEvent, |
40106 | _swigc__p_wxMoveEvent, | |
40107 | _swigc__p_wxNativeEncodingInfo, | |
40108 | _swigc__p_wxNativeFontInfo, | |
fc46b7f3 RD |
40109 | _swigc__p_wxNativePixelData, |
40110 | _swigc__p_wxNativePixelData_Accessor, | |
0085ce49 RD |
40111 | _swigc__p_wxNavigationKeyEvent, |
40112 | _swigc__p_wxNcPaintEvent, | |
40113 | _swigc__p_wxNotifyEvent, | |
40114 | _swigc__p_wxObject, | |
b39fe951 | 40115 | _swigc__p_wxOverlay, |
0085ce49 RD |
40116 | _swigc__p_wxPCXHandler, |
40117 | _swigc__p_wxPNGHandler, | |
40118 | _swigc__p_wxPNMHandler, | |
40119 | _swigc__p_wxPaintDC, | |
40120 | _swigc__p_wxPaintEvent, | |
40121 | _swigc__p_wxPalette, | |
40122 | _swigc__p_wxPaletteChangedEvent, | |
40123 | _swigc__p_wxPaperSize, | |
40124 | _swigc__p_wxPen, | |
40125 | _swigc__p_wxPenList, | |
fc46b7f3 | 40126 | _swigc__p_wxPixelDataBase, |
0085ce49 | 40127 | _swigc__p_wxPoint, |
72ef6efb | 40128 | _swigc__p_wxPoint2D, |
70d7cb34 | 40129 | _swigc__p_wxPoint2DDouble, |
0085ce49 RD |
40130 | _swigc__p_wxPostScriptDC, |
40131 | _swigc__p_wxPrintData, | |
40132 | _swigc__p_wxPrinterDC, | |
27e45892 | 40133 | _swigc__p_wxPseudoDC, |
0085ce49 RD |
40134 | _swigc__p_wxPyApp, |
40135 | _swigc__p_wxPyCommandEvent, | |
40136 | _swigc__p_wxPyEvent, | |
40137 | _swigc__p_wxPyFontEnumerator, | |
40138 | _swigc__p_wxPyImageHandler, | |
fc46b7f3 | 40139 | _swigc__p_wxPyLocale, |
0085ce49 RD |
40140 | _swigc__p_wxPySizer, |
40141 | _swigc__p_wxPyValidator, | |
40142 | _swigc__p_wxQueryNewPaletteEvent, | |
40143 | _swigc__p_wxRect, | |
70d7cb34 | 40144 | _swigc__p_wxRect2DDouble, |
0085ce49 RD |
40145 | _swigc__p_wxRegion, |
40146 | _swigc__p_wxRegionIterator, | |
40147 | _swigc__p_wxRendererNative, | |
40148 | _swigc__p_wxRendererVersion, | |
40149 | _swigc__p_wxScreenDC, | |
40150 | _swigc__p_wxScrollEvent, | |
40151 | _swigc__p_wxScrollWinEvent, | |
40152 | _swigc__p_wxSetCursorEvent, | |
40153 | _swigc__p_wxShowEvent, | |
40154 | _swigc__p_wxSize, | |
40155 | _swigc__p_wxSizeEvent, | |
40156 | _swigc__p_wxSizer, | |
40157 | _swigc__p_wxSizerItem, | |
40158 | _swigc__p_wxSplitterRenderParams, | |
40159 | _swigc__p_wxStaticBoxSizer, | |
40160 | _swigc__p_wxStdDialogButtonSizer, | |
50efceee | 40161 | _swigc__p_wxStockGDI, |
0085ce49 RD |
40162 | _swigc__p_wxString, |
40163 | _swigc__p_wxSysColourChangedEvent, | |
40164 | _swigc__p_wxTIFFHandler, | |
40165 | _swigc__p_wxUpdateUIEvent, | |
40166 | _swigc__p_wxValidator, | |
40167 | _swigc__p_wxWindow, | |
40168 | _swigc__p_wxWindowCreateEvent, | |
40169 | _swigc__p_wxWindowDC, | |
40170 | _swigc__p_wxWindowDestroyEvent, | |
40171 | _swigc__p_wxXPMHandler, | |
40172 | }; | |
40173 | ||
40174 | ||
40175 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
40176 | ||
40177 | static swig_const_info swig_const_table[] = { | |
40178 | {0, 0, 0, 0.0, 0, 0}}; | |
40179 | ||
40180 | #ifdef __cplusplus | |
40181 | } | |
40182 | #endif | |
40183 | /* ----------------------------------------------------------------------------- | |
40184 | * Type initialization: | |
40185 | * This problem is tough by the requirement that no dynamic | |
40186 | * memory is used. Also, since swig_type_info structures store pointers to | |
40187 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
40188 | * to swig_type_info structures, we need some lookup code at initialization. | |
40189 | * The idea is that swig generates all the structures that are needed. | |
40190 | * The runtime then collects these partially filled structures. | |
40191 | * The SWIG_InitializeModule function takes these initial arrays out of | |
40192 | * swig_module, and does all the lookup, filling in the swig_module.types | |
40193 | * array with the correct data and linking the correct swig_cast_info | |
40194 | * structures together. | |
40195 | * | |
40196 | * The generated swig_type_info structures are assigned staticly to an initial | |
40197 | * array. We just loop though that array, and handle each type individually. | |
40198 | * First we lookup if this type has been already loaded, and if so, use the | |
40199 | * loaded structure instead of the generated one. Then we have to fill in the | |
40200 | * cast linked list. The cast data is initially stored in something like a | |
40201 | * two-dimensional array. Each row corresponds to a type (there are the same | |
40202 | * number of rows as there are in the swig_type_initial array). Each entry in | |
40203 | * a column is one of the swig_cast_info structures for that type. | |
40204 | * The cast_initial array is actually an array of arrays, because each row has | |
40205 | * a variable number of columns. So to actually build the cast linked list, | |
40206 | * we find the array of casts associated with the type, and loop through it | |
40207 | * adding the casts to the list. The one last trick we need to do is making | |
40208 | * sure the type pointer in the swig_cast_info struct is correct. | |
40209 | * | |
40210 | * First off, we lookup the cast->type name to see if it is already loaded. | |
40211 | * There are three cases to handle: | |
40212 | * 1) If the cast->type has already been loaded AND the type we are adding | |
40213 | * casting info to has not been loaded (it is in this module), THEN we | |
40214 | * replace the cast->type pointer with the type pointer that has already | |
40215 | * been loaded. | |
40216 | * 2) If BOTH types (the one we are adding casting info to, and the | |
40217 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
40218 | * the previous module so we just ignore it. | |
40219 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
40220 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
40221 | * be correct. | |
40222 | * ----------------------------------------------------------------------------- */ | |
40223 | ||
40224 | #ifdef __cplusplus | |
40225 | extern "C" { | |
40226 | #if 0 | |
40227 | } /* c-mode */ | |
40228 | #endif | |
40229 | #endif | |
40230 | ||
40231 | #if 0 | |
40232 | #define SWIGRUNTIME_DEBUG | |
40233 | #endif | |
40234 | ||
40235 | SWIGRUNTIME void | |
40236 | SWIG_InitializeModule(void *clientdata) { | |
40237 | size_t i; | |
40238 | swig_module_info *module_head; | |
40239 | static int init_run = 0; | |
40240 | ||
40241 | clientdata = clientdata; | |
40242 | ||
40243 | if (init_run) return; | |
40244 | init_run = 1; | |
40245 | ||
40246 | /* Initialize the swig_module */ | |
40247 | swig_module.type_initial = swig_type_initial; | |
40248 | swig_module.cast_initial = swig_cast_initial; | |
40249 | ||
40250 | /* Try and load any already created modules */ | |
40251 | module_head = SWIG_GetModule(clientdata); | |
40252 | if (module_head) { | |
40253 | swig_module.next = module_head->next; | |
40254 | module_head->next = &swig_module; | |
40255 | } else { | |
40256 | /* This is the first module loaded */ | |
40257 | swig_module.next = &swig_module; | |
40258 | SWIG_SetModule(clientdata, &swig_module); | |
40259 | } | |
40260 | ||
40261 | /* Now work on filling in swig_module.types */ | |
40262 | #ifdef SWIGRUNTIME_DEBUG | |
40263 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
40264 | #endif | |
40265 | for (i = 0; i < swig_module.size; ++i) { | |
40266 | swig_type_info *type = 0; | |
40267 | swig_type_info *ret; | |
40268 | swig_cast_info *cast; | |
40269 | ||
40270 | #ifdef SWIGRUNTIME_DEBUG | |
40271 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
40272 | #endif | |
40273 | ||
40274 | /* if there is another module already loaded */ | |
40275 | if (swig_module.next != &swig_module) { | |
40276 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
8d38bd1d | 40277 | } |
0085ce49 RD |
40278 | if (type) { |
40279 | /* Overwrite clientdata field */ | |
40280 | #ifdef SWIGRUNTIME_DEBUG | |
40281 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
40282 | #endif | |
40283 | if (swig_module.type_initial[i]->clientdata) { | |
40284 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
40285 | #ifdef SWIGRUNTIME_DEBUG | |
40286 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
40287 | #endif | |
40288 | } | |
40289 | } else { | |
40290 | type = swig_module.type_initial[i]; | |
8d38bd1d | 40291 | } |
0085ce49 RD |
40292 | |
40293 | /* Insert casting types */ | |
40294 | cast = swig_module.cast_initial[i]; | |
40295 | while (cast->type) { | |
40296 | /* Don't need to add information already in the list */ | |
40297 | ret = 0; | |
40298 | #ifdef SWIGRUNTIME_DEBUG | |
40299 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
40300 | #endif | |
40301 | if (swig_module.next != &swig_module) { | |
40302 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
40303 | #ifdef SWIGRUNTIME_DEBUG | |
40304 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
40305 | #endif | |
40306 | } | |
40307 | if (ret) { | |
40308 | if (type == swig_module.type_initial[i]) { | |
40309 | #ifdef SWIGRUNTIME_DEBUG | |
40310 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
40311 | #endif | |
40312 | cast->type = ret; | |
40313 | ret = 0; | |
40314 | } else { | |
40315 | /* Check for casting already in the list */ | |
40316 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
40317 | #ifdef SWIGRUNTIME_DEBUG | |
40318 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
40319 | #endif | |
40320 | if (!ocast) ret = 0; | |
40321 | } | |
40322 | } | |
40323 | ||
40324 | if (!ret) { | |
40325 | #ifdef SWIGRUNTIME_DEBUG | |
40326 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
40327 | #endif | |
40328 | if (type->cast) { | |
40329 | type->cast->prev = cast; | |
40330 | cast->next = type->cast; | |
40331 | } | |
40332 | type->cast = cast; | |
40333 | } | |
40334 | cast++; | |
8d38bd1d | 40335 | } |
0085ce49 RD |
40336 | /* Set entry in modules->types array equal to the type */ |
40337 | swig_module.types[i] = type; | |
40338 | } | |
40339 | swig_module.types[i] = 0; | |
40340 | ||
40341 | #ifdef SWIGRUNTIME_DEBUG | |
40342 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
40343 | for (i = 0; i < swig_module.size; ++i) { | |
40344 | int j = 0; | |
40345 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
40346 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
40347 | while (cast->type) { | |
40348 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
40349 | cast++; | |
40350 | ++j; | |
40351 | } | |
40352 | printf("---- Total casts: %d\n",j); | |
40353 | } | |
40354 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
40355 | #endif | |
40356 | } | |
40357 | ||
40358 | /* This function will propagate the clientdata field of type to | |
40359 | * any new swig_type_info structures that have been added into the list | |
40360 | * of equivalent types. It is like calling | |
40361 | * SWIG_TypeClientData(type, clientdata) a second time. | |
40362 | */ | |
40363 | SWIGRUNTIME void | |
40364 | SWIG_PropagateClientData(void) { | |
40365 | size_t i; | |
40366 | swig_cast_info *equiv; | |
40367 | static int init_run = 0; | |
40368 | ||
40369 | if (init_run) return; | |
40370 | init_run = 1; | |
40371 | ||
40372 | for (i = 0; i < swig_module.size; i++) { | |
40373 | if (swig_module.types[i]->clientdata) { | |
40374 | equiv = swig_module.types[i]->cast; | |
40375 | while (equiv) { | |
40376 | if (!equiv->converter) { | |
40377 | if (equiv->type && !equiv->type->clientdata) | |
40378 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
40379 | } | |
40380 | equiv = equiv->next; | |
40381 | } | |
8d38bd1d | 40382 | } |
0085ce49 RD |
40383 | } |
40384 | } | |
40385 | ||
40386 | #ifdef __cplusplus | |
40387 | #if 0 | |
40388 | { | |
40389 | /* c-mode */ | |
40390 | #endif | |
40391 | } | |
40392 | #endif | |
40393 | ||
40394 | ||
40395 | ||
40396 | #ifdef __cplusplus | |
40397 | extern "C" { | |
40398 | #endif | |
40399 | ||
40400 | /* Python-specific SWIG API */ | |
40401 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
40402 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
40403 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
40404 | ||
40405 | /* ----------------------------------------------------------------------------- | |
40406 | * global variable support code. | |
40407 | * ----------------------------------------------------------------------------- */ | |
40408 | ||
40409 | typedef struct swig_globalvar { | |
40410 | char *name; /* Name of global variable */ | |
40411 | PyObject *(*get_attr)(void); /* Return the current value */ | |
40412 | int (*set_attr)(PyObject *); /* Set the value */ | |
40413 | struct swig_globalvar *next; | |
40414 | } swig_globalvar; | |
40415 | ||
40416 | typedef struct swig_varlinkobject { | |
40417 | PyObject_HEAD | |
40418 | swig_globalvar *vars; | |
40419 | } swig_varlinkobject; | |
40420 | ||
40421 | SWIGINTERN PyObject * | |
40422 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
40423 | return PyString_FromString("<Swig global variables>"); | |
40424 | } | |
40425 | ||
40426 | SWIGINTERN PyObject * | |
40427 | swig_varlink_str(swig_varlinkobject *v) { | |
40428 | PyObject *str = PyString_FromString("("); | |
40429 | swig_globalvar *var; | |
40430 | for (var = v->vars; var; var=var->next) { | |
40431 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
40432 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
40433 | } | |
40434 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
40435 | return str; | |
40436 | } | |
40437 | ||
40438 | SWIGINTERN int | |
40439 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
40440 | PyObject *str = swig_varlink_str(v); | |
40441 | fprintf(fp,"Swig global variables "); | |
40442 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
40443 | Py_DECREF(str); | |
40444 | return 0; | |
40445 | } | |
40446 | ||
40447 | SWIGINTERN void | |
40448 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
40449 | swig_globalvar *var = v->vars; | |
40450 | while (var) { | |
40451 | swig_globalvar *n = var->next; | |
40452 | free(var->name); | |
40453 | free(var); | |
40454 | var = n; | |
8d38bd1d | 40455 | } |
0085ce49 RD |
40456 | } |
40457 | ||
40458 | SWIGINTERN PyObject * | |
40459 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
40460 | PyObject *res = NULL; | |
40461 | swig_globalvar *var = v->vars; | |
40462 | while (var) { | |
40463 | if (strcmp(var->name,n) == 0) { | |
40464 | res = (*var->get_attr)(); | |
40465 | break; | |
40466 | } | |
40467 | var = var->next; | |
8d38bd1d | 40468 | } |
0085ce49 RD |
40469 | if (res == NULL && !PyErr_Occurred()) { |
40470 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
8d38bd1d | 40471 | } |
0085ce49 RD |
40472 | return res; |
40473 | } | |
40474 | ||
40475 | SWIGINTERN int | |
40476 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
40477 | int res = 1; | |
40478 | swig_globalvar *var = v->vars; | |
40479 | while (var) { | |
40480 | if (strcmp(var->name,n) == 0) { | |
40481 | res = (*var->set_attr)(p); | |
40482 | break; | |
40483 | } | |
40484 | var = var->next; | |
8d38bd1d | 40485 | } |
0085ce49 RD |
40486 | if (res == 1 && !PyErr_Occurred()) { |
40487 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
8d38bd1d | 40488 | } |
0085ce49 RD |
40489 | return res; |
40490 | } | |
40491 | ||
40492 | SWIGINTERN PyTypeObject* | |
40493 | swig_varlink_type(void) { | |
40494 | static char varlink__doc__[] = "Swig var link object"; | |
40495 | static PyTypeObject varlink_type; | |
40496 | static int type_init = 0; | |
40497 | if (!type_init) { | |
40498 | const PyTypeObject tmp | |
40499 | = { | |
40500 | PyObject_HEAD_INIT(NULL) | |
40501 | 0, /* Number of items in variable part (ob_size) */ | |
40502 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
40503 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
40504 | 0, /* Itemsize (tp_itemsize) */ | |
40505 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
40506 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
40507 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
40508 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
40509 | 0, /* tp_compare */ | |
40510 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
40511 | 0, /* tp_as_number */ | |
40512 | 0, /* tp_as_sequence */ | |
40513 | 0, /* tp_as_mapping */ | |
40514 | 0, /* tp_hash */ | |
40515 | 0, /* tp_call */ | |
40516 | (reprfunc)swig_varlink_str, /* tp_str */ | |
40517 | 0, /* tp_getattro */ | |
40518 | 0, /* tp_setattro */ | |
40519 | 0, /* tp_as_buffer */ | |
40520 | 0, /* tp_flags */ | |
40521 | varlink__doc__, /* tp_doc */ | |
40522 | 0, /* tp_traverse */ | |
40523 | 0, /* tp_clear */ | |
40524 | 0, /* tp_richcompare */ | |
40525 | 0, /* tp_weaklistoffset */ | |
40526 | #if PY_VERSION_HEX >= 0x02020000 | |
40527 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
40528 | #endif | |
40529 | #if PY_VERSION_HEX >= 0x02030000 | |
40530 | 0, /* tp_del */ | |
40531 | #endif | |
40532 | #ifdef COUNT_ALLOCS | |
40533 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
40534 | #endif | |
40535 | }; | |
40536 | varlink_type = tmp; | |
40537 | varlink_type.ob_type = &PyType_Type; | |
40538 | type_init = 1; | |
8d38bd1d | 40539 | } |
0085ce49 RD |
40540 | return &varlink_type; |
40541 | } | |
40542 | ||
40543 | /* Create a variable linking object for use later */ | |
40544 | SWIGINTERN PyObject * | |
40545 | SWIG_Python_newvarlink(void) { | |
40546 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
40547 | if (result) { | |
40548 | result->vars = 0; | |
40549 | } | |
40550 | return ((PyObject*) result); | |
40551 | } | |
40552 | ||
40553 | SWIGINTERN void | |
40554 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
40555 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
40556 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
40557 | if (gv) { | |
40558 | size_t size = strlen(name)+1; | |
40559 | gv->name = (char *)malloc(size); | |
40560 | if (gv->name) { | |
40561 | strncpy(gv->name,name,size); | |
40562 | gv->get_attr = get_attr; | |
40563 | gv->set_attr = set_attr; | |
40564 | gv->next = v->vars; | |
40565 | } | |
8d38bd1d | 40566 | } |
0085ce49 RD |
40567 | v->vars = gv; |
40568 | } | |
40569 | ||
40570 | SWIGINTERN PyObject * | |
40571 | SWIG_globals() { | |
40572 | static PyObject *_SWIG_globals = 0; | |
40573 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
40574 | return _SWIG_globals; | |
40575 | } | |
40576 | ||
40577 | /* ----------------------------------------------------------------------------- | |
40578 | * constants/methods manipulation | |
40579 | * ----------------------------------------------------------------------------- */ | |
40580 | ||
40581 | /* Install Constants */ | |
40582 | SWIGINTERN void | |
40583 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
40584 | PyObject *obj = 0; | |
40585 | size_t i; | |
40586 | for (i = 0; constants[i].type; ++i) { | |
40587 | switch(constants[i].type) { | |
40588 | case SWIG_PY_POINTER: | |
40589 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
40590 | break; | |
40591 | case SWIG_PY_BINARY: | |
40592 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
40593 | break; | |
40594 | default: | |
40595 | obj = 0; | |
40596 | break; | |
40597 | } | |
40598 | if (obj) { | |
40599 | PyDict_SetItemString(d, constants[i].name, obj); | |
40600 | Py_DECREF(obj); | |
40601 | } | |
8d38bd1d | 40602 | } |
0085ce49 RD |
40603 | } |
40604 | ||
40605 | /* -----------------------------------------------------------------------------*/ | |
40606 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
40607 | /* -----------------------------------------------------------------------------*/ | |
40608 | ||
40609 | SWIGINTERN void | |
40610 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
40611 | swig_const_info *const_table, | |
40612 | swig_type_info **types, | |
40613 | swig_type_info **types_initial) { | |
40614 | size_t i; | |
40615 | for (i = 0; methods[i].ml_name; ++i) { | |
453fb36b | 40616 | const char *c = methods[i].ml_doc; |
0085ce49 RD |
40617 | if (c && (c = strstr(c, "swig_ptr: "))) { |
40618 | int j; | |
40619 | swig_const_info *ci = 0; | |
453fb36b | 40620 | const char *name = c + 10; |
0085ce49 RD |
40621 | for (j = 0; const_table[j].type; ++j) { |
40622 | if (strncmp(const_table[j].name, name, | |
40623 | strlen(const_table[j].name)) == 0) { | |
40624 | ci = &(const_table[j]); | |
40625 | break; | |
40626 | } | |
40627 | } | |
40628 | if (ci) { | |
40629 | size_t shift = (ci->ptype) - types; | |
40630 | swig_type_info *ty = types_initial[shift]; | |
40631 | size_t ldoc = (c - methods[i].ml_doc); | |
40632 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
40633 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
40634 | if (ndoc) { | |
40635 | char *buff = ndoc; | |
40636 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
40637 | if (ptr) { | |
40638 | strncpy(buff, methods[i].ml_doc, ldoc); | |
40639 | buff += ldoc; | |
40640 | strncpy(buff, "swig_ptr: ", 10); | |
40641 | buff += 10; | |
40642 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
40643 | methods[i].ml_doc = ndoc; | |
40644 | } | |
40645 | } | |
40646 | } | |
40647 | } | |
8d38bd1d | 40648 | } |
0085ce49 RD |
40649 | } |
40650 | ||
40651 | #ifdef __cplusplus | |
40652 | } | |
40653 | #endif | |
40654 | ||
40655 | /* -----------------------------------------------------------------------------* | |
40656 | * Partial Init method | |
40657 | * -----------------------------------------------------------------------------*/ | |
40658 | ||
40659 | #ifdef __cplusplus | |
40660 | extern "C" | |
40661 | #endif | |
40662 | SWIGEXPORT void SWIG_init(void) { | |
40663 | PyObject *m, *d; | |
40664 | ||
40665 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
40666 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
40667 | ||
40668 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
40669 | d = PyModule_GetDict(m); | |
40670 | ||
40671 | SWIG_InitializeModule(0); | |
40672 | SWIG_InstallConstants(d,swig_const_table); | |
40673 | ||
40674 | ||
01f6b6d3 RD |
40675 | SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME))); |
40676 | SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX))); | |
40677 | SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX))); | |
fc46b7f3 RD |
40678 | SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT))); |
40679 | SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE))); | |
0085ce49 RD |
40680 | SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion))); |
40681 | SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion))); | |
40682 | SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion))); | |
40683 | SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT))); | |
40684 | SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE))); | |
40685 | SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN))); | |
40686 | SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT))); | |
40687 | SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS))); | |
40688 | SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN))); | |
40689 | SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE))); | |
40690 | SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX))); | |
40691 | SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN))); | |
40692 | SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL))); | |
40693 | SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC))); | |
40694 | SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT))); | |
40695 | SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX))); | |
40696 | SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL))); | |
40697 | SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT))); | |
40698 | SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD))); | |
40699 | SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX))); | |
40700 | SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT))); | |
40701 | SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC))); | |
40702 | SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT))); | |
40703 | SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT))); | |
40704 | SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD))); | |
40705 | SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED))); | |
40706 | SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED))); | |
40707 | SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED))); | |
40708 | SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH))); | |
40709 | SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK))); | |
40710 | SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM))); | |
40711 | SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT))); | |
40712 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1))); | |
40713 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2))); | |
40714 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3))); | |
40715 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4))); | |
40716 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5))); | |
40717 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6))); | |
40718 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7))); | |
40719 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8))); | |
40720 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9))); | |
40721 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10))); | |
40722 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11))); | |
40723 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12))); | |
40724 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13))); | |
40725 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14))); | |
40726 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15))); | |
40727 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX))); | |
40728 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8))); | |
40729 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U))); | |
40730 | SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE))); | |
40731 | SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN))); | |
40732 | SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437))); | |
40733 | SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850))); | |
40734 | SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852))); | |
40735 | SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855))); | |
40736 | SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866))); | |
40737 | SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874))); | |
40738 | SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932))); | |
40739 | SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936))); | |
40740 | SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949))); | |
40741 | SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950))); | |
40742 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250))); | |
40743 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251))); | |
40744 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252))); | |
40745 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253))); | |
40746 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254))); | |
40747 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255))); | |
40748 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256))); | |
40749 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257))); | |
40750 | SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX))); | |
40751 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7))); | |
40752 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8))); | |
40753 | SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP))); | |
40754 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE))); | |
40755 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE))); | |
40756 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE))); | |
40757 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE))); | |
40758 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN))); | |
40759 | SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE))); | |
40760 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD))); | |
40761 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN))); | |
40762 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC))); | |
40763 | SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW))); | |
40764 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK))); | |
40765 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC))); | |
40766 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI))); | |
40767 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI))); | |
40768 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI))); | |
40769 | SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA))); | |
40770 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI))); | |
40771 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL))); | |
40772 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU))); | |
40773 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA))); | |
40774 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM))); | |
40775 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE))); | |
40776 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE))); | |
40777 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER))); | |
40778 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI))); | |
40779 | SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN))); | |
40780 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN))); | |
40781 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN))); | |
40782 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP))); | |
40783 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN))); | |
40784 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN))); | |
40785 | SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC))); | |
40786 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR))); | |
40787 | SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE))); | |
40788 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT))); | |
40789 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL))); | |
40790 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS))); | |
40791 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH))); | |
40792 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN))); | |
40793 | SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC))); | |
40794 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN))); | |
40795 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC))); | |
40796 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC))); | |
40797 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD))); | |
40798 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN))); | |
40799 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX))); | |
40800 | SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX))); | |
40801 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16))); | |
40802 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32))); | |
40803 | SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE))); | |
40804 | SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312))); | |
40805 | SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5))); | |
40806 | SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS))); | |
40807 | ||
40808 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
40809 | ||
40810 | SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT))); | |
40811 | SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN))); | |
40812 | SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN))); | |
40813 | SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR))); | |
40814 | SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS))); | |
40815 | SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN))); | |
40816 | SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC))); | |
40817 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC))); | |
40818 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA))); | |
40819 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN))); | |
40820 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT))); | |
40821 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ))); | |
40822 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN))); | |
40823 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT))); | |
40824 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON))); | |
40825 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA))); | |
40826 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO))); | |
40827 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN))); | |
40828 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR))); | |
40829 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA))); | |
40830 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN))); | |
40831 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA))); | |
40832 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA))); | |
40833 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE))); | |
40834 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN))); | |
40835 | SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN))); | |
40836 | SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE))); | |
40837 | SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA))); | |
40838 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI))); | |
40839 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC))); | |
40840 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN))); | |
40841 | SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR))); | |
40842 | SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE))); | |
40843 | SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN))); | |
40844 | SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI))); | |
40845 | SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI))); | |
40846 | SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI))); | |
40847 | SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA))); | |
40848 | SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON))); | |
40849 | SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN))); | |
40850 | SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE))); | |
40851 | SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN))); | |
40852 | SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN))); | |
40853 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE))); | |
40854 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED))); | |
40855 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL))); | |
40856 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG))); | |
40857 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU))); | |
40858 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE))); | |
40859 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN))); | |
40860 | SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN))); | |
40861 | SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN))); | |
40862 | SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH))); | |
40863 | SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH))); | |
40864 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH))); | |
40865 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN))); | |
40866 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH))); | |
40867 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK))); | |
40868 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US))); | |
40869 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA))); | |
40870 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE))); | |
40871 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA))); | |
40872 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA))); | |
40873 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN))); | |
40874 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK))); | |
40875 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE))); | |
40876 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA))); | |
40877 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND))); | |
40878 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES))); | |
40879 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA))); | |
40880 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD))); | |
40881 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE))); | |
40882 | SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO))); | |
40883 | SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN))); | |
40884 | SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE))); | |
40885 | SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI))); | |
40886 | SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI))); | |
40887 | SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH))); | |
40888 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH))); | |
40889 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN))); | |
40890 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN))); | |
40891 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG))); | |
40892 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO))); | |
40893 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS))); | |
40894 | SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN))); | |
40895 | SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN))); | |
40896 | SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN))); | |
40897 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN))); | |
40898 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN))); | |
40899 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM))); | |
40900 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN))); | |
40901 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG))); | |
40902 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS))); | |
40903 | SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK))); | |
40904 | SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC))); | |
40905 | SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI))); | |
40906 | SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI))); | |
40907 | SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA))); | |
40908 | SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW))); | |
40909 | SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI))); | |
40910 | SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN))); | |
40911 | SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC))); | |
40912 | SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN))); | |
40913 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA))); | |
40914 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE))); | |
40915 | SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT))); | |
40916 | SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK))); | |
40917 | SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH))); | |
40918 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN))); | |
40919 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS))); | |
40920 | SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE))); | |
40921 | SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE))); | |
40922 | SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA))); | |
40923 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI))); | |
40924 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA))); | |
40925 | SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH))); | |
40926 | SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK))); | |
40927 | SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA))); | |
40928 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ))); | |
40929 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI))); | |
40930 | SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI))); | |
40931 | SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN))); | |
40932 | SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH))); | |
40933 | SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN))); | |
40934 | SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN))); | |
40935 | SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN))); | |
40936 | SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA))); | |
40937 | SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN))); | |
40938 | SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN))); | |
40939 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY))); | |
40940 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY))); | |
40941 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM))); | |
40942 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM))); | |
40943 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA))); | |
40944 | SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE))); | |
40945 | SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI))); | |
40946 | SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI))); | |
40947 | SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI))); | |
40948 | SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN))); | |
40949 | SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN))); | |
40950 | SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU))); | |
40951 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI))); | |
40952 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA))); | |
40953 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL))); | |
40954 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK))); | |
40955 | SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN))); | |
40956 | SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA))); | |
40957 | SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO))); | |
40958 | SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO))); | |
40959 | SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH))); | |
40960 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE))); | |
40961 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN))); | |
40962 | SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI))); | |
40963 | SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA))); | |
40964 | SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE))); | |
40965 | SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN))); | |
40966 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN))); | |
40967 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE))); | |
40968 | SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN))); | |
40969 | SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO))); | |
40970 | SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT))); | |
40971 | SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC))); | |
40972 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN))); | |
40973 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC))); | |
40974 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN))); | |
40975 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN))); | |
40976 | SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO))); | |
40977 | SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA))); | |
40978 | SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA))); | |
40979 | SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI))); | |
40980 | SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE))); | |
40981 | SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI))); | |
40982 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK))); | |
40983 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN))); | |
40984 | SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI))); | |
40985 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH))); | |
40986 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA))); | |
40987 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA))); | |
40988 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE))); | |
40989 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA))); | |
40990 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA))); | |
40991 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC))); | |
40992 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR))); | |
40993 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR))); | |
40994 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA))); | |
40995 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS))); | |
40996 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN))); | |
40997 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN))); | |
40998 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA))); | |
40999 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA))); | |
41000 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY))); | |
41001 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU))); | |
41002 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO))); | |
41003 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY))); | |
41004 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US))); | |
41005 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA))); | |
41006 | SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE))); | |
41007 | SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI))); | |
41008 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH))); | |
41009 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND))); | |
41010 | SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG))); | |
41011 | SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK))); | |
41012 | SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL))); | |
41013 | SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR))); | |
41014 | SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU))); | |
41015 | SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI))); | |
41016 | SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN))); | |
41017 | SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA))); | |
41018 | SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA))); | |
41019 | SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA))); | |
41020 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH))); | |
41021 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN))); | |
41022 | SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI))); | |
41023 | SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR))); | |
41024 | SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN))); | |
41025 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU))); | |
41026 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA))); | |
41027 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN))); | |
41028 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK))); | |
41029 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC))); | |
41030 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN))); | |
41031 | SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE))); | |
41032 | SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK))); | |
41033 | SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH))); | |
41034 | SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF))); | |
41035 | SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA))); | |
41036 | SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH))); | |
41037 | SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA))); | |
41038 | SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG))); | |
41039 | SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU))); | |
41040 | SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED))); | |
41041 | SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER))); | |
41042 | SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE))); | |
41043 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY))); | |
41044 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX))); | |
41045 | SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP))); | |
41046 | SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT))); | |
41047 | SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT))); | |
41048 | SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING))); | |
41049 | SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT))); | |
41050 | SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE))); | |
41051 | SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT))); | |
41052 | SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX))); | |
41053 | SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS))); | |
41054 | SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2))); | |
41055 | SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC))); | |
41056 | SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA))); | |
41057 | SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA))); | |
70d7cb34 RD |
41058 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); |
41059 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set); | |
41060 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set); | |
41061 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set); | |
5c8c7dd3 RD |
41062 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set); |
41063 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set); | |
0085ce49 RD |
41064 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL))); |
41065 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT))); | |
41066 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED))); | |
41067 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED))); | |
41068 | SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL))); | |
41069 | SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL))); | |
41070 | SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE))); | |
50efceee RD |
41071 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK))); |
41072 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE))); | |
41073 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN))); | |
41074 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN))); | |
41075 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY))); | |
41076 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY))); | |
41077 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY))); | |
41078 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED))); | |
41079 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT))); | |
41080 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE))); | |
41081 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK))); | |
41082 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE))); | |
41083 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN))); | |
41084 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN))); | |
41085 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY))); | |
41086 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED))); | |
41087 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE))); | |
41088 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS))); | |
41089 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS))); | |
41090 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD))); | |
41091 | SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC))); | |
41092 | SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL))); | |
41093 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL))); | |
41094 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS))); | |
41095 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK))); | |
41096 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED))); | |
41097 | SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN))); | |
41098 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN))); | |
41099 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY))); | |
41100 | SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY))); | |
41101 | SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY))); | |
41102 | SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED))); | |
41103 | SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT))); | |
41104 | SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE))); | |
41105 | SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT))); | |
0085ce49 RD |
41106 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set); |
41107 | SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set); | |
41108 | SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set); | |
41109 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set); | |
41110 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set); | |
41111 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set); | |
41112 | SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set); | |
41113 | SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set); | |
0085ce49 RD |
41114 | SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED))); |
41115 | SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED))); | |
41116 | SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED))); | |
79df624a | 41117 | SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL))); |
0085ce49 RD |
41118 | SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT))); |
41119 | SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU))); | |
41120 | SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED))); | |
79df624a | 41121 | SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP))); |
0085ce49 RD |
41122 | SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT))); |
41123 | SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED))); | |
41124 | SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED))); | |
41125 | SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE))); | |
41126 | SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED))); | |
41127 | SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK))); | |
41128 | SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY))); | |
33d6fd3b RD |
41129 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE))); |
41130 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP))); | |
41131 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN))); | |
0085ce49 RD |
41132 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version))); |
41133 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age))); | |
41134 | ||
41135 | // Work around a chicken/egg problem in drawlist.cpp | |
41136 | wxPyDrawList_SetAPIPtr(); | |
41137 | ||
d14a1e28 RD |
41138 | } |
41139 |