]>
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] | |
580080c5 RD |
2628 | #define SWIGTYPE_p_wxTGAHandler swig_types[162] |
2629 | #define SWIGTYPE_p_wxTIFFHandler swig_types[163] | |
2630 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[164] | |
2631 | #define SWIGTYPE_p_wxValidator swig_types[165] | |
2632 | #define SWIGTYPE_p_wxWindow swig_types[166] | |
2633 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[167] | |
2634 | #define SWIGTYPE_p_wxWindowDC swig_types[168] | |
2635 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[169] | |
2636 | #define SWIGTYPE_p_wxXPMHandler swig_types[170] | |
2637 | static swig_type_info *swig_types[172]; | |
2638 | static swig_module_info swig_module = {swig_types, 171, 0, 0, 0, 0}; | |
32fe5131 RD |
2639 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2640 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
d14a1e28 | 2641 | |
093d3ff1 | 2642 | /* -------- TYPES TABLE (END) -------- */ |
d14a1e28 | 2643 | |
0085ce49 RD |
2644 | #if (PY_VERSION_HEX <= 0x02000000) |
2645 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2646 | # error "This python version requires to use swig with the '-classic' option" | |
2647 | # endif | |
2648 | #endif | |
2649 | #if (PY_VERSION_HEX <= 0x02020000) | |
2650 | # error "This python version requires to use swig with the '-nomodern' option" | |
2651 | #endif | |
2652 | #if (PY_VERSION_HEX <= 0x02020000) | |
2653 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2654 | #endif | |
2655 | #ifndef METH_O | |
2656 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2657 | #endif | |
d14a1e28 | 2658 | |
093d3ff1 RD |
2659 | /*----------------------------------------------- |
2660 | @(target):= _gdi_.so | |
2661 | ------------------------------------------------*/ | |
2662 | #define SWIG_init init_gdi_ | |
d14a1e28 | 2663 | |
093d3ff1 | 2664 | #define SWIG_name "_gdi_" |
d14a1e28 | 2665 | |
0085ce49 | 2666 | #define SWIGVERSION 0x010329 |
d14a1e28 | 2667 | |
d14a1e28 | 2668 | |
0085ce49 RD |
2669 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) |
2670 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
d14a1e28 RD |
2671 | |
2672 | ||
0085ce49 RD |
2673 | #include <stdexcept> |
2674 | ||
2675 | ||
2676 | namespace swig { | |
2677 | class PyObject_ptr { | |
2678 | protected: | |
2679 | PyObject *_obj; | |
2680 | ||
2681 | public: | |
2682 | PyObject_ptr() :_obj(0) | |
2683 | { | |
093d3ff1 | 2684 | } |
0085ce49 RD |
2685 | |
2686 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) | |
2687 | { | |
2688 | Py_XINCREF(_obj); | |
093d3ff1 | 2689 | } |
0085ce49 RD |
2690 | |
2691 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2692 | { | |
2693 | if (initial_ref) Py_XINCREF(_obj); | |
2694 | } | |
2695 | ||
2696 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2697 | { | |
2698 | Py_XINCREF(item._obj); | |
2699 | Py_XDECREF(_obj); | |
2700 | _obj = item._obj; | |
2701 | return *this; | |
2702 | } | |
2703 | ||
2704 | ~PyObject_ptr() | |
2705 | { | |
2706 | Py_XDECREF(_obj); | |
2707 | } | |
2708 | ||
2709 | operator PyObject *() const | |
2710 | { | |
2711 | return _obj; | |
2712 | } | |
2713 | ||
2714 | PyObject *operator->() const | |
2715 | { | |
2716 | return _obj; | |
2717 | } | |
2718 | }; | |
093d3ff1 | 2719 | } |
d14a1e28 | 2720 | |
994141e6 | 2721 | |
0085ce49 RD |
2722 | namespace swig { |
2723 | struct PyObject_var : PyObject_ptr { | |
2724 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2725 | ||
2726 | PyObject_var & operator = (PyObject* obj) | |
2727 | { | |
2728 | Py_XDECREF(_obj); | |
2729 | _obj = obj; | |
2730 | return *this; | |
69223c70 | 2731 | } |
0085ce49 | 2732 | }; |
15afbcd0 RD |
2733 | } |
2734 | ||
2735 | ||
0085ce49 RD |
2736 | #include "wx/wxPython/wxPython.h" |
2737 | #include "wx/wxPython/pyclasses.h" | |
2738 | ||
2739 | ||
2740 | static const wxString wxPyEmptyString(wxEmptyString); | |
2741 | ||
01f6b6d3 RD |
2742 | #define SWIG_From_long PyInt_FromLong |
2743 | ||
2744 | ||
2745 | SWIGINTERNINLINE PyObject * | |
2746 | SWIG_From_int (int value) | |
2747 | { | |
2748 | return SWIG_From_long (value); | |
2749 | } | |
2750 | ||
2751 | ||
0085ce49 RD |
2752 | #include <limits.h> |
2753 | #ifndef LLONG_MIN | |
2754 | # define LLONG_MIN LONG_LONG_MIN | |
2755 | #endif | |
2756 | #ifndef LLONG_MAX | |
2757 | # define LLONG_MAX LONG_LONG_MAX | |
2758 | #endif | |
2759 | #ifndef ULLONG_MAX | |
2760 | # define ULLONG_MAX ULONG_LONG_MAX | |
2761 | #endif | |
b88bce5f | 2762 | |
b88bce5f | 2763 | |
50efceee RD |
2764 | SWIGINTERN int |
2765 | SWIG_AsVal_long (PyObject* obj, long* val) | |
2766 | { | |
2767 | if (PyNumber_Check(obj)) { | |
2768 | if (val) *val = PyInt_AsLong(obj); | |
2769 | return SWIG_OK; | |
2770 | } | |
2771 | return SWIG_TypeError; | |
2772 | } | |
2773 | ||
2774 | ||
093d3ff1 | 2775 | SWIGINTERN int |
0085ce49 | 2776 | SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val) |
093d3ff1 RD |
2777 | { |
2778 | long v = 0; | |
2779 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
0085ce49 | 2780 | return SWIG_TypeError; |
093d3ff1 RD |
2781 | } |
2782 | else if (val) | |
2783 | *val = (unsigned long)v; | |
0085ce49 | 2784 | return SWIG_OK; |
093d3ff1 | 2785 | } |
d14a1e28 RD |
2786 | |
2787 | ||
093d3ff1 | 2788 | SWIGINTERN int |
0085ce49 RD |
2789 | SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val) |
2790 | { | |
093d3ff1 | 2791 | unsigned long v; |
0085ce49 RD |
2792 | int res = SWIG_AsVal_unsigned_SS_long (obj, &v); |
2793 | if (SWIG_IsOK(res)) { | |
2794 | if ((v > UCHAR_MAX)) { | |
2795 | return SWIG_OverflowError; | |
093d3ff1 | 2796 | } else { |
0085ce49 | 2797 | if (val) *val = static_cast< unsigned char >(v); |
093d3ff1 | 2798 | } |
0085ce49 RD |
2799 | } |
2800 | return res; | |
093d3ff1 | 2801 | } |
33b885b9 | 2802 | |
d14a1e28 | 2803 | |
0085ce49 RD |
2804 | SWIGINTERNINLINE PyObject* |
2805 | SWIG_From_unsigned_SS_long (unsigned long value) | |
093d3ff1 | 2806 | { |
0085ce49 RD |
2807 | return (value > LONG_MAX) ? |
2808 | PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); | |
093d3ff1 | 2809 | } |
d14a1e28 | 2810 | |
d14a1e28 | 2811 | |
0085ce49 RD |
2812 | SWIGINTERNINLINE PyObject * |
2813 | SWIG_From_unsigned_SS_char (unsigned char value) | |
2814 | { | |
2815 | return SWIG_From_unsigned_SS_long (value); | |
2816 | } | |
d14a1e28 | 2817 | |
e9d6f3a4 RD |
2818 | SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){ |
2819 | wxColour temp, *obj = &temp; | |
2820 | if ( other == Py_None ) return false; | |
2821 | if ( ! wxColour_helper(other, &obj) ) { | |
2822 | PyErr_Clear(); | |
2823 | return false; | |
2824 | } | |
2825 | return self->operator==(*obj); | |
2826 | } | |
2827 | SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){ | |
2828 | wxColour temp, *obj = &temp; | |
2829 | if ( other == Py_None ) return true; | |
2830 | if ( ! wxColour_helper(other, &obj)) { | |
2831 | PyErr_Clear(); | |
2832 | return true; | |
2833 | } | |
2834 | return self->operator!=(*obj); | |
2835 | } | |
fc46b7f3 RD |
2836 | |
2837 | SWIGINTERN int | |
2838 | SWIG_AsVal_bool (PyObject *obj, bool *val) | |
2839 | { | |
2840 | if (obj == Py_True) { | |
2841 | if (val) *val = true; | |
2842 | return SWIG_OK; | |
2843 | } else if (obj == Py_False) { | |
2844 | if (val) *val = false; | |
2845 | return SWIG_OK; | |
2846 | } else { | |
2847 | long v = 0; | |
2848 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2849 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2850 | return res; | |
2851 | } | |
2852 | } | |
2853 | ||
2854 | SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){ | |
2855 | PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3); | |
093d3ff1 RD |
2856 | int red = -1; |
2857 | int green = -1; | |
2858 | int blue = -1; | |
fc46b7f3 | 2859 | int alpha = wxALPHA_OPAQUE; |
b39fe951 | 2860 | if (self->IsOk()) { |
093d3ff1 RD |
2861 | red = self->Red(); |
2862 | green = self->Green(); | |
2863 | blue = self->Blue(); | |
fc46b7f3 | 2864 | alpha = self->Alpha(); |
093d3ff1 RD |
2865 | } |
2866 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
2867 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
2868 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
fc46b7f3 RD |
2869 | if (includeAlpha) |
2870 | PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha)); | |
093d3ff1 RD |
2871 | return rv; |
2872 | } | |
0085ce49 | 2873 | SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){ |
093d3ff1 RD |
2874 | return self->Red() | (self->Green() << 8) | (self->Blue() << 16); |
2875 | } | |
d14a1e28 | 2876 | |
0085ce49 RD |
2877 | SWIGINTERN int |
2878 | SWIG_AsVal_int (PyObject * obj, int *val) | |
093d3ff1 | 2879 | { |
0085ce49 RD |
2880 | long v; |
2881 | int res = SWIG_AsVal_long (obj, &v); | |
2882 | if (SWIG_IsOK(res)) { | |
2883 | if ((v < INT_MIN || v > INT_MAX)) { | |
2884 | return SWIG_OverflowError; | |
2885 | } else { | |
2886 | if (val) *val = static_cast< int >(v); | |
2887 | } | |
2888 | } | |
2889 | return res; | |
d14a1e28 RD |
2890 | } |
2891 | ||
0085ce49 | 2892 | SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){ |
093d3ff1 RD |
2893 | wxDash* dashes; |
2894 | int count = self->GetDashes(&dashes); | |
5a446332 | 2895 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2896 | PyObject* retval = PyList_New(0); |
2897 | for (int x=0; x<count; x++) { | |
2898 | PyObject* pyint = PyInt_FromLong(dashes[x]); | |
2899 | PyList_Append(retval, pyint); | |
2900 | Py_DECREF(pyint); | |
2901 | } | |
2902 | wxPyEndBlockThreads(blocked); | |
2903 | return retval; | |
2904 | } | |
0085ce49 | 2905 | SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){ |
5a446332 | 2906 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2907 | int size = PyList_Size(pyDashes); |
2908 | wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes); | |
d14a1e28 | 2909 | |
093d3ff1 RD |
2910 | // black magic warning! The array of wxDashes needs to exist as |
2911 | // long as the pen does because wxPen does not copy the array. So | |
2912 | // stick a copy in a Python string object and attach it to _self, | |
2913 | // and then call SetDashes with a pointer to that array. Then | |
2914 | // when the Python pen object is destroyed the array will be | |
2915 | // cleaned up too. | |
2916 | PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash)); | |
2917 | PyObject_SetAttrString(_self, "_dashes", strDashes); | |
2918 | ||
2919 | self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes)); | |
2920 | delete [] dashes; | |
2921 | Py_DECREF(strDashes); | |
2922 | wxPyEndBlockThreads(blocked); | |
2923 | } | |
0085ce49 RD |
2924 | SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; } |
2925 | SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; } | |
d14a1e28 | 2926 | |
fc46b7f3 RD |
2927 | #include <wx/rawbmp.h> |
2928 | ||
2929 | ||
8f514ab4 RD |
2930 | // See http://tinyurl.com/e5adr for what premultiplying alpha means. It |
2931 | // appears to me that the other platforms are already doing it, so I'll just | |
2932 | // automatically do it for wxMSW here. | |
2933 | #ifdef __WXMSW__ | |
2934 | #define wxPy_premultiply(p, a) ((p) * (a) / 0xff) | |
2935 | #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p)) | |
2936 | #else | |
2937 | #define wxPy_premultiply(p, a) (p) | |
2938 | #define wxPy_unpremultiply(p, a) (p) | |
2939 | #endif | |
2940 | ||
2941 | ||
093d3ff1 | 2942 | #include <wx/image.h> |
b88bce5f | 2943 | |
093d3ff1 RD |
2944 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
2945 | char** cArray = NULL; | |
2946 | int count; | |
2947 | ||
2948 | if (!PyList_Check(listOfStrings)) { | |
2949 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
2950 | return NULL; | |
2951 | } | |
2952 | count = PyList_Size(listOfStrings); | |
2953 | cArray = new char*[count]; | |
2954 | ||
2955 | for(int x=0; x<count; x++) { | |
2956 | // TODO: Need some validation and error checking here | |
2957 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
2958 | } | |
2959 | return cArray; | |
b88bce5f | 2960 | } |
b88bce5f RD |
2961 | |
2962 | ||
0085ce49 | 2963 | SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){ |
fc46b7f3 RD |
2964 | char** cArray = NULL; |
2965 | wxBitmap* bmp; | |
2966 | ||
2967 | cArray = ConvertListOfStrings(listOfStrings); | |
2968 | if (! cArray) | |
2969 | return NULL; | |
2970 | bmp = new wxBitmap(cArray); | |
2971 | delete [] cArray; | |
2972 | return bmp; | |
2973 | } | |
0085ce49 | 2974 | SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){ |
fc46b7f3 RD |
2975 | char* buf; |
2976 | Py_ssize_t length; | |
2977 | PyString_AsStringAndSize(bits, &buf, &length); | |
2978 | return new wxBitmap(buf, width, height, depth); | |
2979 | } | |
0085ce49 | 2980 | SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){ |
093d3ff1 RD |
2981 | wxSize size(self->GetWidth(), self->GetHeight()); |
2982 | return size; | |
2983 | } | |
0085ce49 | 2984 | SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ |
093d3ff1 RD |
2985 | wxMask *mask = new wxMask(*self, colour); |
2986 | self->SetMask(mask); | |
2987 | } | |
0085ce49 | 2988 | SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){ |
093d3ff1 RD |
2989 | self->SetWidth(size.x); |
2990 | self->SetHeight(size.y); | |
2991 | } | |
8f514ab4 RD |
2992 | SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){ |
2993 | int height=self->GetHeight(); | |
2994 | int width=self->GetWidth(); | |
fc46b7f3 | 2995 | |
8f514ab4 RD |
2996 | if (DATASIZE != width * height * 3) { |
2997 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
2998 | } | |
2999 | wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height)); | |
3000 | if (! pixData) { | |
3001 | // raise an exception... | |
3002 | wxPyErr_SetString(PyExc_RuntimeError, | |
3003 | "Failed to gain raw access to bitmap data."); | |
3004 | return; | |
3005 | } | |
fc46b7f3 | 3006 | |
8f514ab4 RD |
3007 | wxNativePixelData::Iterator p(pixData); |
3008 | for (int y=0; y<height; y++) { | |
3009 | wxNativePixelData::Iterator rowStart = p; | |
3010 | for (int x=0; x<width; x++) { | |
3011 | p.Red() = *(data++); | |
3012 | p.Green() = *(data++); | |
3013 | p.Blue() = *(data++); | |
3014 | ++p; | |
3015 | } | |
3016 | p = rowStart; | |
3017 | p.OffsetY(pixData, 1); | |
3018 | } | |
3019 | } | |
3020 | SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){ | |
3021 | int height=self->GetHeight(); | |
3022 | int width=self->GetWidth(); | |
3023 | ||
3024 | if (DATASIZE != width * height * 4) { | |
3025 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3026 | } | |
3027 | wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height)); | |
3028 | if (! pixData) { | |
3029 | // raise an exception... | |
3030 | wxPyErr_SetString(PyExc_RuntimeError, | |
3031 | "Failed to gain raw access to bitmap data."); | |
3032 | return; | |
3033 | } | |
3034 | ||
3035 | pixData.UseAlpha(); | |
3036 | wxAlphaPixelData::Iterator p(pixData); | |
3037 | for (int y=0; y<height; y++) { | |
3038 | wxAlphaPixelData::Iterator rowStart = p; | |
3039 | for (int x=0; x<width; x++) { | |
3040 | byte a = data[3]; | |
3041 | p.Red() = wxPy_premultiply(*(data++), a); | |
3042 | p.Green() = wxPy_premultiply(*(data++), a); | |
3043 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3044 | p.Alpha() = a; data++; | |
3045 | ++p; | |
3046 | } | |
3047 | p = rowStart; | |
3048 | p.OffsetY(pixData, 1); | |
3049 | } | |
3050 | } | |
3051 | SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; } | |
3052 | SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; } | |
fc46b7f3 RD |
3053 | |
3054 | wxBitmap* _BitmapFromBufferAlpha(int width, int height, | |
3055 | buffer data, int DATASIZE, | |
3056 | buffer alpha, int ALPHASIZE) | |
3057 | { | |
3058 | if (DATASIZE != width*height*3) { | |
3059 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3060 | return NULL; | |
3061 | } | |
3062 | ||
3063 | if (ALPHASIZE != width*height) { | |
3064 | wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size."); | |
3065 | return NULL; | |
3066 | } | |
3067 | ||
3068 | wxBitmap* bmp = new wxBitmap(width, height, 32); | |
3069 | wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3070 | if (! pixData) { | |
3071 | // raise an exception... | |
3072 | wxPyErr_SetString(PyExc_RuntimeError, | |
3073 | "Failed to gain raw access to bitmap data."); | |
3074 | return NULL; | |
3075 | } | |
3076 | ||
3077 | pixData.UseAlpha(); | |
3078 | wxAlphaPixelData::Iterator p(pixData); | |
3079 | for (int y=0; y<height; y++) { | |
3080 | wxAlphaPixelData::Iterator rowStart = p; | |
3081 | for (int x=0; x<width; x++) { | |
3082 | byte a = *(alpha++); | |
3083 | p.Red() = wxPy_premultiply(*(data++), a); | |
3084 | p.Green() = wxPy_premultiply(*(data++), a); | |
3085 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3086 | p.Alpha() = a; | |
3087 | ++p; | |
3088 | } | |
3089 | p = rowStart; | |
3090 | p.OffsetY(pixData, 1); | |
3091 | } | |
3092 | return bmp; | |
3093 | } | |
3094 | ||
3095 | wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE) | |
3096 | { | |
3097 | if (DATASIZE != width*height*3) { | |
3098 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3099 | return NULL; | |
3100 | } | |
3101 | ||
3102 | wxBitmap* bmp = new wxBitmap(width, height, 24); | |
3103 | wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3104 | if (! pixData) { | |
3105 | // raise an exception... | |
3106 | wxPyErr_SetString(PyExc_RuntimeError, | |
3107 | "Failed to gain raw access to bitmap data."); | |
3108 | return NULL; | |
3109 | } | |
3110 | ||
3111 | wxNativePixelData::Iterator p(pixData); | |
3112 | for (int y=0; y<height; y++) { | |
3113 | wxNativePixelData::Iterator rowStart = p; | |
3114 | for (int x=0; x<width; x++) { | |
3115 | p.Red() = *(data++); | |
3116 | p.Green() = *(data++); | |
3117 | p.Blue() = *(data++); | |
3118 | ++p; | |
3119 | } | |
3120 | p = rowStart; | |
3121 | p.OffsetY(pixData, 1); | |
3122 | } | |
3123 | return bmp; | |
3124 | } | |
3125 | ||
3126 | ||
3127 | wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE) | |
3128 | { | |
3129 | if (DATASIZE != width*height*4) { | |
3130 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3131 | return NULL; | |
3132 | } | |
3133 | ||
3134 | wxBitmap* bmp = new wxBitmap(width, height, 32); | |
3135 | wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3136 | if (! pixData) { | |
3137 | // raise an exception... | |
3138 | wxPyErr_SetString(PyExc_RuntimeError, | |
3139 | "Failed to gain raw access to bitmap data."); | |
3140 | return NULL; | |
3141 | } | |
3142 | ||
3143 | pixData.UseAlpha(); | |
3144 | wxAlphaPixelData::Iterator p(pixData); | |
3145 | for (int y=0; y<height; y++) { | |
3146 | wxAlphaPixelData::Iterator rowStart = p; | |
3147 | for (int x=0; x<width; x++) { | |
3148 | byte a = data[3]; | |
3149 | p.Red() = wxPy_premultiply(*(data++), a); | |
3150 | p.Green() = wxPy_premultiply(*(data++), a); | |
3151 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3152 | p.Alpha() = a; data++; | |
3153 | ++p; | |
3154 | } | |
3155 | p = rowStart; | |
3156 | p.OffsetY(pixData, 1); | |
3157 | } | |
3158 | return bmp; | |
3159 | } | |
3160 | ||
3161 | ||
3162 | typedef wxNativePixelData::Iterator wxNativePixelData_Accessor; | |
3163 | ||
3164 | SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); } | |
3165 | SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); } | |
3166 | SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){ | |
3167 | self->Red() = red; | |
3168 | self->Green() = green; | |
3169 | self->Blue() = blue; | |
3170 | } | |
3171 | SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){ | |
3172 | PyObject* rv = PyTuple_New(3); | |
3173 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
3174 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
3175 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
3176 | return rv; | |
3177 | } | |
3178 | ||
3179 | typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor; | |
3180 | ||
3181 | SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); } | |
3182 | SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); } | |
3183 | SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){ | |
3184 | self->Red() = wxPy_premultiply(red, alpha); | |
3185 | self->Green() = wxPy_premultiply(green, alpha); | |
3186 | self->Blue() = wxPy_premultiply(blue, alpha); | |
3187 | self->Alpha() = alpha; | |
3188 | } | |
3189 | SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){ | |
3190 | PyObject* rv = PyTuple_New(4); | |
3191 | int red = self->Red(); | |
3192 | int green = self->Green(); | |
3193 | int blue = self->Blue(); | |
3194 | int alpha = self->Alpha(); | |
3195 | ||
3196 | PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) )); | |
3197 | PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) )); | |
3198 | PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) )); | |
3199 | PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha )); | |
3200 | return rv; | |
3201 | } | |
0085ce49 | 3202 | SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){ |
b39fe951 | 3203 | if ( !colour.IsOk() ) |
093d3ff1 RD |
3204 | return new wxMask(bitmap, *wxBLACK); |
3205 | else | |
3206 | return new wxMask(bitmap, colour); | |
3207 | } | |
d14a1e28 | 3208 | |
093d3ff1 | 3209 | #include <wx/iconbndl.h> |
d14a1e28 | 3210 | |
0085ce49 | 3211 | SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){ |
093d3ff1 RD |
3212 | wxIcon* icon = new wxIcon(); |
3213 | icon->CopyFromBitmap(bmp); | |
3214 | return icon; | |
3215 | } | |
0085ce49 | 3216 | SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){ |
093d3ff1 RD |
3217 | char** cArray = NULL; |
3218 | wxIcon* icon; | |
d14a1e28 | 3219 | |
093d3ff1 RD |
3220 | cArray = ConvertListOfStrings(listOfStrings); |
3221 | if (! cArray) | |
3222 | return NULL; | |
3223 | icon = new wxIcon(cArray); | |
3224 | delete [] cArray; | |
3225 | return icon; | |
3226 | } | |
0085ce49 | 3227 | SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){ |
d14a1e28 RD |
3228 | |
3229 | ||
d14a1e28 | 3230 | |
093d3ff1 | 3231 | return new wxIconLocation(*filename); |
d14a1e28 | 3232 | |
093d3ff1 | 3233 | } |
0085ce49 | 3234 | SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){ |
d14a1e28 RD |
3235 | |
3236 | ||
d14a1e28 | 3237 | |
093d3ff1 | 3238 | // do nothing |
d14a1e28 | 3239 | |
093d3ff1 | 3240 | } |
0085ce49 | 3241 | SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){ |
b88bce5f RD |
3242 | |
3243 | ||
093d3ff1 RD |
3244 | |
3245 | return -1; | |
3246 | ||
3247 | } | |
0085ce49 | 3248 | SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){ |
093d3ff1 | 3249 | #ifdef __WXGTK__ |
7557b9b5 RD |
3250 | wxImage img(cursorName, type); |
3251 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX); | |
3252 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY); | |
3253 | return new wxCursor(img); | |
093d3ff1 | 3254 | #else |
7557b9b5 | 3255 | return new wxCursor(cursorName, type, hotSpotX, hotSpotY); |
093d3ff1 RD |
3256 | #endif |
3257 | } | |
3258 | ||
3259 | ||
0085ce49 | 3260 | SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){ |
093d3ff1 RD |
3261 | (*self) ++; |
3262 | } | |
0085ce49 | 3263 | SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){ |
093d3ff1 RD |
3264 | return self->operator bool(); |
3265 | } | |
3266 | ||
3267 | #include <wx/fontutil.h> | |
3268 | #include <wx/fontmap.h> | |
3269 | #include <wx/fontenum.h> | |
3270 | ||
0085ce49 | 3271 | SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ |
093d3ff1 RD |
3272 | return self->ToString(); |
3273 | } | |
3274 | ||
3275 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) { | |
3276 | static wxNativeEncodingInfo info; | |
3277 | if ( wxGetNativeFontEncoding(encoding, &info) ) | |
3278 | return &info; | |
3279 | else | |
3280 | return NULL; | |
3281 | } | |
3282 | ||
0085ce49 RD |
3283 | |
3284 | SWIGINTERNINLINE PyObject * | |
3285 | SWIG_From_size_t (size_t value) | |
3286 | { | |
3287 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); | |
3288 | } | |
3289 | ||
3290 | ||
3291 | SWIGINTERNINLINE int | |
3292 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) | |
3293 | { | |
3294 | unsigned long v; | |
3295 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); | |
3296 | if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); | |
3297 | return res; | |
3298 | } | |
3299 | ||
3300 | SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){ | |
093d3ff1 RD |
3301 | wxFontEncoding alt_enc; |
3302 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
3303 | return PyInt_FromLong(alt_enc); | |
3304 | else { | |
3305 | Py_INCREF(Py_None); | |
3306 | return Py_None; | |
3307 | } | |
3308 | } | |
0085ce49 | 3309 | SWIGINTERN wxFont *new_wxFont(wxString const &info){ |
a97cefba RD |
3310 | wxNativeFontInfo nfi; |
3311 | nfi.FromString(info); | |
3312 | return new wxFont(nfi); | |
3313 | } | |
0085ce49 | 3314 | SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3315 | return wxFont::New(pointSize, family, flags, face, encoding); |
3316 | } | |
0085ce49 | 3317 | 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 |
3318 | return wxFontBase::New(pixelSize, family, |
3319 | style, weight, underlined, | |
3320 | face, encoding); | |
3321 | } | |
0085ce49 | 3322 | SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3323 | return wxFontBase::New(pixelSize, family, flags, face, encoding); |
3324 | } | |
0085ce49 RD |
3325 | SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; } |
3326 | SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; } | |
093d3ff1 RD |
3327 | |
3328 | class wxPyFontEnumerator : public wxFontEnumerator { | |
3329 | public: | |
3330 | wxPyFontEnumerator() {} | |
3331 | ~wxPyFontEnumerator() {} | |
3332 | ||
3333 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
3334 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
3335 | ||
3336 | PYPRIVATE; | |
3337 | }; | |
3338 | ||
3339 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
3340 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
3341 | ||
3342 | ||
704eda0c | 3343 | SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){ |
e9d6f3a4 | 3344 | PyObject* ret; |
704eda0c | 3345 | wxArrayString arr = wxFontEnumerator::GetEncodings(); |
e9d6f3a4 | 3346 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
704eda0c | 3347 | ret = wxArrayString2PyList_helper(arr); |
e9d6f3a4 RD |
3348 | wxPyEndBlockThreads(blocked); |
3349 | return ret; | |
093d3ff1 | 3350 | } |
704eda0c | 3351 | SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){ |
e9d6f3a4 | 3352 | PyObject* ret; |
704eda0c | 3353 | wxArrayString arr = wxFontEnumerator::GetFacenames(); |
e9d6f3a4 | 3354 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
704eda0c | 3355 | ret = wxArrayString2PyList_helper(arr); |
e9d6f3a4 RD |
3356 | wxPyEndBlockThreads(blocked); |
3357 | return ret; | |
093d3ff1 RD |
3358 | } |
3359 | ||
3360 | #include <locale.h> | |
3361 | ||
0085ce49 | 3362 | SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
093d3ff1 RD |
3363 | wxLocale* loc; |
3364 | if (language == -1) | |
3365 | loc = new wxLocale(); | |
3366 | else | |
3367 | loc = new wxLocale(language, flags); | |
3368 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3369 | // for the floating point conversions and such to work right. | |
3370 | #if PY_VERSION_HEX < 0x02040000 | |
3371 | setlocale(LC_NUMERIC, "C"); | |
3372 | #endif | |
3373 | return loc; | |
3374 | } | |
0085ce49 | 3375 | 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 |
3376 | bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding); |
3377 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3378 | // for the floating point conversions and such to work right. | |
3379 | #if PY_VERSION_HEX < 0x02040000 | |
3380 | setlocale(LC_NUMERIC, "C"); | |
3381 | #endif | |
3382 | return rc; | |
3383 | } | |
0085ce49 | 3384 | SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
093d3ff1 RD |
3385 | bool rc = self->Init(language, flags); |
3386 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3387 | // for the floating point conversions and such to work right. | |
3388 | #if PY_VERSION_HEX < 0x02040000 | |
3389 | setlocale(LC_NUMERIC, "C"); | |
3390 | #endif | |
3391 | return rc; | |
3392 | } | |
3393 | ||
fc46b7f3 RD |
3394 | class wxPyLocale : public wxLocale |
3395 | { | |
3396 | public: | |
3397 | wxPyLocale(); | |
3398 | ||
3399 | wxPyLocale(const wxChar *szName, // name (for messages) | |
3400 | const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files) | |
3401 | const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale) | |
3402 | bool bLoadDefault = true, // preload wxstd.mo? | |
3403 | bool bConvertEncoding = false); // convert Win<->Unix if necessary? | |
3404 | ||
3405 | wxPyLocale(int language, // wxLanguage id or custom language | |
3406 | int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING); | |
3407 | ||
3408 | ~wxPyLocale(); | |
3409 | ||
3410 | virtual const wxChar *GetString(const wxChar *szOrigString, | |
3411 | const wxChar *szDomain = NULL) const; | |
3412 | virtual const wxChar *GetString(const wxChar *szOrigString, | |
3413 | const wxChar *szOrigString2, size_t n, | |
3414 | const wxChar *szDomain = NULL) const; | |
3415 | ||
3416 | virtual wxChar *GetSingularString(const wxChar *szOrigString, | |
3417 | const wxChar *szDomain = NULL) const; | |
3418 | virtual wxChar *GetPluralString(const wxChar *szOrigString, | |
3419 | const wxChar *szOrigString2, size_t n, | |
3420 | const wxChar *szDomain = NULL) const; | |
3421 | ||
3422 | PYPRIVATE; | |
3423 | private: | |
3424 | DECLARE_NO_COPY_CLASS(wxPyLocale) | |
3425 | }; | |
3426 | ||
3427 | wxPyLocale::wxPyLocale() : wxLocale() | |
3428 | { | |
3429 | } | |
3430 | ||
3431 | wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages) | |
3432 | const wxChar *szShort, // dir prefix (for msg files) | |
3433 | const wxChar *szLocale, // locale (for setlocale) | |
3434 | bool bLoadDefault, // preload wxstd.mo? | |
3435 | bool bConvertEncoding) // convert Win<->Unix if necessary? | |
3436 | : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding) | |
3437 | { | |
3438 | } | |
3439 | ||
3440 | wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language | |
3441 | int flags) : wxLocale(language, flags) | |
3442 | { | |
3443 | } | |
3444 | ||
3445 | wxPyLocale::~wxPyLocale() | |
3446 | { | |
3447 | } | |
3448 | ||
3449 | const wxChar *wxPyLocale::GetString(const wxChar *szOrigString, | |
3450 | const wxChar *szDomain) const | |
3451 | { | |
3452 | wxChar *str = GetSingularString(szOrigString, szDomain); | |
3453 | return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain); | |
3454 | } | |
3455 | ||
3456 | const wxChar *wxPyLocale::GetString(const wxChar *szOrigString, | |
3457 | const wxChar *szOrigString2, size_t n, | |
3458 | const wxChar *szDomain) const | |
3459 | { | |
3460 | wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain); | |
3461 | return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain); | |
3462 | } | |
3463 | ||
3464 | wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString, | |
3465 | const wxChar *szDomain) const | |
3466 | { | |
3467 | bool found; | |
3468 | static wxString str; | |
3469 | 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. | |
3470 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3471 | if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) { | |
3472 | PyObject* param1 = wx2PyString(szOrigString); | |
3473 | PyObject* param2 = wx2PyString(szDomain); | |
3474 | PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2)); | |
3475 | Py_DECREF(param1); | |
3476 | Py_DECREF(param2); | |
3477 | if (ret) { | |
3478 | str = Py2wxString(ret); | |
3479 | Py_DECREF(ret); | |
3480 | } | |
3481 | } | |
3482 | wxPyEndBlockThreads(blocked); | |
3483 | return (found ? (wxChar*)str.c_str() : NULL); | |
3484 | } | |
3485 | ||
3486 | wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString, | |
3487 | const wxChar *szOrigString2, size_t n, | |
3488 | const wxChar *szDomain) const | |
3489 | { | |
3490 | bool found; | |
3491 | static wxString str; | |
3492 | 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. | |
3493 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3494 | if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) { | |
3495 | PyObject* param1 = wx2PyString(szOrigString); | |
3496 | PyObject* param2 = wx2PyString(szOrigString2); | |
3497 | PyObject* param4 = wx2PyString(szDomain); | |
3498 | PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4)); | |
3499 | Py_DECREF(param1); | |
3500 | Py_DECREF(param2); | |
3501 | Py_DECREF(param4); | |
3502 | if( ret) { | |
3503 | str = Py2wxString(ret); | |
3504 | Py_DECREF(ret); | |
3505 | } | |
3506 | } | |
3507 | wxPyEndBlockThreads(blocked); | |
3508 | return (found ? (wxChar*)str.c_str() : NULL); | |
3509 | } | |
3510 | ||
3511 | SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ | |
3512 | wxPyLocale* loc; | |
3513 | if (language == -1) | |
3514 | loc = new wxPyLocale(); | |
3515 | else | |
3516 | loc = new wxPyLocale(language, flags); | |
3517 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3518 | // for the floating point conversions and such to work right. | |
3519 | #if PY_VERSION_HEX < 0x02040000 | |
3520 | setlocale(LC_NUMERIC, "C"); | |
3521 | #endif | |
3522 | return loc; | |
3523 | } | |
3524 | ||
093d3ff1 RD |
3525 | #include "wx/wxPython/pydrawxxx.h" |
3526 | ||
0085ce49 | 3527 | SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){ |
093d3ff1 RD |
3528 | wxColour col; |
3529 | self->GetPixel(x, y, &col); | |
3530 | return col; | |
3531 | } | |
0085ce49 | 3532 | SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ |
093d3ff1 RD |
3533 | wxColour col; |
3534 | self->GetPixel(pt, &col); | |
3535 | return col; | |
3536 | } | |
3537 | ||
3538 | SWIGINTERN int | |
0085ce49 | 3539 | SWIG_AsVal_double (PyObject *obj, double* val) |
093d3ff1 RD |
3540 | { |
3541 | if (PyNumber_Check(obj)) { | |
3542 | if (val) *val = PyFloat_AsDouble(obj); | |
0085ce49 | 3543 | return SWIG_OK; |
093d3ff1 | 3544 | } |
0085ce49 | 3545 | return SWIG_TypeError; |
093d3ff1 RD |
3546 | } |
3547 | ||
0085ce49 | 3548 | 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 |
3549 | wxRect rv; |
3550 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
3551 | return rv; | |
3552 | } | |
0085ce49 | 3553 | SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){ |
093d3ff1 RD |
3554 | wxRect rect; |
3555 | self->GetClippingBox(rect); | |
3556 | return rect; | |
3557 | } | |
0085ce49 | 3558 | SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ |
093d3ff1 RD |
3559 | wxArrayInt widths; |
3560 | self->GetPartialTextExtents(text, widths); | |
3561 | return widths; | |
3562 | } | |
3563 | ||
0085ce49 | 3564 | #define SWIG_From_double PyFloat_FromDouble |
093d3ff1 | 3565 | |
0085ce49 | 3566 | SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3567 | self->SetLogicalOrigin(point.x, point.y); |
3568 | } | |
0085ce49 | 3569 | SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3570 | self->SetDeviceOrigin(point.x, point.y); |
3571 | } | |
0085ce49 | 3572 | SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3573 | self->CalcBoundingBox(point.x, point.y); |
3574 | } | |
0085ce49 | 3575 | SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3576 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); |
3577 | } | |
0085ce49 | 3578 | SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3579 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); |
3580 | } | |
0085ce49 | 3581 | SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3582 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); |
3583 | } | |
0085ce49 | 3584 | SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3585 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); |
3586 | } | |
0085ce49 | 3587 | SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3588 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); |
3589 | } | |
0085ce49 | 3590 | SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ |
093d3ff1 RD |
3591 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); |
3592 | } | |
3593 | ||
3594 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
3595 | *x1 = dc->MinX(); | |
3596 | *y1 = dc->MinY(); | |
3597 | *x2 = dc->MaxX(); | |
3598 | *y2 = dc->MaxY(); | |
3599 | } | |
3600 | ||
3601 | ||
3602 | #include <wx/dcbuffer.h> | |
3603 | ||
3604 | ||
3605 | #include <wx/dcps.h> | |
3606 | ||
3607 | ||
3608 | class wxMetaFile : public wxObject { | |
3609 | public: | |
3610 | wxMetaFile(const wxString&) | |
3611 | { wxPyRaiseNotImplemented(); } | |
3612 | }; | |
3613 | ||
3614 | class wxMetaFileDC : public wxClientDC { | |
3615 | public: | |
3616 | wxMetaFileDC(const wxString&, int, int, const wxString&) | |
3617 | { wxPyRaiseNotImplemented(); } | |
3618 | }; | |
3619 | ||
3620 | ||
3621 | ||
3622 | class wxPrinterDC : public wxClientDC { | |
3623 | public: | |
3624 | wxPrinterDC(const wxPrintData&) | |
3625 | { wxPyRaiseNotImplemented(); } | |
3626 | ||
3627 | }; | |
3628 | ||
3629 | ||
72ef6efb RD |
3630 | #include <wx/graphics.h> |
3631 | ||
3632 | ||
3633 | #if !wxUSE_GRAPHICS_CONTEXT | |
70d7cb34 RD |
3634 | // C++ stub classes for platforms or build configurations that don't have |
3635 | // wxGraphicsContext yet. | |
72ef6efb | 3636 | |
8bd35413 RD |
3637 | class wxGraphicsRenderer; |
3638 | class wxGraphicsMatrix; | |
3639 | ||
70d7cb34 RD |
3640 | |
3641 | class wxGraphicsObject : public wxObject | |
72ef6efb RD |
3642 | { |
3643 | public : | |
8bd35413 | 3644 | wxGraphicsObject() {} |
70d7cb34 | 3645 | wxGraphicsObject( wxGraphicsRenderer* ) { |
72ef6efb | 3646 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 RD |
3647 | "wx.GraphicsObject is not available on this platform."); |
3648 | } | |
3649 | wxGraphicsObject( const wxGraphicsObject& ) {} | |
3650 | virtual ~wxGraphicsObject() {} | |
3651 | bool IsNull() const { return false; } | |
3652 | wxGraphicsRenderer* GetRenderer() const { return NULL; } | |
3653 | } ; | |
3654 | ||
3655 | ||
3656 | ||
3657 | class wxGraphicsPen : public wxGraphicsObject | |
3658 | { | |
8bd35413 | 3659 | public: |
70d7cb34 RD |
3660 | wxGraphicsPen() {} |
3661 | virtual ~wxGraphicsPen() {} | |
3662 | } ; | |
3663 | wxGraphicsPen wxNullGraphicsPen; | |
3664 | ||
3665 | ||
3666 | ||
3667 | class wxGraphicsBrush : public wxGraphicsObject | |
3668 | { | |
3669 | public : | |
3670 | wxGraphicsBrush() {} | |
3671 | virtual ~wxGraphicsBrush() {} | |
3672 | } ; | |
3673 | wxGraphicsBrush wxNullGraphicsBrush; | |
3674 | ||
3675 | ||
3676 | ||
3677 | class wxGraphicsFont : public wxGraphicsObject | |
3678 | { | |
3679 | public : | |
3680 | wxGraphicsFont() {} | |
3681 | virtual ~wxGraphicsFont() {} | |
3682 | } ; | |
3683 | wxGraphicsFont wxNullGraphicsFont; | |
3684 | ||
3685 | ||
3686 | ||
3687 | class wxGraphicsPath : public wxGraphicsObject | |
3688 | { | |
3689 | public : | |
8bd35413 | 3690 | wxGraphicsPath() { } |
70d7cb34 RD |
3691 | wxGraphicsPath(wxGraphicsRenderer* ) { |
3692 | PyErr_SetString(PyExc_NotImplementedError, | |
3693 | "wx.GraphicsPath is not available on this platform."); | |
72ef6efb RD |
3694 | } |
3695 | virtual ~wxGraphicsPath() {} | |
70d7cb34 | 3696 | |
72ef6efb | 3697 | void MoveToPoint( wxDouble, wxDouble ) {} |
70d7cb34 RD |
3698 | void MoveToPoint( const wxPoint2DDouble& ) {} |
3699 | void AddLineToPoint( wxDouble, wxDouble ) {} | |
3700 | void AddLineToPoint( const wxPoint2DDouble& ) {} | |
72ef6efb | 3701 | void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {} |
70d7cb34 | 3702 | void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {} |
8bd35413 | 3703 | void AddPath( const wxGraphicsPath& ) {} |
72ef6efb | 3704 | void CloseSubpath() {} |
8bd35413 RD |
3705 | void GetCurrentPoint( wxDouble&, wxDouble&) const {} |
3706 | wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); } | |
72ef6efb | 3707 | void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {} |
70d7cb34 | 3708 | void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {} |
72ef6efb RD |
3709 | |
3710 | void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {} | |
3711 | void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {} | |
3712 | void AddCircle( wxDouble, wxDouble, wxDouble ) {} | |
3713 | void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {} | |
3714 | ||
70d7cb34 RD |
3715 | void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {} |
3716 | void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3717 | void * GetNativePath() const { return NULL; } | |
8bd35413 RD |
3718 | void UnGetNativePath(void *) const {} |
3719 | void Transform( const wxGraphicsMatrix& ) {} | |
3720 | void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {} | |
3721 | wxRect2D GetBox() const { return wxRect2D(0,0,0,0); } | |
70d7cb34 | 3722 | |
8bd35413 RD |
3723 | bool Contains( wxDouble , wxDouble , int ) const { return false; } |
3724 | bool Contains( const wxPoint2DDouble& , int ) const { return false; } | |
70d7cb34 | 3725 | }; |
5c8c7dd3 | 3726 | wxGraphicsPath wxNullGraphicsPath; |
70d7cb34 RD |
3727 | |
3728 | ||
3729 | class wxGraphicsMatrix : public wxGraphicsObject | |
3730 | { | |
3731 | public : | |
8bd35413 | 3732 | wxGraphicsMatrix() { } |
70d7cb34 RD |
3733 | wxGraphicsMatrix(wxGraphicsRenderer* ) { |
3734 | PyErr_SetString(PyExc_NotImplementedError, | |
3735 | "wx.GraphicsMatrix is not available on this platform."); | |
3736 | } | |
3737 | virtual ~wxGraphicsMatrix() {} | |
8bd35413 RD |
3738 | virtual void Concat( const wxGraphicsMatrix & ) {} |
3739 | virtual void Copy( const wxGraphicsMatrix & ) {} | |
70d7cb34 RD |
3740 | virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble , |
3741 | wxDouble , wxDouble ) {} | |
3742 | virtual void Invert() {} | |
8bd35413 RD |
3743 | virtual bool IsEqual( const wxGraphicsMatrix& t) const { return false; } |
3744 | virtual bool IsIdentity() const { return false; } | |
70d7cb34 RD |
3745 | virtual void Translate( wxDouble , wxDouble ) {} |
3746 | virtual void Scale( wxDouble , wxDouble ) {} | |
3747 | virtual void Rotate( wxDouble ) {} | |
8bd35413 RD |
3748 | virtual void TransformPoint( wxDouble *, wxDouble * ) const {} |
3749 | virtual void TransformDistance( wxDouble *, wxDouble * ) const {} | |
70d7cb34 | 3750 | virtual void * GetNativeMatrix() const { return NULL; } |
72ef6efb | 3751 | }; |
5c8c7dd3 | 3752 | wxGraphicsMatrix wxNullGraphicsMatrix; |
72ef6efb | 3753 | |
70d7cb34 RD |
3754 | |
3755 | class wxGraphicsContext : public wxGraphicsObject | |
72ef6efb RD |
3756 | { |
3757 | public: | |
70d7cb34 RD |
3758 | |
3759 | wxGraphicsContext(wxGraphicsRenderer* ) { | |
72ef6efb | 3760 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 | 3761 | "wx.GraphicsContext is not available on this platform."); |
72ef6efb | 3762 | } |
70d7cb34 | 3763 | |
72ef6efb | 3764 | virtual ~wxGraphicsContext() {} |
70d7cb34 | 3765 | |
8bd35413 RD |
3766 | static wxGraphicsContext* Create() { |
3767 | PyErr_SetString(PyExc_NotImplementedError, | |
3768 | "wx.GraphicsContext is not available on this platform."); | |
3769 | return NULL; | |
3770 | } | |
70d7cb34 | 3771 | static wxGraphicsContext* Create( const wxWindowDC& ) { |
72ef6efb | 3772 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 | 3773 | "wx.GraphicsContext is not available on this platform."); |
8bd35413 | 3774 | return NULL; |
72ef6efb | 3775 | } |
b876c1e4 | 3776 | |
70d7cb34 | 3777 | static wxGraphicsContext* CreateFromNative( void * ) { |
b876c1e4 | 3778 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 | 3779 | "wx.GraphicsContext is not available on this platform."); |
8bd35413 | 3780 | return NULL; |
70d7cb34 | 3781 | } |
b876c1e4 | 3782 | |
70d7cb34 RD |
3783 | static wxGraphicsContext* CreateFromNativeWindow( void * ) { |
3784 | PyErr_SetString(PyExc_NotImplementedError, | |
3785 | "wx.GraphicsContext is not available on this platform."); | |
8bd35413 | 3786 | return NULL; |
70d7cb34 RD |
3787 | } |
3788 | ||
3789 | static wxGraphicsContext* Create( wxWindow* ) { | |
3790 | PyErr_SetString(PyExc_NotImplementedError, | |
3791 | "wx.GraphicsContext is not available on this platform."); | |
8bd35413 | 3792 | return NULL; |
70d7cb34 RD |
3793 | } |
3794 | ||
8bd35413 | 3795 | wxGraphicsPath CreatePath() { return wxNullGraphicsPath; } |
70d7cb34 | 3796 | |
8bd35413 | 3797 | virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; } |
70d7cb34 | 3798 | |
8bd35413 | 3799 | virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; } |
70d7cb34 RD |
3800 | |
3801 | virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , | |
8bd35413 | 3802 | const wxColour&, const wxColour&) { return wxNullGraphicsBrush; } |
70d7cb34 RD |
3803 | |
3804 | virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo, | |
3805 | wxDouble xc, wxDouble yc, wxDouble radius, | |
8bd35413 | 3806 | const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; } |
70d7cb34 | 3807 | |
8bd35413 | 3808 | virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; } |
70d7cb34 | 3809 | |
8bd35413 RD |
3810 | virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble, |
3811 | wxDouble, wxDouble) { return wxNullGraphicsMatrix; } | |
70d7cb34 RD |
3812 | |
3813 | virtual void PushState() {} | |
3814 | virtual void PopState() {} | |
3815 | virtual void Clip( const wxRegion & ) {} | |
3816 | virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3817 | virtual void ResetClip() {} | |
3818 | virtual void * GetNativeContext() { return NULL; } | |
c8aaaf9e RD |
3819 | virtual int GetLogicalFunction() const { return 0; } |
3820 | virtual bool SetLogicalFunction(int ) {} | |
70d7cb34 RD |
3821 | virtual void Translate( wxDouble , wxDouble ) {} |
3822 | virtual void Scale( wxDouble , wxDouble ) {} | |
3823 | virtual void Rotate( wxDouble ) {} | |
8bd35413 RD |
3824 | virtual void ConcatTransform( const wxGraphicsMatrix& ) {} |
3825 | virtual void SetTransform( const wxGraphicsMatrix& ) {} | |
3826 | virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; } | |
70d7cb34 RD |
3827 | |
3828 | virtual void SetPen( const wxGraphicsPen& ) {} | |
3829 | void SetPen( const wxPen& ) {} | |
3830 | ||
3831 | virtual void SetBrush( const wxGraphicsBrush& ) {} | |
3832 | void SetBrush( const wxBrush& ) {} | |
3833 | ||
3834 | virtual void SetFont( const wxGraphicsFont& ) {} | |
3835 | void SetFont( const wxFont&, const wxColour& ) {} | |
3836 | ||
8bd35413 RD |
3837 | virtual void StrokePath( const wxGraphicsPath & ) {} |
3838 | virtual void FillPath( const wxGraphicsPath &, int ) {} | |
3839 | virtual void DrawPath( const wxGraphicsPath &, int ) {} | |
70d7cb34 RD |
3840 | |
3841 | virtual void DrawText( const wxString &, wxDouble , wxDouble ) {} | |
3842 | virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {} | |
8bd35413 RD |
3843 | virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {} |
3844 | virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {} | |
70d7cb34 RD |
3845 | virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *, |
3846 | wxDouble *, wxDouble * ) const {} | |
3847 | virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {} | |
3848 | ||
3849 | virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3850 | virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3851 | ||
3852 | virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3853 | virtual void StrokeLines( size_t , const wxPoint2DDouble *) {} | |
3854 | virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {} | |
3855 | virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {} | |
3856 | virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
8bd35413 | 3857 | virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {} |
70d7cb34 RD |
3858 | virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {} |
3859 | virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3860 | virtual bool ShouldOffset() const { return false; } | |
3861 | }; | |
3862 | ||
3863 | ||
3864 | class wxGraphicsRenderer : public wxObject | |
3865 | { | |
3866 | public : | |
3867 | wxGraphicsRenderer() { | |
3868 | PyErr_SetString(PyExc_NotImplementedError, | |
3869 | "wx.GraphicsRenderer is not available on this platform."); | |
3870 | } | |
3871 | ||
3872 | virtual ~wxGraphicsRenderer() {} | |
3873 | ||
8bd35413 | 3874 | static wxGraphicsRenderer* GetDefaultRenderer() { |
70d7cb34 RD |
3875 | PyErr_SetString(PyExc_NotImplementedError, |
3876 | "wx.GraphicsRenderer is not available on this platform."); | |
8bd35413 RD |
3877 | return NULL; |
3878 | } | |
70d7cb34 RD |
3879 | |
3880 | virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; } | |
3881 | virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; } | |
3882 | virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; } | |
3883 | virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; } | |
8bd35413 | 3884 | virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; } |
70d7cb34 | 3885 | |
8bd35413 | 3886 | virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; } |
70d7cb34 | 3887 | |
8bd35413 RD |
3888 | virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble , |
3889 | wxDouble , wxDouble ) { return wxNullGraphicsMatrix; } | |
70d7cb34 | 3890 | |
8bd35413 RD |
3891 | virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; } |
3892 | virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; } | |
3893 | virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , | |
3894 | const wxColour&, const wxColour&) { return wxNullGraphicsBrush; } | |
70d7cb34 | 3895 | virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble , |
8bd35413 RD |
3896 | const wxColour &, const wxColour &) { return wxNullGraphicsBrush; } |
3897 | virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; } | |
72ef6efb RD |
3898 | }; |
3899 | ||
3900 | ||
70d7cb34 | 3901 | |
72ef6efb RD |
3902 | class wxGCDC: public wxWindowDC |
3903 | { | |
3904 | public: | |
3905 | wxGCDC(const wxWindowDC&) { | |
3906 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3907 | PyErr_SetString(PyExc_NotImplementedError, | |
3908 | "wxGCDC is not available on this platform."); | |
3909 | wxPyEndBlockThreads(blocked); | |
3910 | } | |
70d7cb34 | 3911 | |
48a0c021 RD |
3912 | wxGCDC(const wxWindow*) { |
3913 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3914 | PyErr_SetString(PyExc_NotImplementedError, | |
3915 | "wxGCDC is not available on this platform."); | |
3916 | wxPyEndBlockThreads(blocked); | |
3917 | } | |
3918 | ||
72ef6efb RD |
3919 | wxGCDC() { |
3920 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3921 | PyErr_SetString(PyExc_NotImplementedError, | |
3922 | "wxGCDC is not available on this platform."); | |
3923 | wxPyEndBlockThreads(blocked); | |
3924 | } | |
70d7cb34 | 3925 | |
72ef6efb RD |
3926 | virtual ~wxGCDC() {} |
3927 | ||
b876c1e4 RD |
3928 | wxGraphicsContext* GetGraphicsContext() { return NULL; } |
3929 | void SetGraphicsContext( wxGraphicsContext* ) {} | |
72ef6efb RD |
3930 | }; |
3931 | ||
3932 | #endif | |
3933 | ||
f89238b9 RD |
3934 | SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){ |
3935 | if ( !backgroundBrush.IsNull() ) | |
3936 | self->DrawText(str, x, y, backgroundBrush); | |
3937 | else | |
3938 | self->DrawText(str, x, y); | |
3939 | } | |
3940 | SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){ | |
3941 | if ( !backgroundBrush.IsNull() ) | |
3942 | self->DrawText(str, x, y, angle, backgroundBrush); | |
3943 | else | |
3944 | self->DrawText(str, x, y, angle); | |
3945 | } | |
be68621e RD |
3946 | SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){ |
3947 | wxDouble width = 0.0, | |
3948 | height = 0.0; | |
3949 | self->GetTextExtent(text, &width, &height, NULL, NULL); | |
3950 | // thread wrapers are turned off for this .i file, so no need to acquire GIL... | |
3951 | PyObject* rv = PyTuple_New(2); | |
3952 | PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width)); | |
3953 | PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height)); | |
3954 | return rv; | |
3955 | } | |
b39fe951 RD |
3956 | SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){ |
3957 | wxArrayDouble widths; | |
3958 | self->GetPartialTextExtents(text, widths); | |
3959 | return widths; | |
3960 | } | |
f8eb59b9 | 3961 | SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){ |
b39fe951 RD |
3962 | size_t c1, c2, count; |
3963 | wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1); | |
3964 | wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2); | |
3965 | ||
3966 | if ( beginP != NULL && endP != NULL ) | |
3967 | { | |
3968 | count = wxMin(c1, c2); | |
3969 | self->StrokeLines(count, beginP, endP); | |
3970 | } | |
3971 | delete [] beginP; | |
3972 | delete [] endP; | |
3973 | } | |
72ef6efb | 3974 | |
0a27f394 RD |
3975 | #include "wx/dcgraph.h" |
3976 | ||
3977 | ||
66493fc7 RD |
3978 | #include <wx/overlay.h> |
3979 | ||
3980 | ||
093d3ff1 | 3981 | |
0085ce49 | 3982 | SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ |
093d3ff1 RD |
3983 | self->AddColour(name, wxColour(red, green, blue)); |
3984 | } | |
3985 | ||
50efceee RD |
3986 | wxFontList* _wxPyInitTheFontList() { return wxTheFontList; } |
3987 | wxPenList* _wxPyInitThePenList() { return wxThePenList; } | |
3988 | wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; } | |
3989 | wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; } | |
3990 | ||
3991 | ||
093d3ff1 RD |
3992 | #include <wx/effects.h> |
3993 | ||
8d38bd1d RD |
3994 | |
3995 | #include "wx/renderer.h" | |
3996 | ||
3997 | ||
32fe5131 | 3998 | SWIGINTERNINLINE PyObject* |
0085ce49 | 3999 | SWIG_From_bool (bool value) |
8d38bd1d | 4000 | { |
0085ce49 | 4001 | return PyBool_FromLong(value ? 1 : 0); |
8d38bd1d RD |
4002 | } |
4003 | ||
27e45892 RD |
4004 | |
4005 | #include "wx/wxPython/pseudodc.h" | |
4006 | ||
4007 | SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){ | |
4008 | wxRect rect; | |
4009 | self->GetIdBounds(id, rect); | |
4010 | return rect; | |
4011 | } | |
093d3ff1 RD |
4012 | #ifdef __cplusplus |
4013 | extern "C" { | |
4014 | #endif | |
0085ce49 RD |
4015 | SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4016 | PyObject *resultobj = 0; | |
4017 | wxGDIObject *result = 0 ; | |
4018 | ||
4019 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail; | |
4020 | { | |
4021 | if (!wxPyCheckForApp()) SWIG_fail; | |
4022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4023 | result = (wxGDIObject *)new wxGDIObject(); | |
4024 | wxPyEndAllowThreads(__tstate); | |
4025 | if (PyErr_Occurred()) SWIG_fail; | |
4026 | } | |
4027 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 ); | |
4028 | return resultobj; | |
4029 | fail: | |
4030 | return NULL; | |
093d3ff1 RD |
4031 | } |
4032 | ||
4033 | ||
0085ce49 RD |
4034 | SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4035 | PyObject *resultobj = 0; | |
4036 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
4037 | void *argp1 = 0 ; | |
4038 | int res1 = 0 ; | |
4039 | PyObject *swig_obj[1] ; | |
4040 | ||
4041 | if (!args) SWIG_fail; | |
4042 | swig_obj[0] = args; | |
4043 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 ); | |
4044 | if (!SWIG_IsOK(res1)) { | |
4045 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
4046 | } | |
4047 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
4048 | { | |
4049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4050 | delete arg1; | |
093d3ff1 | 4051 | |
0085ce49 RD |
4052 | wxPyEndAllowThreads(__tstate); |
4053 | if (PyErr_Occurred()) SWIG_fail; | |
4054 | } | |
4055 | resultobj = SWIG_Py_Void(); | |
4056 | return resultobj; | |
4057 | fail: | |
4058 | return NULL; | |
d14a1e28 RD |
4059 | } |
4060 | ||
4061 | ||
0085ce49 RD |
4062 | SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4063 | PyObject *resultobj = 0; | |
4064 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
4065 | bool result; | |
4066 | void *argp1 = 0 ; | |
4067 | int res1 = 0 ; | |
4068 | PyObject *swig_obj[1] ; | |
4069 | ||
4070 | if (!args) SWIG_fail; | |
4071 | swig_obj[0] = args; | |
4072 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 ); | |
4073 | if (!SWIG_IsOK(res1)) { | |
4074 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
4075 | } | |
4076 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
4077 | { | |
4078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4079 | result = (bool)(arg1)->IsNull(); | |
4080 | wxPyEndAllowThreads(__tstate); | |
4081 | if (PyErr_Occurred()) SWIG_fail; | |
4082 | } | |
4083 | { | |
4084 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4085 | } | |
4086 | return resultobj; | |
4087 | fail: | |
4088 | return NULL; | |
4089 | } | |
4090 | ||
4091 | ||
4092 | SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4093 | PyObject *obj; | |
4094 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4095 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj)); | |
4096 | return SWIG_Py_Void(); | |
4097 | } | |
4098 | ||
4099 | SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4100 | return SWIG_Python_InitShadowInstance(args); | |
4101 | } | |
4102 | ||
4103 | SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4104 | PyObject *resultobj = 0; | |
4105 | byte arg1 = (byte) 0 ; | |
4106 | byte arg2 = (byte) 0 ; | |
4107 | byte arg3 = (byte) 0 ; | |
fc46b7f3 | 4108 | byte arg4 = (byte) wxALPHA_OPAQUE ; |
0085ce49 RD |
4109 | wxColour *result = 0 ; |
4110 | unsigned char val1 ; | |
4111 | int ecode1 = 0 ; | |
4112 | unsigned char val2 ; | |
4113 | int ecode2 = 0 ; | |
4114 | unsigned char val3 ; | |
4115 | int ecode3 = 0 ; | |
fc46b7f3 RD |
4116 | unsigned char val4 ; |
4117 | int ecode4 = 0 ; | |
0085ce49 RD |
4118 | PyObject * obj0 = 0 ; |
4119 | PyObject * obj1 = 0 ; | |
4120 | PyObject * obj2 = 0 ; | |
fc46b7f3 | 4121 | PyObject * obj3 = 0 ; |
0085ce49 | 4122 | char * kwnames[] = { |
fc46b7f3 | 4123 | (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL |
0085ce49 RD |
4124 | }; |
4125 | ||
fc46b7f3 | 4126 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
0085ce49 RD |
4127 | if (obj0) { |
4128 | ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1); | |
4129 | if (!SWIG_IsOK(ecode1)) { | |
4130 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'"); | |
4131 | } | |
4132 | arg1 = static_cast< byte >(val1); | |
4133 | } | |
4134 | if (obj1) { | |
4135 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4136 | if (!SWIG_IsOK(ecode2)) { | |
4137 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'"); | |
4138 | } | |
4139 | arg2 = static_cast< byte >(val2); | |
4140 | } | |
4141 | if (obj2) { | |
4142 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4143 | if (!SWIG_IsOK(ecode3)) { | |
4144 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'"); | |
4145 | } | |
4146 | arg3 = static_cast< byte >(val3); | |
4147 | } | |
fc46b7f3 RD |
4148 | if (obj3) { |
4149 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4150 | if (!SWIG_IsOK(ecode4)) { | |
4151 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'"); | |
4152 | } | |
4153 | arg4 = static_cast< byte >(val4); | |
4154 | } | |
0085ce49 RD |
4155 | { |
4156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 4157 | result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4); |
0085ce49 RD |
4158 | wxPyEndAllowThreads(__tstate); |
4159 | if (PyErr_Occurred()) SWIG_fail; | |
4160 | } | |
4161 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 ); | |
4162 | return resultobj; | |
4163 | fail: | |
4164 | return NULL; | |
d14a1e28 RD |
4165 | } |
4166 | ||
4167 | ||
0085ce49 RD |
4168 | SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4169 | PyObject *resultobj = 0; | |
4170 | wxString *arg1 = 0 ; | |
4171 | wxColour *result = 0 ; | |
4172 | bool temp1 = false ; | |
4173 | PyObject * obj0 = 0 ; | |
4174 | char * kwnames[] = { | |
4175 | (char *) "colorName", NULL | |
4176 | }; | |
4177 | ||
4178 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail; | |
4179 | { | |
4180 | arg1 = wxString_in_helper(obj0); | |
4181 | if (arg1 == NULL) SWIG_fail; | |
4182 | temp1 = true; | |
4183 | } | |
4184 | { | |
4185 | if (!wxPyCheckForApp()) SWIG_fail; | |
4186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4187 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
4188 | wxPyEndAllowThreads(__tstate); | |
4189 | if (PyErr_Occurred()) SWIG_fail; | |
4190 | } | |
4191 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
4192 | { | |
4193 | if (temp1) | |
4194 | delete arg1; | |
4195 | } | |
4196 | return resultobj; | |
4197 | fail: | |
4198 | { | |
4199 | if (temp1) | |
4200 | delete arg1; | |
4201 | } | |
4202 | return NULL; | |
d14a1e28 RD |
4203 | } |
4204 | ||
4205 | ||
0085ce49 RD |
4206 | SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4207 | PyObject *resultobj = 0; | |
4208 | unsigned long arg1 ; | |
4209 | wxColour *result = 0 ; | |
4210 | unsigned long val1 ; | |
4211 | int ecode1 = 0 ; | |
4212 | PyObject * obj0 = 0 ; | |
4213 | char * kwnames[] = { | |
4214 | (char *) "colRGB", NULL | |
4215 | }; | |
4216 | ||
4217 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail; | |
4218 | ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1); | |
4219 | if (!SWIG_IsOK(ecode1)) { | |
4220 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'"); | |
4221 | } | |
4222 | arg1 = static_cast< unsigned long >(val1); | |
4223 | { | |
4224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4225 | result = (wxColour *)new wxColour(arg1); | |
4226 | wxPyEndAllowThreads(__tstate); | |
4227 | if (PyErr_Occurred()) SWIG_fail; | |
4228 | } | |
4229 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
4230 | return resultobj; | |
4231 | fail: | |
4232 | return NULL; | |
d14a1e28 RD |
4233 | } |
4234 | ||
4235 | ||
0085ce49 RD |
4236 | SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4237 | PyObject *resultobj = 0; | |
4238 | wxColour *arg1 = (wxColour *) 0 ; | |
4239 | void *argp1 = 0 ; | |
4240 | int res1 = 0 ; | |
4241 | PyObject *swig_obj[1] ; | |
4242 | ||
4243 | if (!args) SWIG_fail; | |
4244 | swig_obj[0] = args; | |
4245 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 ); | |
4246 | if (!SWIG_IsOK(res1)) { | |
4247 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4248 | } | |
4249 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4250 | { | |
4251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4252 | delete arg1; | |
d14a1e28 | 4253 | |
0085ce49 RD |
4254 | wxPyEndAllowThreads(__tstate); |
4255 | if (PyErr_Occurred()) SWIG_fail; | |
4256 | } | |
4257 | resultobj = SWIG_Py_Void(); | |
4258 | return resultobj; | |
4259 | fail: | |
4260 | return NULL; | |
d14a1e28 RD |
4261 | } |
4262 | ||
4263 | ||
0085ce49 RD |
4264 | SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4265 | PyObject *resultobj = 0; | |
4266 | wxColour *arg1 = (wxColour *) 0 ; | |
4267 | byte result; | |
4268 | void *argp1 = 0 ; | |
4269 | int res1 = 0 ; | |
4270 | PyObject *swig_obj[1] ; | |
4271 | ||
4272 | if (!args) SWIG_fail; | |
4273 | swig_obj[0] = args; | |
4274 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4275 | if (!SWIG_IsOK(res1)) { | |
4276 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4277 | } | |
4278 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4279 | { | |
4280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4281 | result = (byte)(arg1)->Red(); | |
4282 | wxPyEndAllowThreads(__tstate); | |
4283 | if (PyErr_Occurred()) SWIG_fail; | |
4284 | } | |
4285 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4286 | return resultobj; | |
4287 | fail: | |
4288 | return NULL; | |
d14a1e28 RD |
4289 | } |
4290 | ||
4291 | ||
0085ce49 RD |
4292 | SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4293 | PyObject *resultobj = 0; | |
4294 | wxColour *arg1 = (wxColour *) 0 ; | |
4295 | byte result; | |
4296 | void *argp1 = 0 ; | |
4297 | int res1 = 0 ; | |
4298 | PyObject *swig_obj[1] ; | |
4299 | ||
4300 | if (!args) SWIG_fail; | |
4301 | swig_obj[0] = args; | |
4302 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4303 | if (!SWIG_IsOK(res1)) { | |
4304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4305 | } | |
4306 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4307 | { | |
4308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4309 | result = (byte)(arg1)->Green(); | |
4310 | wxPyEndAllowThreads(__tstate); | |
4311 | if (PyErr_Occurred()) SWIG_fail; | |
4312 | } | |
4313 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4314 | return resultobj; | |
4315 | fail: | |
4316 | return NULL; | |
5cbf236d RD |
4317 | } |
4318 | ||
4319 | ||
0085ce49 RD |
4320 | SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4321 | PyObject *resultobj = 0; | |
4322 | wxColour *arg1 = (wxColour *) 0 ; | |
4323 | byte result; | |
4324 | void *argp1 = 0 ; | |
4325 | int res1 = 0 ; | |
4326 | PyObject *swig_obj[1] ; | |
4327 | ||
4328 | if (!args) SWIG_fail; | |
4329 | swig_obj[0] = args; | |
4330 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4331 | if (!SWIG_IsOK(res1)) { | |
4332 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4333 | } | |
4334 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4335 | { | |
4336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4337 | result = (byte)(arg1)->Blue(); | |
4338 | wxPyEndAllowThreads(__tstate); | |
4339 | if (PyErr_Occurred()) SWIG_fail; | |
4340 | } | |
4341 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4342 | return resultobj; | |
4343 | fail: | |
4344 | return NULL; | |
d14a1e28 RD |
4345 | } |
4346 | ||
4347 | ||
fc46b7f3 RD |
4348 | SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4349 | PyObject *resultobj = 0; | |
4350 | wxColour *arg1 = (wxColour *) 0 ; | |
4351 | byte result; | |
4352 | void *argp1 = 0 ; | |
4353 | int res1 = 0 ; | |
4354 | PyObject *swig_obj[1] ; | |
4355 | ||
4356 | if (!args) SWIG_fail; | |
4357 | swig_obj[0] = args; | |
4358 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4359 | if (!SWIG_IsOK(res1)) { | |
4360 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4361 | } | |
4362 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4363 | { | |
4364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4365 | result = (byte)(arg1)->Alpha(); | |
4366 | wxPyEndAllowThreads(__tstate); | |
4367 | if (PyErr_Occurred()) SWIG_fail; | |
4368 | } | |
4369 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4370 | return resultobj; | |
4371 | fail: | |
4372 | return NULL; | |
4373 | } | |
4374 | ||
4375 | ||
b39fe951 | 4376 | SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
4377 | PyObject *resultobj = 0; |
4378 | wxColour *arg1 = (wxColour *) 0 ; | |
4379 | bool result; | |
4380 | void *argp1 = 0 ; | |
4381 | int res1 = 0 ; | |
4382 | PyObject *swig_obj[1] ; | |
4383 | ||
4384 | if (!args) SWIG_fail; | |
4385 | swig_obj[0] = args; | |
4386 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4387 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 4388 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'"); |
0085ce49 RD |
4389 | } |
4390 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4391 | { | |
4392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 4393 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
4394 | wxPyEndAllowThreads(__tstate); |
4395 | if (PyErr_Occurred()) SWIG_fail; | |
4396 | } | |
4397 | { | |
4398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4399 | } | |
4400 | return resultobj; | |
4401 | fail: | |
4402 | return NULL; | |
4403 | } | |
4404 | ||
4405 | ||
4406 | SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4407 | PyObject *resultobj = 0; | |
4408 | wxColour *arg1 = (wxColour *) 0 ; | |
4409 | byte arg2 ; | |
4410 | byte arg3 ; | |
4411 | byte arg4 ; | |
fc46b7f3 | 4412 | byte arg5 = (byte) wxALPHA_OPAQUE ; |
0085ce49 RD |
4413 | void *argp1 = 0 ; |
4414 | int res1 = 0 ; | |
4415 | unsigned char val2 ; | |
4416 | int ecode2 = 0 ; | |
4417 | unsigned char val3 ; | |
4418 | int ecode3 = 0 ; | |
4419 | unsigned char val4 ; | |
4420 | int ecode4 = 0 ; | |
fc46b7f3 RD |
4421 | unsigned char val5 ; |
4422 | int ecode5 = 0 ; | |
0085ce49 RD |
4423 | PyObject * obj0 = 0 ; |
4424 | PyObject * obj1 = 0 ; | |
4425 | PyObject * obj2 = 0 ; | |
4426 | PyObject * obj3 = 0 ; | |
fc46b7f3 | 4427 | PyObject * obj4 = 0 ; |
0085ce49 | 4428 | char * kwnames[] = { |
fc46b7f3 | 4429 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL |
0085ce49 RD |
4430 | }; |
4431 | ||
fc46b7f3 | 4432 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
0085ce49 RD |
4433 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); |
4434 | if (!SWIG_IsOK(res1)) { | |
4435 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4436 | } | |
4437 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4438 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4439 | if (!SWIG_IsOK(ecode2)) { | |
4440 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'"); | |
4441 | } | |
4442 | arg2 = static_cast< byte >(val2); | |
4443 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4444 | if (!SWIG_IsOK(ecode3)) { | |
4445 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'"); | |
4446 | } | |
4447 | arg3 = static_cast< byte >(val3); | |
4448 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4449 | if (!SWIG_IsOK(ecode4)) { | |
4450 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'"); | |
4451 | } | |
4452 | arg4 = static_cast< byte >(val4); | |
fc46b7f3 RD |
4453 | if (obj4) { |
4454 | ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); | |
4455 | if (!SWIG_IsOK(ecode5)) { | |
4456 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'"); | |
4457 | } | |
4458 | arg5 = static_cast< byte >(val5); | |
4459 | } | |
0085ce49 RD |
4460 | { |
4461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 4462 | (arg1)->Set(arg2,arg3,arg4,arg5); |
0085ce49 RD |
4463 | wxPyEndAllowThreads(__tstate); |
4464 | if (PyErr_Occurred()) SWIG_fail; | |
4465 | } | |
4466 | resultobj = SWIG_Py_Void(); | |
4467 | return resultobj; | |
4468 | fail: | |
4469 | return NULL; | |
4470 | } | |
4471 | ||
4472 | ||
4473 | SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4474 | PyObject *resultobj = 0; | |
4475 | wxColour *arg1 = (wxColour *) 0 ; | |
4476 | unsigned long arg2 ; | |
4477 | void *argp1 = 0 ; | |
4478 | int res1 = 0 ; | |
4479 | unsigned long val2 ; | |
4480 | int ecode2 = 0 ; | |
4481 | PyObject * obj0 = 0 ; | |
4482 | PyObject * obj1 = 0 ; | |
4483 | char * kwnames[] = { | |
4484 | (char *) "self",(char *) "colRGB", NULL | |
4485 | }; | |
4486 | ||
4487 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
4488 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4489 | if (!SWIG_IsOK(res1)) { | |
4490 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4491 | } | |
4492 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4493 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
4494 | if (!SWIG_IsOK(ecode2)) { | |
4495 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'"); | |
4496 | } | |
4497 | arg2 = static_cast< unsigned long >(val2); | |
4498 | { | |
4499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4500 | (arg1)->Set(arg2); | |
4501 | wxPyEndAllowThreads(__tstate); | |
4502 | if (PyErr_Occurred()) SWIG_fail; | |
4503 | } | |
4504 | resultobj = SWIG_Py_Void(); | |
4505 | return resultobj; | |
4506 | fail: | |
4507 | return NULL; | |
4508 | } | |
4509 | ||
4510 | ||
4511 | SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4512 | PyObject *resultobj = 0; | |
4513 | wxColour *arg1 = (wxColour *) 0 ; | |
4514 | wxString *arg2 = 0 ; | |
4515 | void *argp1 = 0 ; | |
4516 | int res1 = 0 ; | |
4517 | bool temp2 = false ; | |
4518 | PyObject * obj0 = 0 ; | |
4519 | PyObject * obj1 = 0 ; | |
4520 | char * kwnames[] = { | |
4521 | (char *) "self",(char *) "colourName", NULL | |
4522 | }; | |
4523 | ||
4524 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail; | |
4525 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4526 | if (!SWIG_IsOK(res1)) { | |
4527 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4528 | } | |
4529 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4530 | { | |
4531 | arg2 = wxString_in_helper(obj1); | |
4532 | if (arg2 == NULL) SWIG_fail; | |
4533 | temp2 = true; | |
4534 | } | |
4535 | { | |
4536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
72ef6efb | 4537 | (arg1)->Set((wxString const &)*arg2); |
0085ce49 RD |
4538 | wxPyEndAllowThreads(__tstate); |
4539 | if (PyErr_Occurred()) SWIG_fail; | |
4540 | } | |
4541 | resultobj = SWIG_Py_Void(); | |
4542 | { | |
4543 | if (temp2) | |
4544 | delete arg2; | |
4545 | } | |
4546 | return resultobj; | |
4547 | fail: | |
4548 | { | |
4549 | if (temp2) | |
4550 | delete arg2; | |
4551 | } | |
4552 | return NULL; | |
d14a1e28 RD |
4553 | } |
4554 | ||
4555 | ||
01f6b6d3 RD |
4556 | SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4557 | PyObject *resultobj = 0; | |
4558 | wxColour *arg1 = (wxColour *) 0 ; | |
4559 | long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ; | |
4560 | wxString result; | |
4561 | void *argp1 = 0 ; | |
4562 | int res1 = 0 ; | |
4563 | long val2 ; | |
4564 | int ecode2 = 0 ; | |
4565 | PyObject * obj0 = 0 ; | |
4566 | PyObject * obj1 = 0 ; | |
4567 | char * kwnames[] = { | |
4568 | (char *) "self",(char *) "flags", NULL | |
4569 | }; | |
4570 | ||
4571 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail; | |
4572 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4573 | if (!SWIG_IsOK(res1)) { | |
4574 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
4575 | } | |
4576 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4577 | if (obj1) { | |
4578 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
4579 | if (!SWIG_IsOK(ecode2)) { | |
4580 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'"); | |
4581 | } | |
4582 | arg2 = static_cast< long >(val2); | |
4583 | } | |
4584 | { | |
4585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4586 | result = ((wxColour const *)arg1)->GetAsString(arg2); | |
4587 | wxPyEndAllowThreads(__tstate); | |
4588 | if (PyErr_Occurred()) SWIG_fail; | |
4589 | } | |
4590 | { | |
4591 | #if wxUSE_UNICODE | |
4592 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4593 | #else | |
4594 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4595 | #endif | |
4596 | } | |
4597 | return resultobj; | |
4598 | fail: | |
4599 | return NULL; | |
4600 | } | |
4601 | ||
4602 | ||
0085ce49 RD |
4603 | SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4604 | PyObject *resultobj = 0; | |
4605 | wxColour *arg1 = (wxColour *) 0 ; | |
4606 | long result; | |
4607 | void *argp1 = 0 ; | |
4608 | int res1 = 0 ; | |
4609 | PyObject *swig_obj[1] ; | |
4610 | ||
4611 | if (!args) SWIG_fail; | |
4612 | swig_obj[0] = args; | |
4613 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4614 | if (!SWIG_IsOK(res1)) { | |
4615 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
4616 | } | |
4617 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4618 | { | |
4619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4620 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
4621 | wxPyEndAllowThreads(__tstate); | |
4622 | if (PyErr_Occurred()) SWIG_fail; | |
4623 | } | |
4624 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4625 | return resultobj; | |
4626 | fail: | |
4627 | return NULL; | |
4628 | } | |
4629 | ||
4630 | ||
4631 | SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4632 | PyObject *resultobj = 0; | |
4633 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 4634 | PyObject *arg2 = (PyObject *) 0 ; |
0085ce49 RD |
4635 | bool result; |
4636 | void *argp1 = 0 ; | |
4637 | int res1 = 0 ; | |
0085ce49 RD |
4638 | PyObject * obj0 = 0 ; |
4639 | PyObject * obj1 = 0 ; | |
4640 | char * kwnames[] = { | |
e9d6f3a4 | 4641 | (char *) "self",(char *) "other", NULL |
0085ce49 RD |
4642 | }; |
4643 | ||
4644 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4645 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4646 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 4647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'"); |
0085ce49 RD |
4648 | } |
4649 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 4650 | arg2 = obj1; |
0085ce49 | 4651 | { |
e9d6f3a4 | 4652 | result = (bool)wxColour___eq__(arg1,arg2); |
0085ce49 RD |
4653 | if (PyErr_Occurred()) SWIG_fail; |
4654 | } | |
4655 | { | |
4656 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4657 | } | |
4658 | return resultobj; | |
4659 | fail: | |
4660 | return NULL; | |
4661 | } | |
4662 | ||
4663 | ||
4664 | SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4665 | PyObject *resultobj = 0; | |
4666 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 4667 | PyObject *arg2 = (PyObject *) 0 ; |
0085ce49 RD |
4668 | bool result; |
4669 | void *argp1 = 0 ; | |
4670 | int res1 = 0 ; | |
0085ce49 RD |
4671 | PyObject * obj0 = 0 ; |
4672 | PyObject * obj1 = 0 ; | |
4673 | char * kwnames[] = { | |
e9d6f3a4 | 4674 | (char *) "self",(char *) "other", NULL |
0085ce49 RD |
4675 | }; |
4676 | ||
4677 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4678 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4679 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 4680 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'"); |
0085ce49 RD |
4681 | } |
4682 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 4683 | arg2 = obj1; |
0085ce49 | 4684 | { |
e9d6f3a4 | 4685 | result = (bool)wxColour___ne__(arg1,arg2); |
0085ce49 RD |
4686 | if (PyErr_Occurred()) SWIG_fail; |
4687 | } | |
4688 | { | |
4689 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4690 | } | |
4691 | return resultobj; | |
4692 | fail: | |
4693 | return NULL; | |
d14a1e28 RD |
4694 | } |
4695 | ||
4696 | ||
fc46b7f3 | 4697 | SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
4698 | PyObject *resultobj = 0; |
4699 | wxColour *arg1 = (wxColour *) 0 ; | |
fc46b7f3 | 4700 | bool arg2 = (bool) false ; |
0085ce49 RD |
4701 | PyObject *result = 0 ; |
4702 | void *argp1 = 0 ; | |
4703 | int res1 = 0 ; | |
fc46b7f3 RD |
4704 | bool val2 ; |
4705 | int ecode2 = 0 ; | |
4706 | PyObject * obj0 = 0 ; | |
4707 | PyObject * obj1 = 0 ; | |
4708 | char * kwnames[] = { | |
4709 | (char *) "self",(char *) "includeAlpha", NULL | |
4710 | }; | |
0085ce49 | 4711 | |
fc46b7f3 RD |
4712 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail; |
4713 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
0085ce49 RD |
4714 | if (!SWIG_IsOK(res1)) { |
4715 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4716 | } | |
4717 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
fc46b7f3 RD |
4718 | if (obj1) { |
4719 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4720 | if (!SWIG_IsOK(ecode2)) { | |
4721 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'"); | |
4722 | } | |
4723 | arg2 = static_cast< bool >(val2); | |
4724 | } | |
0085ce49 | 4725 | { |
fc46b7f3 | 4726 | result = (PyObject *)wxColour_Get(arg1,arg2); |
0085ce49 RD |
4727 | if (PyErr_Occurred()) SWIG_fail; |
4728 | } | |
4729 | resultobj = result; | |
4730 | return resultobj; | |
4731 | fail: | |
4732 | return NULL; | |
d14a1e28 RD |
4733 | } |
4734 | ||
4735 | ||
0085ce49 RD |
4736 | SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4737 | PyObject *resultobj = 0; | |
4738 | wxColour *arg1 = (wxColour *) 0 ; | |
4739 | unsigned long result; | |
4740 | void *argp1 = 0 ; | |
4741 | int res1 = 0 ; | |
4742 | PyObject *swig_obj[1] ; | |
4743 | ||
4744 | if (!args) SWIG_fail; | |
4745 | swig_obj[0] = args; | |
4746 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4747 | if (!SWIG_IsOK(res1)) { | |
4748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4749 | } | |
4750 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4751 | { | |
0085ce49 | 4752 | result = (unsigned long)wxColour_GetRGB(arg1); |
0085ce49 RD |
4753 | if (PyErr_Occurred()) SWIG_fail; |
4754 | } | |
4755 | resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); | |
4756 | return resultobj; | |
4757 | fail: | |
4758 | return NULL; | |
4759 | } | |
4760 | ||
4761 | ||
4762 | SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4763 | PyObject *obj; | |
4764 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4765 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj)); | |
4766 | return SWIG_Py_Void(); | |
4767 | } | |
4768 | ||
4769 | SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4770 | return SWIG_Python_InitShadowInstance(args); | |
4771 | } | |
4772 | ||
4773 | SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4774 | PyObject *resultobj = 0; | |
4775 | int arg1 ; | |
4776 | unsigned char *arg2 = (unsigned char *) 0 ; | |
4777 | unsigned char *arg3 = (unsigned char *) 0 ; | |
4778 | unsigned char *arg4 = (unsigned char *) 0 ; | |
4779 | wxPalette *result = 0 ; | |
4780 | int val1 ; | |
4781 | int ecode1 = 0 ; | |
4782 | void *argp2 = 0 ; | |
4783 | int res2 = 0 ; | |
4784 | void *argp3 = 0 ; | |
4785 | int res3 = 0 ; | |
4786 | void *argp4 = 0 ; | |
4787 | int res4 = 0 ; | |
4788 | PyObject * obj0 = 0 ; | |
4789 | PyObject * obj1 = 0 ; | |
4790 | PyObject * obj2 = 0 ; | |
4791 | PyObject * obj3 = 0 ; | |
4792 | char * kwnames[] = { | |
4793 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
4794 | }; | |
4795 | ||
4796 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4797 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
4798 | if (!SWIG_IsOK(ecode1)) { | |
4799 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'"); | |
4800 | } | |
4801 | arg1 = static_cast< int >(val1); | |
4802 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4803 | if (!SWIG_IsOK(res2)) { | |
4804 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'"); | |
4805 | } | |
4806 | arg2 = reinterpret_cast< unsigned char * >(argp2); | |
4807 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4808 | if (!SWIG_IsOK(res3)) { | |
4809 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'"); | |
4810 | } | |
4811 | arg3 = reinterpret_cast< unsigned char * >(argp3); | |
4812 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4813 | if (!SWIG_IsOK(res4)) { | |
4814 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'"); | |
4815 | } | |
4816 | arg4 = reinterpret_cast< unsigned char * >(argp4); | |
4817 | { | |
4818 | if (!wxPyCheckForApp()) SWIG_fail; | |
4819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4820 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
4821 | wxPyEndAllowThreads(__tstate); | |
4822 | if (PyErr_Occurred()) SWIG_fail; | |
4823 | } | |
4824 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 ); | |
4825 | return resultobj; | |
4826 | fail: | |
4827 | return NULL; | |
d14a1e28 RD |
4828 | } |
4829 | ||
4830 | ||
0085ce49 RD |
4831 | SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4832 | PyObject *resultobj = 0; | |
4833 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4834 | void *argp1 = 0 ; | |
4835 | int res1 = 0 ; | |
4836 | PyObject *swig_obj[1] ; | |
4837 | ||
4838 | if (!args) SWIG_fail; | |
4839 | swig_obj[0] = args; | |
4840 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 ); | |
4841 | if (!SWIG_IsOK(res1)) { | |
4842 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4843 | } | |
4844 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4845 | { | |
4846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4847 | delete arg1; | |
d14a1e28 | 4848 | |
0085ce49 RD |
4849 | wxPyEndAllowThreads(__tstate); |
4850 | if (PyErr_Occurred()) SWIG_fail; | |
4851 | } | |
4852 | resultobj = SWIG_Py_Void(); | |
4853 | return resultobj; | |
4854 | fail: | |
4855 | return NULL; | |
4856 | } | |
4857 | ||
4858 | ||
4859 | SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4860 | PyObject *resultobj = 0; | |
4861 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4862 | byte arg2 ; | |
4863 | byte arg3 ; | |
4864 | byte arg4 ; | |
4865 | int result; | |
4866 | void *argp1 = 0 ; | |
4867 | int res1 = 0 ; | |
4868 | unsigned char val2 ; | |
4869 | int ecode2 = 0 ; | |
4870 | unsigned char val3 ; | |
4871 | int ecode3 = 0 ; | |
4872 | unsigned char val4 ; | |
4873 | int ecode4 = 0 ; | |
4874 | PyObject * obj0 = 0 ; | |
4875 | PyObject * obj1 = 0 ; | |
4876 | PyObject * obj2 = 0 ; | |
4877 | PyObject * obj3 = 0 ; | |
4878 | char * kwnames[] = { | |
4879 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
4880 | }; | |
4881 | ||
4882 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4883 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4884 | if (!SWIG_IsOK(res1)) { | |
4885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4886 | } | |
4887 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4888 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4889 | if (!SWIG_IsOK(ecode2)) { | |
4890 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'"); | |
4891 | } | |
4892 | arg2 = static_cast< byte >(val2); | |
4893 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4894 | if (!SWIG_IsOK(ecode3)) { | |
4895 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'"); | |
4896 | } | |
4897 | arg3 = static_cast< byte >(val3); | |
4898 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4899 | if (!SWIG_IsOK(ecode4)) { | |
4900 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'"); | |
4901 | } | |
4902 | arg4 = static_cast< byte >(val4); | |
4903 | { | |
4904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4905 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
4906 | wxPyEndAllowThreads(__tstate); | |
4907 | if (PyErr_Occurred()) SWIG_fail; | |
4908 | } | |
4909 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4910 | return resultobj; | |
4911 | fail: | |
4912 | return NULL; | |
4913 | } | |
4914 | ||
4915 | ||
4916 | SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4917 | PyObject *resultobj = 0; | |
4918 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4919 | int arg2 ; | |
4920 | byte *arg3 = (byte *) 0 ; | |
4921 | byte *arg4 = (byte *) 0 ; | |
4922 | byte *arg5 = (byte *) 0 ; | |
4923 | bool result; | |
4924 | void *argp1 = 0 ; | |
4925 | int res1 = 0 ; | |
4926 | int val2 ; | |
4927 | int ecode2 = 0 ; | |
4928 | byte temp3 ; | |
4929 | int res3 = SWIG_TMPOBJ ; | |
4930 | byte temp4 ; | |
4931 | int res4 = SWIG_TMPOBJ ; | |
4932 | byte temp5 ; | |
4933 | int res5 = SWIG_TMPOBJ ; | |
4934 | PyObject * obj0 = 0 ; | |
4935 | PyObject * obj1 = 0 ; | |
4936 | char * kwnames[] = { | |
4937 | (char *) "self",(char *) "pixel", NULL | |
4938 | }; | |
4939 | ||
4940 | arg3 = &temp3; | |
4941 | arg4 = &temp4; | |
4942 | arg5 = &temp5; | |
4943 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
4944 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4945 | if (!SWIG_IsOK(res1)) { | |
4946 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4947 | } | |
4948 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4949 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4950 | if (!SWIG_IsOK(ecode2)) { | |
4951 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'"); | |
4952 | } | |
4953 | arg2 = static_cast< int >(val2); | |
4954 | { | |
4955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4956 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
4957 | wxPyEndAllowThreads(__tstate); | |
4958 | if (PyErr_Occurred()) SWIG_fail; | |
4959 | } | |
4960 | { | |
4961 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4962 | } | |
4963 | if (SWIG_IsTmpObj(res3)) { | |
4964 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3))); | |
4965 | } else { | |
4966 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4967 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags)); | |
4968 | } | |
4969 | if (SWIG_IsTmpObj(res4)) { | |
4970 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4))); | |
4971 | } else { | |
4972 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4973 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); | |
4974 | } | |
4975 | if (SWIG_IsTmpObj(res5)) { | |
4976 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5))); | |
4977 | } else { | |
4978 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4979 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags)); | |
4980 | } | |
4981 | return resultobj; | |
4982 | fail: | |
4983 | return NULL; | |
d14a1e28 RD |
4984 | } |
4985 | ||
4986 | ||
0085ce49 RD |
4987 | SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4988 | PyObject *resultobj = 0; | |
4989 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4990 | int result; | |
4991 | void *argp1 = 0 ; | |
4992 | int res1 = 0 ; | |
4993 | PyObject *swig_obj[1] ; | |
4994 | ||
4995 | if (!args) SWIG_fail; | |
4996 | swig_obj[0] = args; | |
4997 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4998 | if (!SWIG_IsOK(res1)) { | |
4999 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'"); | |
5000 | } | |
5001 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
5002 | { | |
5003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5004 | result = (int)((wxPalette const *)arg1)->GetColoursCount(); | |
5005 | wxPyEndAllowThreads(__tstate); | |
5006 | if (PyErr_Occurred()) SWIG_fail; | |
5007 | } | |
5008 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5009 | return resultobj; | |
5010 | fail: | |
5011 | return NULL; | |
d14a1e28 RD |
5012 | } |
5013 | ||
5014 | ||
b39fe951 | 5015 | SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
5016 | PyObject *resultobj = 0; |
5017 | wxPalette *arg1 = (wxPalette *) 0 ; | |
5018 | bool result; | |
5019 | void *argp1 = 0 ; | |
5020 | int res1 = 0 ; | |
5021 | PyObject *swig_obj[1] ; | |
5022 | ||
5023 | if (!args) SWIG_fail; | |
5024 | swig_obj[0] = args; | |
5025 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
5026 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 5027 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'"); |
0085ce49 RD |
5028 | } |
5029 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
5030 | { | |
5031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 5032 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
5033 | wxPyEndAllowThreads(__tstate); |
5034 | if (PyErr_Occurred()) SWIG_fail; | |
5035 | } | |
5036 | { | |
5037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5038 | } | |
5039 | return resultobj; | |
5040 | fail: | |
5041 | return NULL; | |
5042 | } | |
5043 | ||
5044 | ||
5045 | SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5046 | PyObject *obj; | |
5047 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5048 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj)); | |
5049 | return SWIG_Py_Void(); | |
5050 | } | |
5051 | ||
5052 | SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5053 | return SWIG_Python_InitShadowInstance(args); | |
5054 | } | |
5055 | ||
5056 | SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5057 | PyObject *resultobj = 0; | |
5058 | wxColour *arg1 = 0 ; | |
5059 | int arg2 = (int) 1 ; | |
5060 | int arg3 = (int) wxSOLID ; | |
5061 | wxPen *result = 0 ; | |
5062 | wxColour temp1 ; | |
5063 | int val2 ; | |
5064 | int ecode2 = 0 ; | |
5065 | int val3 ; | |
5066 | int ecode3 = 0 ; | |
5067 | PyObject * obj0 = 0 ; | |
5068 | PyObject * obj1 = 0 ; | |
5069 | PyObject * obj2 = 0 ; | |
5070 | char * kwnames[] = { | |
5071 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
5072 | }; | |
5073 | ||
5074 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5075 | { | |
5076 | arg1 = &temp1; | |
5077 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
5078 | } | |
5079 | if (obj1) { | |
5080 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5081 | if (!SWIG_IsOK(ecode2)) { | |
5082 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'"); | |
5083 | } | |
5084 | arg2 = static_cast< int >(val2); | |
5085 | } | |
5086 | if (obj2) { | |
5087 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5088 | if (!SWIG_IsOK(ecode3)) { | |
5089 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'"); | |
5090 | } | |
5091 | arg3 = static_cast< int >(val3); | |
5092 | } | |
5093 | { | |
5094 | if (!wxPyCheckForApp()) SWIG_fail; | |
5095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5096 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
5097 | wxPyEndAllowThreads(__tstate); | |
5098 | if (PyErr_Occurred()) SWIG_fail; | |
5099 | } | |
5100 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 ); | |
5101 | return resultobj; | |
5102 | fail: | |
5103 | return NULL; | |
d14a1e28 RD |
5104 | } |
5105 | ||
5106 | ||
0085ce49 RD |
5107 | SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5108 | PyObject *resultobj = 0; | |
5109 | wxPen *arg1 = (wxPen *) 0 ; | |
5110 | void *argp1 = 0 ; | |
5111 | int res1 = 0 ; | |
5112 | PyObject *swig_obj[1] ; | |
5113 | ||
5114 | if (!args) SWIG_fail; | |
5115 | swig_obj[0] = args; | |
5116 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 ); | |
5117 | if (!SWIG_IsOK(res1)) { | |
5118 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5119 | } | |
5120 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5121 | { | |
5122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5123 | delete arg1; | |
d14a1e28 | 5124 | |
0085ce49 RD |
5125 | wxPyEndAllowThreads(__tstate); |
5126 | if (PyErr_Occurred()) SWIG_fail; | |
5127 | } | |
5128 | resultobj = SWIG_Py_Void(); | |
5129 | return resultobj; | |
5130 | fail: | |
5131 | return NULL; | |
d14a1e28 RD |
5132 | } |
5133 | ||
5134 | ||
0085ce49 RD |
5135 | SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5136 | PyObject *resultobj = 0; | |
5137 | wxPen *arg1 = (wxPen *) 0 ; | |
5138 | int result; | |
5139 | void *argp1 = 0 ; | |
5140 | int res1 = 0 ; | |
5141 | PyObject *swig_obj[1] ; | |
5142 | ||
5143 | if (!args) SWIG_fail; | |
5144 | swig_obj[0] = args; | |
5145 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5146 | if (!SWIG_IsOK(res1)) { | |
5147 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5148 | } | |
5149 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5150 | { | |
5151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5152 | result = (int)(arg1)->GetCap(); | |
5153 | wxPyEndAllowThreads(__tstate); | |
5154 | if (PyErr_Occurred()) SWIG_fail; | |
5155 | } | |
5156 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5157 | return resultobj; | |
5158 | fail: | |
5159 | return NULL; | |
d14a1e28 RD |
5160 | } |
5161 | ||
5162 | ||
0085ce49 RD |
5163 | SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5164 | PyObject *resultobj = 0; | |
5165 | wxPen *arg1 = (wxPen *) 0 ; | |
5166 | wxColour result; | |
5167 | void *argp1 = 0 ; | |
5168 | int res1 = 0 ; | |
5169 | PyObject *swig_obj[1] ; | |
5170 | ||
5171 | if (!args) SWIG_fail; | |
5172 | swig_obj[0] = args; | |
5173 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5174 | if (!SWIG_IsOK(res1)) { | |
5175 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5176 | } | |
5177 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5178 | { | |
5179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5180 | result = (arg1)->GetColour(); | |
5181 | wxPyEndAllowThreads(__tstate); | |
5182 | if (PyErr_Occurred()) SWIG_fail; | |
5183 | } | |
5184 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
5185 | return resultobj; | |
5186 | fail: | |
5187 | return NULL; | |
d14a1e28 RD |
5188 | } |
5189 | ||
5190 | ||
0085ce49 RD |
5191 | SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5192 | PyObject *resultobj = 0; | |
5193 | wxPen *arg1 = (wxPen *) 0 ; | |
5194 | int result; | |
5195 | void *argp1 = 0 ; | |
5196 | int res1 = 0 ; | |
5197 | PyObject *swig_obj[1] ; | |
5198 | ||
5199 | if (!args) SWIG_fail; | |
5200 | swig_obj[0] = args; | |
5201 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5202 | if (!SWIG_IsOK(res1)) { | |
5203 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5204 | } | |
5205 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5206 | { | |
5207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5208 | result = (int)(arg1)->GetJoin(); | |
5209 | wxPyEndAllowThreads(__tstate); | |
5210 | if (PyErr_Occurred()) SWIG_fail; | |
5211 | } | |
5212 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5213 | return resultobj; | |
5214 | fail: | |
5215 | return NULL; | |
d14a1e28 RD |
5216 | } |
5217 | ||
5218 | ||
0085ce49 RD |
5219 | SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5220 | PyObject *resultobj = 0; | |
5221 | wxPen *arg1 = (wxPen *) 0 ; | |
5222 | int result; | |
5223 | void *argp1 = 0 ; | |
5224 | int res1 = 0 ; | |
5225 | PyObject *swig_obj[1] ; | |
5226 | ||
5227 | if (!args) SWIG_fail; | |
5228 | swig_obj[0] = args; | |
5229 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5230 | if (!SWIG_IsOK(res1)) { | |
5231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5232 | } | |
5233 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5234 | { | |
5235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5236 | result = (int)(arg1)->GetStyle(); | |
5237 | wxPyEndAllowThreads(__tstate); | |
5238 | if (PyErr_Occurred()) SWIG_fail; | |
5239 | } | |
5240 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5241 | return resultobj; | |
5242 | fail: | |
5243 | return NULL; | |
3adfb63b RD |
5244 | } |
5245 | ||
5246 | ||
0085ce49 RD |
5247 | SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5248 | PyObject *resultobj = 0; | |
5249 | wxPen *arg1 = (wxPen *) 0 ; | |
5250 | int result; | |
5251 | void *argp1 = 0 ; | |
5252 | int res1 = 0 ; | |
5253 | PyObject *swig_obj[1] ; | |
5254 | ||
5255 | if (!args) SWIG_fail; | |
5256 | swig_obj[0] = args; | |
5257 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5258 | if (!SWIG_IsOK(res1)) { | |
5259 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5260 | } | |
5261 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5262 | { | |
5263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5264 | result = (int)(arg1)->GetWidth(); | |
5265 | wxPyEndAllowThreads(__tstate); | |
5266 | if (PyErr_Occurred()) SWIG_fail; | |
5267 | } | |
5268 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5269 | return resultobj; | |
5270 | fail: | |
5271 | return NULL; | |
d14a1e28 RD |
5272 | } |
5273 | ||
5274 | ||
b39fe951 | 5275 | SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
5276 | PyObject *resultobj = 0; |
5277 | wxPen *arg1 = (wxPen *) 0 ; | |
5278 | bool result; | |
5279 | void *argp1 = 0 ; | |
5280 | int res1 = 0 ; | |
5281 | PyObject *swig_obj[1] ; | |
5282 | ||
5283 | if (!args) SWIG_fail; | |
5284 | swig_obj[0] = args; | |
5285 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5286 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 5287 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'"); |
0085ce49 RD |
5288 | } |
5289 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5290 | { | |
5291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 5292 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
5293 | wxPyEndAllowThreads(__tstate); |
5294 | if (PyErr_Occurred()) SWIG_fail; | |
5295 | } | |
5296 | { | |
5297 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5298 | } | |
5299 | return resultobj; | |
5300 | fail: | |
5301 | return NULL; | |
5302 | } | |
5303 | ||
5304 | ||
5305 | SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5306 | PyObject *resultobj = 0; | |
5307 | wxPen *arg1 = (wxPen *) 0 ; | |
5308 | int arg2 ; | |
5309 | void *argp1 = 0 ; | |
5310 | int res1 = 0 ; | |
5311 | int val2 ; | |
5312 | int ecode2 = 0 ; | |
5313 | PyObject * obj0 = 0 ; | |
5314 | PyObject * obj1 = 0 ; | |
5315 | char * kwnames[] = { | |
5316 | (char *) "self",(char *) "cap_style", NULL | |
5317 | }; | |
5318 | ||
5319 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail; | |
5320 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5321 | if (!SWIG_IsOK(res1)) { | |
5322 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5323 | } | |
5324 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5325 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5326 | if (!SWIG_IsOK(ecode2)) { | |
5327 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'"); | |
5328 | } | |
5329 | arg2 = static_cast< int >(val2); | |
5330 | { | |
5331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5332 | (arg1)->SetCap(arg2); | |
5333 | wxPyEndAllowThreads(__tstate); | |
5334 | if (PyErr_Occurred()) SWIG_fail; | |
5335 | } | |
5336 | resultobj = SWIG_Py_Void(); | |
5337 | return resultobj; | |
5338 | fail: | |
5339 | return NULL; | |
5340 | } | |
5341 | ||
5342 | ||
5343 | SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5344 | PyObject *resultobj = 0; | |
5345 | wxPen *arg1 = (wxPen *) 0 ; | |
5346 | wxColour *arg2 = 0 ; | |
5347 | void *argp1 = 0 ; | |
5348 | int res1 = 0 ; | |
5349 | wxColour temp2 ; | |
5350 | PyObject * obj0 = 0 ; | |
5351 | PyObject * obj1 = 0 ; | |
5352 | char * kwnames[] = { | |
5353 | (char *) "self",(char *) "colour", NULL | |
5354 | }; | |
5355 | ||
5356 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5357 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5358 | if (!SWIG_IsOK(res1)) { | |
5359 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5360 | } | |
5361 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5362 | { | |
5363 | arg2 = &temp2; | |
5364 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5365 | } | |
5366 | { | |
5367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5368 | (arg1)->SetColour(*arg2); | |
5369 | wxPyEndAllowThreads(__tstate); | |
5370 | if (PyErr_Occurred()) SWIG_fail; | |
5371 | } | |
5372 | resultobj = SWIG_Py_Void(); | |
5373 | return resultobj; | |
5374 | fail: | |
5375 | return NULL; | |
5376 | } | |
5377 | ||
5378 | ||
5379 | SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5380 | PyObject *resultobj = 0; | |
5381 | wxPen *arg1 = (wxPen *) 0 ; | |
5382 | int arg2 ; | |
5383 | void *argp1 = 0 ; | |
5384 | int res1 = 0 ; | |
5385 | int val2 ; | |
5386 | int ecode2 = 0 ; | |
5387 | PyObject * obj0 = 0 ; | |
5388 | PyObject * obj1 = 0 ; | |
5389 | char * kwnames[] = { | |
5390 | (char *) "self",(char *) "join_style", NULL | |
5391 | }; | |
5392 | ||
5393 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail; | |
5394 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5395 | if (!SWIG_IsOK(res1)) { | |
5396 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5397 | } | |
5398 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5399 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5400 | if (!SWIG_IsOK(ecode2)) { | |
5401 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'"); | |
5402 | } | |
5403 | arg2 = static_cast< int >(val2); | |
5404 | { | |
5405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5406 | (arg1)->SetJoin(arg2); | |
5407 | wxPyEndAllowThreads(__tstate); | |
5408 | if (PyErr_Occurred()) SWIG_fail; | |
5409 | } | |
5410 | resultobj = SWIG_Py_Void(); | |
5411 | return resultobj; | |
5412 | fail: | |
5413 | return NULL; | |
5414 | } | |
5415 | ||
5416 | ||
5417 | SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5418 | PyObject *resultobj = 0; | |
5419 | wxPen *arg1 = (wxPen *) 0 ; | |
5420 | int arg2 ; | |
5421 | void *argp1 = 0 ; | |
5422 | int res1 = 0 ; | |
5423 | int val2 ; | |
5424 | int ecode2 = 0 ; | |
5425 | PyObject * obj0 = 0 ; | |
5426 | PyObject * obj1 = 0 ; | |
5427 | char * kwnames[] = { | |
5428 | (char *) "self",(char *) "style", NULL | |
5429 | }; | |
5430 | ||
5431 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5432 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5433 | if (!SWIG_IsOK(res1)) { | |
5434 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5435 | } | |
5436 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5437 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5438 | if (!SWIG_IsOK(ecode2)) { | |
5439 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
5440 | } | |
5441 | arg2 = static_cast< int >(val2); | |
5442 | { | |
5443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5444 | (arg1)->SetStyle(arg2); | |
5445 | wxPyEndAllowThreads(__tstate); | |
5446 | if (PyErr_Occurred()) SWIG_fail; | |
5447 | } | |
5448 | resultobj = SWIG_Py_Void(); | |
5449 | return resultobj; | |
5450 | fail: | |
5451 | return NULL; | |
5452 | } | |
5453 | ||
5454 | ||
5455 | SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5456 | PyObject *resultobj = 0; | |
5457 | wxPen *arg1 = (wxPen *) 0 ; | |
5458 | int arg2 ; | |
5459 | void *argp1 = 0 ; | |
5460 | int res1 = 0 ; | |
5461 | int val2 ; | |
5462 | int ecode2 = 0 ; | |
5463 | PyObject * obj0 = 0 ; | |
5464 | PyObject * obj1 = 0 ; | |
5465 | char * kwnames[] = { | |
5466 | (char *) "self",(char *) "width", NULL | |
5467 | }; | |
5468 | ||
5469 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
5470 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5471 | if (!SWIG_IsOK(res1)) { | |
5472 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5473 | } | |
5474 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5475 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5476 | if (!SWIG_IsOK(ecode2)) { | |
5477 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
5478 | } | |
5479 | arg2 = static_cast< int >(val2); | |
5480 | { | |
5481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5482 | (arg1)->SetWidth(arg2); | |
5483 | wxPyEndAllowThreads(__tstate); | |
5484 | if (PyErr_Occurred()) SWIG_fail; | |
5485 | } | |
5486 | resultobj = SWIG_Py_Void(); | |
5487 | return resultobj; | |
5488 | fail: | |
5489 | return NULL; | |
5490 | } | |
5491 | ||
5492 | ||
5493 | SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5494 | PyObject *resultobj = 0; | |
5495 | wxPen *arg1 = (wxPen *) 0 ; | |
5496 | int arg2 ; | |
5497 | wxDash *arg3 = (wxDash *) 0 ; | |
5498 | void *argp1 = 0 ; | |
5499 | int res1 = 0 ; | |
5500 | PyObject * obj0 = 0 ; | |
5501 | PyObject * obj1 = 0 ; | |
5502 | char * kwnames[] = { | |
5503 | (char *) "self",(char *) "dashes", NULL | |
5504 | }; | |
5505 | ||
5506 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail; | |
5507 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5508 | if (!SWIG_IsOK(res1)) { | |
5509 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5510 | } | |
5511 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5512 | { | |
5513 | arg2 = PyList_Size(obj1); | |
5514 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
5515 | if (arg3 == NULL) SWIG_fail; | |
5516 | } | |
5517 | { | |
5518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5519 | (arg1)->SetDashes(arg2,arg3); | |
5520 | wxPyEndAllowThreads(__tstate); | |
5521 | if (PyErr_Occurred()) SWIG_fail; | |
5522 | } | |
5523 | resultobj = SWIG_Py_Void(); | |
5524 | { | |
5525 | if (arg3) delete [] arg3; | |
5526 | } | |
5527 | return resultobj; | |
5528 | fail: | |
5529 | { | |
5530 | if (arg3) delete [] arg3; | |
5531 | } | |
5532 | return NULL; | |
d14a1e28 RD |
5533 | } |
5534 | ||
5535 | ||
0085ce49 RD |
5536 | SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5537 | PyObject *resultobj = 0; | |
5538 | wxPen *arg1 = (wxPen *) 0 ; | |
5539 | PyObject *result = 0 ; | |
5540 | void *argp1 = 0 ; | |
5541 | int res1 = 0 ; | |
5542 | PyObject *swig_obj[1] ; | |
5543 | ||
5544 | if (!args) SWIG_fail; | |
5545 | swig_obj[0] = args; | |
5546 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5547 | if (!SWIG_IsOK(res1)) { | |
5548 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5549 | } | |
5550 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5551 | { | |
5552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5553 | result = (PyObject *)wxPen_GetDashes(arg1); | |
5554 | wxPyEndAllowThreads(__tstate); | |
5555 | if (PyErr_Occurred()) SWIG_fail; | |
5556 | } | |
5557 | resultobj = result; | |
5558 | return resultobj; | |
5559 | fail: | |
5560 | return NULL; | |
5561 | } | |
5562 | ||
5563 | ||
5564 | SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5565 | PyObject *resultobj = 0; | |
5566 | wxPen *arg1 = (wxPen *) 0 ; | |
5567 | PyObject *arg2 = (PyObject *) 0 ; | |
5568 | PyObject *arg3 = (PyObject *) 0 ; | |
5569 | void *argp1 = 0 ; | |
5570 | int res1 = 0 ; | |
5571 | PyObject * obj0 = 0 ; | |
5572 | PyObject * obj1 = 0 ; | |
5573 | PyObject * obj2 = 0 ; | |
5574 | char * kwnames[] = { | |
5575 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL | |
5576 | }; | |
5577 | ||
5578 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5579 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5580 | if (!SWIG_IsOK(res1)) { | |
5581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5582 | } | |
5583 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5584 | arg2 = obj1; | |
5585 | arg3 = obj2; | |
5586 | { | |
5587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5588 | wxPen__SetDashes(arg1,arg2,arg3); | |
5589 | wxPyEndAllowThreads(__tstate); | |
5590 | if (PyErr_Occurred()) SWIG_fail; | |
5591 | } | |
5592 | resultobj = SWIG_Py_Void(); | |
5593 | return resultobj; | |
5594 | fail: | |
5595 | return NULL; | |
d14a1e28 RD |
5596 | } |
5597 | ||
5598 | ||
0085ce49 RD |
5599 | SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5600 | PyObject *resultobj = 0; | |
5601 | wxPen *arg1 = (wxPen *) 0 ; | |
5602 | int result; | |
5603 | void *argp1 = 0 ; | |
5604 | int res1 = 0 ; | |
5605 | PyObject *swig_obj[1] ; | |
5606 | ||
5607 | if (!args) SWIG_fail; | |
5608 | swig_obj[0] = args; | |
5609 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5610 | if (!SWIG_IsOK(res1)) { | |
5611 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'"); | |
5612 | } | |
5613 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5614 | { | |
5615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5616 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
5617 | wxPyEndAllowThreads(__tstate); | |
5618 | if (PyErr_Occurred()) SWIG_fail; | |
5619 | } | |
5620 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5621 | return resultobj; | |
5622 | fail: | |
5623 | return NULL; | |
5624 | } | |
5625 | ||
5626 | ||
5627 | SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5628 | PyObject *resultobj = 0; | |
5629 | wxPen *arg1 = (wxPen *) 0 ; | |
5630 | wxPen *arg2 = (wxPen *) 0 ; | |
5631 | bool result; | |
5632 | void *argp1 = 0 ; | |
5633 | int res1 = 0 ; | |
5634 | void *argp2 = 0 ; | |
5635 | int res2 = 0 ; | |
5636 | PyObject * obj0 = 0 ; | |
5637 | PyObject * obj1 = 0 ; | |
5638 | char * kwnames[] = { | |
5639 | (char *) "self",(char *) "other", NULL | |
5640 | }; | |
5641 | ||
5642 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
5643 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5644 | if (!SWIG_IsOK(res1)) { | |
5645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5646 | } | |
5647 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5648 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5649 | if (!SWIG_IsOK(res2)) { | |
5650 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
5651 | } | |
5652 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
5653 | { | |
5654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5655 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); | |
5656 | wxPyEndAllowThreads(__tstate); | |
5657 | if (PyErr_Occurred()) SWIG_fail; | |
5658 | } | |
5659 | { | |
5660 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5661 | } | |
5662 | return resultobj; | |
5663 | fail: | |
5664 | return NULL; | |
5665 | } | |
5666 | ||
5667 | ||
5668 | SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5669 | PyObject *resultobj = 0; | |
5670 | wxPen *arg1 = (wxPen *) 0 ; | |
5671 | wxPen *arg2 = (wxPen *) 0 ; | |
5672 | bool result; | |
5673 | void *argp1 = 0 ; | |
5674 | int res1 = 0 ; | |
5675 | void *argp2 = 0 ; | |
5676 | int res2 = 0 ; | |
5677 | PyObject * obj0 = 0 ; | |
5678 | PyObject * obj1 = 0 ; | |
5679 | char * kwnames[] = { | |
5680 | (char *) "self",(char *) "other", NULL | |
5681 | }; | |
5682 | ||
5683 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
5684 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5685 | if (!SWIG_IsOK(res1)) { | |
5686 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5687 | } | |
5688 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5689 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5690 | if (!SWIG_IsOK(res2)) { | |
5691 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
5692 | } | |
5693 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
5694 | { | |
5695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5696 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); | |
5697 | wxPyEndAllowThreads(__tstate); | |
5698 | if (PyErr_Occurred()) SWIG_fail; | |
5699 | } | |
5700 | { | |
5701 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5702 | } | |
5703 | return resultobj; | |
5704 | fail: | |
5705 | return NULL; | |
d14a1e28 RD |
5706 | } |
5707 | ||
5708 | ||
0085ce49 RD |
5709 | SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5710 | PyObject *obj; | |
5711 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5712 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj)); | |
5713 | return SWIG_Py_Void(); | |
d14a1e28 RD |
5714 | } |
5715 | ||
0085ce49 RD |
5716 | SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5717 | return SWIG_Python_InitShadowInstance(args); | |
5718 | } | |
d14a1e28 | 5719 | |
0085ce49 RD |
5720 | SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5721 | PyObject *resultobj = 0; | |
5722 | wxColour *arg1 = 0 ; | |
5723 | int arg2 = (int) wxSOLID ; | |
5724 | wxBrush *result = 0 ; | |
5725 | wxColour temp1 ; | |
5726 | int val2 ; | |
5727 | int ecode2 = 0 ; | |
5728 | PyObject * obj0 = 0 ; | |
5729 | PyObject * obj1 = 0 ; | |
5730 | char * kwnames[] = { | |
5731 | (char *) "colour",(char *) "style", NULL | |
5732 | }; | |
5733 | ||
5734 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail; | |
5735 | { | |
5736 | arg1 = &temp1; | |
5737 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
5738 | } | |
5739 | if (obj1) { | |
5740 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5741 | if (!SWIG_IsOK(ecode2)) { | |
5742 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'"); | |
5743 | } | |
5744 | arg2 = static_cast< int >(val2); | |
5745 | } | |
5746 | { | |
5747 | if (!wxPyCheckForApp()) SWIG_fail; | |
5748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5749 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
5750 | wxPyEndAllowThreads(__tstate); | |
5751 | if (PyErr_Occurred()) SWIG_fail; | |
5752 | } | |
5753 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 ); | |
5754 | return resultobj; | |
5755 | fail: | |
5756 | return NULL; | |
5757 | } | |
5758 | ||
5759 | ||
5760 | SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5761 | PyObject *resultobj = 0; | |
5762 | wxBitmap *arg1 = 0 ; | |
5763 | wxBrush *result = 0 ; | |
5764 | void *argp1 = 0 ; | |
5765 | int res1 = 0 ; | |
5766 | PyObject * obj0 = 0 ; | |
5767 | char * kwnames[] = { | |
5768 | (char *) "stippleBitmap", NULL | |
5769 | }; | |
5770 | ||
5771 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail; | |
5772 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5773 | if (!SWIG_IsOK(res1)) { | |
5774 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5775 | } | |
5776 | if (!argp1) { | |
5777 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5778 | } | |
5779 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5780 | { | |
5781 | if (!wxPyCheckForApp()) SWIG_fail; | |
5782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5783 | result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1); | |
5784 | wxPyEndAllowThreads(__tstate); | |
5785 | if (PyErr_Occurred()) SWIG_fail; | |
5786 | } | |
5787 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 ); | |
5788 | return resultobj; | |
5789 | fail: | |
5790 | return NULL; | |
d14a1e28 RD |
5791 | } |
5792 | ||
5793 | ||
0085ce49 RD |
5794 | SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5795 | PyObject *resultobj = 0; | |
5796 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5797 | void *argp1 = 0 ; | |
5798 | int res1 = 0 ; | |
5799 | PyObject *swig_obj[1] ; | |
5800 | ||
5801 | if (!args) SWIG_fail; | |
5802 | swig_obj[0] = args; | |
5803 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 ); | |
5804 | if (!SWIG_IsOK(res1)) { | |
5805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5806 | } | |
5807 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5808 | { | |
5809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5810 | delete arg1; | |
d14a1e28 | 5811 | |
0085ce49 RD |
5812 | wxPyEndAllowThreads(__tstate); |
5813 | if (PyErr_Occurred()) SWIG_fail; | |
5814 | } | |
5815 | resultobj = SWIG_Py_Void(); | |
5816 | return resultobj; | |
5817 | fail: | |
5818 | return NULL; | |
5819 | } | |
5820 | ||
5821 | ||
5822 | SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5823 | PyObject *resultobj = 0; | |
5824 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5825 | wxColour *arg2 = 0 ; | |
5826 | void *argp1 = 0 ; | |
5827 | int res1 = 0 ; | |
5828 | wxColour temp2 ; | |
5829 | PyObject * obj0 = 0 ; | |
5830 | PyObject * obj1 = 0 ; | |
5831 | char * kwnames[] = { | |
5832 | (char *) "self",(char *) "col", NULL | |
5833 | }; | |
5834 | ||
5835 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5836 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5837 | if (!SWIG_IsOK(res1)) { | |
5838 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5839 | } | |
5840 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5841 | { | |
5842 | arg2 = &temp2; | |
5843 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5844 | } | |
5845 | { | |
5846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5847 | (arg1)->SetColour((wxColour const &)*arg2); | |
5848 | wxPyEndAllowThreads(__tstate); | |
5849 | if (PyErr_Occurred()) SWIG_fail; | |
5850 | } | |
5851 | resultobj = SWIG_Py_Void(); | |
5852 | return resultobj; | |
5853 | fail: | |
5854 | return NULL; | |
5855 | } | |
5856 | ||
5857 | ||
5858 | SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5859 | PyObject *resultobj = 0; | |
5860 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5861 | int arg2 ; | |
5862 | void *argp1 = 0 ; | |
5863 | int res1 = 0 ; | |
5864 | int val2 ; | |
5865 | int ecode2 = 0 ; | |
5866 | PyObject * obj0 = 0 ; | |
5867 | PyObject * obj1 = 0 ; | |
5868 | char * kwnames[] = { | |
5869 | (char *) "self",(char *) "style", NULL | |
5870 | }; | |
5871 | ||
5872 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5873 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5874 | if (!SWIG_IsOK(res1)) { | |
5875 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5876 | } | |
5877 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5878 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5879 | if (!SWIG_IsOK(ecode2)) { | |
5880 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
5881 | } | |
5882 | arg2 = static_cast< int >(val2); | |
5883 | { | |
5884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5885 | (arg1)->SetStyle(arg2); | |
5886 | wxPyEndAllowThreads(__tstate); | |
5887 | if (PyErr_Occurred()) SWIG_fail; | |
5888 | } | |
5889 | resultobj = SWIG_Py_Void(); | |
5890 | return resultobj; | |
5891 | fail: | |
5892 | return NULL; | |
5893 | } | |
5894 | ||
5895 | ||
5896 | SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5897 | PyObject *resultobj = 0; | |
5898 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5899 | wxBitmap *arg2 = 0 ; | |
5900 | void *argp1 = 0 ; | |
5901 | int res1 = 0 ; | |
5902 | void *argp2 = 0 ; | |
5903 | int res2 = 0 ; | |
5904 | PyObject * obj0 = 0 ; | |
5905 | PyObject * obj1 = 0 ; | |
5906 | char * kwnames[] = { | |
5907 | (char *) "self",(char *) "stipple", NULL | |
5908 | }; | |
5909 | ||
5910 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail; | |
5911 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5912 | if (!SWIG_IsOK(res1)) { | |
5913 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5914 | } | |
5915 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5916 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5917 | if (!SWIG_IsOK(res2)) { | |
5918 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5919 | } | |
5920 | if (!argp2) { | |
5921 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5922 | } | |
5923 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
5924 | { | |
5925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5926 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
5927 | wxPyEndAllowThreads(__tstate); | |
5928 | if (PyErr_Occurred()) SWIG_fail; | |
5929 | } | |
5930 | resultobj = SWIG_Py_Void(); | |
5931 | return resultobj; | |
5932 | fail: | |
5933 | return NULL; | |
d14a1e28 RD |
5934 | } |
5935 | ||
5936 | ||
0085ce49 RD |
5937 | SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5938 | PyObject *resultobj = 0; | |
5939 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5940 | wxColour result; | |
5941 | void *argp1 = 0 ; | |
5942 | int res1 = 0 ; | |
5943 | PyObject *swig_obj[1] ; | |
5944 | ||
5945 | if (!args) SWIG_fail; | |
5946 | swig_obj[0] = args; | |
5947 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5948 | if (!SWIG_IsOK(res1)) { | |
5949 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5950 | } | |
5951 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5952 | { | |
5953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5954 | result = ((wxBrush const *)arg1)->GetColour(); | |
5955 | wxPyEndAllowThreads(__tstate); | |
5956 | if (PyErr_Occurred()) SWIG_fail; | |
5957 | } | |
5958 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
5959 | return resultobj; | |
5960 | fail: | |
5961 | return NULL; | |
d14a1e28 RD |
5962 | } |
5963 | ||
5964 | ||
0085ce49 RD |
5965 | SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5966 | PyObject *resultobj = 0; | |
5967 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5968 | int result; | |
5969 | void *argp1 = 0 ; | |
5970 | int res1 = 0 ; | |
5971 | PyObject *swig_obj[1] ; | |
5972 | ||
5973 | if (!args) SWIG_fail; | |
5974 | swig_obj[0] = args; | |
5975 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5976 | if (!SWIG_IsOK(res1)) { | |
5977 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5978 | } | |
5979 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5980 | { | |
5981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5982 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
5983 | wxPyEndAllowThreads(__tstate); | |
5984 | if (PyErr_Occurred()) SWIG_fail; | |
5985 | } | |
5986 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5987 | return resultobj; | |
5988 | fail: | |
5989 | return NULL; | |
d14a1e28 RD |
5990 | } |
5991 | ||
5992 | ||
0085ce49 RD |
5993 | SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5994 | PyObject *resultobj = 0; | |
5995 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5996 | wxBitmap *result = 0 ; | |
5997 | void *argp1 = 0 ; | |
5998 | int res1 = 0 ; | |
5999 | PyObject *swig_obj[1] ; | |
6000 | ||
6001 | if (!args) SWIG_fail; | |
6002 | swig_obj[0] = args; | |
6003 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
6004 | if (!SWIG_IsOK(res1)) { | |
6005 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
6006 | } | |
6007 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6008 | { | |
6009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6010 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
6011 | wxPyEndAllowThreads(__tstate); | |
6012 | if (PyErr_Occurred()) SWIG_fail; | |
6013 | } | |
6014 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6015 | return resultobj; | |
6016 | fail: | |
6017 | return NULL; | |
d14a1e28 RD |
6018 | } |
6019 | ||
6020 | ||
0085ce49 RD |
6021 | SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6022 | PyObject *resultobj = 0; | |
6023 | wxBrush *arg1 = (wxBrush *) 0 ; | |
6024 | bool result; | |
6025 | void *argp1 = 0 ; | |
6026 | int res1 = 0 ; | |
6027 | PyObject *swig_obj[1] ; | |
6028 | ||
6029 | if (!args) SWIG_fail; | |
6030 | swig_obj[0] = args; | |
6031 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
6032 | if (!SWIG_IsOK(res1)) { | |
6033 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
6034 | } | |
6035 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6036 | { | |
6037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6038 | result = (bool)((wxBrush const *)arg1)->IsHatch(); | |
6039 | wxPyEndAllowThreads(__tstate); | |
6040 | if (PyErr_Occurred()) SWIG_fail; | |
6041 | } | |
6042 | { | |
6043 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6044 | } | |
6045 | return resultobj; | |
6046 | fail: | |
6047 | return NULL; | |
f78cc896 RD |
6048 | } |
6049 | ||
6050 | ||
b39fe951 | 6051 | SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
6052 | PyObject *resultobj = 0; |
6053 | wxBrush *arg1 = (wxBrush *) 0 ; | |
6054 | bool result; | |
6055 | void *argp1 = 0 ; | |
6056 | int res1 = 0 ; | |
6057 | PyObject *swig_obj[1] ; | |
6058 | ||
6059 | if (!args) SWIG_fail; | |
6060 | swig_obj[0] = args; | |
6061 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
6062 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 6063 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'"); |
0085ce49 RD |
6064 | } |
6065 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6066 | { | |
6067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 6068 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
6069 | wxPyEndAllowThreads(__tstate); |
6070 | if (PyErr_Occurred()) SWIG_fail; | |
6071 | } | |
6072 | { | |
6073 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6074 | } | |
6075 | return resultobj; | |
6076 | fail: | |
6077 | return NULL; | |
d14a1e28 RD |
6078 | } |
6079 | ||
6080 | ||
0085ce49 RD |
6081 | SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6082 | PyObject *obj; | |
6083 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6084 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj)); | |
6085 | return SWIG_Py_Void(); | |
d14a1e28 RD |
6086 | } |
6087 | ||
0085ce49 RD |
6088 | SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6089 | return SWIG_Python_InitShadowInstance(args); | |
6090 | } | |
d14a1e28 | 6091 | |
0085ce49 RD |
6092 | SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6093 | PyObject *resultobj = 0; | |
6094 | wxString *arg1 = 0 ; | |
6095 | wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ; | |
6096 | wxBitmap *result = 0 ; | |
6097 | bool temp1 = false ; | |
6098 | int val2 ; | |
6099 | int ecode2 = 0 ; | |
6100 | PyObject * obj0 = 0 ; | |
6101 | PyObject * obj1 = 0 ; | |
6102 | char * kwnames[] = { | |
6103 | (char *) "name",(char *) "type", NULL | |
6104 | }; | |
6105 | ||
6106 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
6107 | { | |
6108 | arg1 = wxString_in_helper(obj0); | |
6109 | if (arg1 == NULL) SWIG_fail; | |
6110 | temp1 = true; | |
6111 | } | |
6112 | if (obj1) { | |
6113 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6114 | if (!SWIG_IsOK(ecode2)) { | |
6115 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
6116 | } | |
6117 | arg2 = static_cast< wxBitmapType >(val2); | |
6118 | } | |
6119 | { | |
6120 | if (!wxPyCheckForApp()) SWIG_fail; | |
6121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6122 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2); | |
6123 | wxPyEndAllowThreads(__tstate); | |
6124 | if (PyErr_Occurred()) SWIG_fail; | |
6125 | } | |
6126 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 ); | |
6127 | { | |
6128 | if (temp1) | |
6129 | delete arg1; | |
6130 | } | |
6131 | return resultobj; | |
6132 | fail: | |
6133 | { | |
6134 | if (temp1) | |
6135 | delete arg1; | |
6136 | } | |
6137 | return NULL; | |
d14a1e28 RD |
6138 | } |
6139 | ||
6140 | ||
0085ce49 RD |
6141 | SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6142 | PyObject *resultobj = 0; | |
6143 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6144 | void *argp1 = 0 ; | |
6145 | int res1 = 0 ; | |
6146 | PyObject *swig_obj[1] ; | |
6147 | ||
6148 | if (!args) SWIG_fail; | |
6149 | swig_obj[0] = args; | |
6150 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 ); | |
6151 | if (!SWIG_IsOK(res1)) { | |
6152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6153 | } | |
6154 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6155 | { | |
0085ce49 | 6156 | delete arg1; |
66c033b4 | 6157 | |
0085ce49 RD |
6158 | if (PyErr_Occurred()) SWIG_fail; |
6159 | } | |
6160 | resultobj = SWIG_Py_Void(); | |
6161 | return resultobj; | |
6162 | fail: | |
6163 | return NULL; | |
6164 | } | |
6165 | ||
6166 | ||
6167 | SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6168 | PyObject *resultobj = 0; | |
6169 | int arg1 ; | |
6170 | int arg2 ; | |
6171 | int arg3 = (int) -1 ; | |
6172 | wxBitmap *result = 0 ; | |
6173 | int val1 ; | |
6174 | int ecode1 = 0 ; | |
6175 | int val2 ; | |
6176 | int ecode2 = 0 ; | |
6177 | int val3 ; | |
6178 | int ecode3 = 0 ; | |
6179 | PyObject * obj0 = 0 ; | |
6180 | PyObject * obj1 = 0 ; | |
6181 | PyObject * obj2 = 0 ; | |
6182 | char * kwnames[] = { | |
6183 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
6184 | }; | |
6185 | ||
6186 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6187 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
6188 | if (!SWIG_IsOK(ecode1)) { | |
6189 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'"); | |
6190 | } | |
6191 | arg1 = static_cast< int >(val1); | |
6192 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6193 | if (!SWIG_IsOK(ecode2)) { | |
6194 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'"); | |
6195 | } | |
6196 | arg2 = static_cast< int >(val2); | |
6197 | if (obj2) { | |
6198 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6199 | if (!SWIG_IsOK(ecode3)) { | |
6200 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'"); | |
6201 | } | |
6202 | arg3 = static_cast< int >(val3); | |
6203 | } | |
6204 | { | |
6205 | if (!wxPyCheckForApp()) SWIG_fail; | |
6206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6207 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
6208 | wxPyEndAllowThreads(__tstate); | |
6209 | if (PyErr_Occurred()) SWIG_fail; | |
6210 | } | |
6211 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6212 | return resultobj; | |
6213 | fail: | |
6214 | return NULL; | |
6215 | } | |
6216 | ||
6217 | ||
6218 | SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6219 | PyObject *resultobj = 0; | |
6220 | wxIcon *arg1 = 0 ; | |
6221 | wxBitmap *result = 0 ; | |
6222 | void *argp1 = 0 ; | |
6223 | int res1 = 0 ; | |
6224 | PyObject * obj0 = 0 ; | |
6225 | char * kwnames[] = { | |
6226 | (char *) "icon", NULL | |
6227 | }; | |
6228 | ||
6229 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail; | |
6230 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
6231 | if (!SWIG_IsOK(res1)) { | |
6232 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
6233 | } | |
6234 | if (!argp1) { | |
6235 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
6236 | } | |
6237 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6238 | { | |
6239 | if (!wxPyCheckForApp()) SWIG_fail; | |
6240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6241 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
6242 | wxPyEndAllowThreads(__tstate); | |
6243 | if (PyErr_Occurred()) SWIG_fail; | |
6244 | } | |
6245 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6246 | return resultobj; | |
6247 | fail: | |
6248 | return NULL; | |
6249 | } | |
6250 | ||
6251 | ||
6252 | SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6253 | PyObject *resultobj = 0; | |
6254 | wxImage *arg1 = 0 ; | |
6255 | int arg2 = (int) -1 ; | |
6256 | wxBitmap *result = 0 ; | |
6257 | void *argp1 = 0 ; | |
6258 | int res1 = 0 ; | |
6259 | int val2 ; | |
6260 | int ecode2 = 0 ; | |
6261 | PyObject * obj0 = 0 ; | |
6262 | PyObject * obj1 = 0 ; | |
6263 | char * kwnames[] = { | |
6264 | (char *) "image",(char *) "depth", NULL | |
6265 | }; | |
6266 | ||
6267 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
6268 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
6269 | if (!SWIG_IsOK(res1)) { | |
6270 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
6271 | } | |
6272 | if (!argp1) { | |
6273 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
6274 | } | |
6275 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
6276 | if (obj1) { | |
6277 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6278 | if (!SWIG_IsOK(ecode2)) { | |
6279 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'"); | |
6280 | } | |
6281 | arg2 = static_cast< int >(val2); | |
6282 | } | |
6283 | { | |
6284 | if (!wxPyCheckForApp()) SWIG_fail; | |
6285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6286 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
6287 | wxPyEndAllowThreads(__tstate); | |
6288 | if (PyErr_Occurred()) SWIG_fail; | |
6289 | } | |
6290 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6291 | return resultobj; | |
6292 | fail: | |
6293 | return NULL; | |
66c033b4 RD |
6294 | } |
6295 | ||
6296 | ||
0085ce49 RD |
6297 | SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6298 | PyObject *resultobj = 0; | |
6299 | PyObject *arg1 = (PyObject *) 0 ; | |
6300 | wxBitmap *result = 0 ; | |
6301 | PyObject * obj0 = 0 ; | |
6302 | char * kwnames[] = { | |
6303 | (char *) "listOfStrings", NULL | |
6304 | }; | |
6305 | ||
6306 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail; | |
6307 | arg1 = obj0; | |
6308 | { | |
6309 | if (!wxPyCheckForApp()) SWIG_fail; | |
6310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6311 | result = (wxBitmap *)new_wxBitmap(arg1); | |
6312 | wxPyEndAllowThreads(__tstate); | |
6313 | if (PyErr_Occurred()) SWIG_fail; | |
6314 | } | |
6315 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6316 | return resultobj; | |
6317 | fail: | |
6318 | return NULL; | |
6319 | } | |
6320 | ||
6321 | ||
6322 | SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6323 | PyObject *resultobj = 0; | |
6324 | PyObject *arg1 = (PyObject *) 0 ; | |
6325 | int arg2 ; | |
6326 | int arg3 ; | |
6327 | int arg4 = (int) 1 ; | |
6328 | wxBitmap *result = 0 ; | |
6329 | int val2 ; | |
6330 | int ecode2 = 0 ; | |
6331 | int val3 ; | |
6332 | int ecode3 = 0 ; | |
6333 | int val4 ; | |
6334 | int ecode4 = 0 ; | |
6335 | PyObject * obj0 = 0 ; | |
6336 | PyObject * obj1 = 0 ; | |
6337 | PyObject * obj2 = 0 ; | |
6338 | PyObject * obj3 = 0 ; | |
6339 | char * kwnames[] = { | |
6340 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
6341 | }; | |
6342 | ||
6343 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6344 | arg1 = obj0; | |
6345 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6346 | if (!SWIG_IsOK(ecode2)) { | |
6347 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'"); | |
6348 | } | |
6349 | arg2 = static_cast< int >(val2); | |
6350 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6351 | if (!SWIG_IsOK(ecode3)) { | |
6352 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'"); | |
6353 | } | |
6354 | arg3 = static_cast< int >(val3); | |
6355 | if (obj3) { | |
6356 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6357 | if (!SWIG_IsOK(ecode4)) { | |
6358 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'"); | |
6359 | } | |
6360 | arg4 = static_cast< int >(val4); | |
6361 | } | |
6362 | { | |
6363 | if (!wxPyCheckForApp()) SWIG_fail; | |
6364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6365 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
6366 | wxPyEndAllowThreads(__tstate); | |
6367 | if (PyErr_Occurred()) SWIG_fail; | |
6368 | } | |
6369 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6370 | return resultobj; | |
6371 | fail: | |
6372 | return NULL; | |
d14a1e28 RD |
6373 | } |
6374 | ||
6375 | ||
b39fe951 | 6376 | SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
6377 | PyObject *resultobj = 0; |
6378 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6379 | bool result; | |
6380 | void *argp1 = 0 ; | |
6381 | int res1 = 0 ; | |
6382 | PyObject *swig_obj[1] ; | |
6383 | ||
6384 | if (!args) SWIG_fail; | |
6385 | swig_obj[0] = args; | |
6386 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6387 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 6388 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'"); |
0085ce49 RD |
6389 | } |
6390 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6391 | { | |
b39fe951 | 6392 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
6393 | if (PyErr_Occurred()) SWIG_fail; |
6394 | } | |
6395 | { | |
6396 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6397 | } | |
6398 | return resultobj; | |
6399 | fail: | |
6400 | return NULL; | |
d14a1e28 RD |
6401 | } |
6402 | ||
6403 | ||
0085ce49 RD |
6404 | SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6405 | PyObject *resultobj = 0; | |
6406 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6407 | int result; | |
6408 | void *argp1 = 0 ; | |
6409 | int res1 = 0 ; | |
6410 | PyObject *swig_obj[1] ; | |
6411 | ||
6412 | if (!args) SWIG_fail; | |
6413 | swig_obj[0] = args; | |
6414 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6415 | if (!SWIG_IsOK(res1)) { | |
6416 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6417 | } | |
6418 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6419 | { | |
0085ce49 | 6420 | result = (int)(arg1)->GetWidth(); |
0085ce49 RD |
6421 | if (PyErr_Occurred()) SWIG_fail; |
6422 | } | |
6423 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6424 | return resultobj; | |
6425 | fail: | |
6426 | return NULL; | |
d14a1e28 RD |
6427 | } |
6428 | ||
6429 | ||
0085ce49 RD |
6430 | SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6431 | PyObject *resultobj = 0; | |
6432 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6433 | int result; | |
6434 | void *argp1 = 0 ; | |
6435 | int res1 = 0 ; | |
6436 | PyObject *swig_obj[1] ; | |
6437 | ||
6438 | if (!args) SWIG_fail; | |
6439 | swig_obj[0] = args; | |
6440 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6441 | if (!SWIG_IsOK(res1)) { | |
6442 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6443 | } | |
6444 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6445 | { | |
0085ce49 | 6446 | result = (int)(arg1)->GetHeight(); |
0085ce49 RD |
6447 | if (PyErr_Occurred()) SWIG_fail; |
6448 | } | |
6449 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6450 | return resultobj; | |
6451 | fail: | |
6452 | return NULL; | |
d14a1e28 RD |
6453 | } |
6454 | ||
6455 | ||
0085ce49 RD |
6456 | SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6457 | PyObject *resultobj = 0; | |
6458 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6459 | int result; | |
6460 | void *argp1 = 0 ; | |
6461 | int res1 = 0 ; | |
6462 | PyObject *swig_obj[1] ; | |
6463 | ||
6464 | if (!args) SWIG_fail; | |
6465 | swig_obj[0] = args; | |
6466 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6467 | if (!SWIG_IsOK(res1)) { | |
6468 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6469 | } | |
6470 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6471 | { | |
0085ce49 | 6472 | result = (int)(arg1)->GetDepth(); |
0085ce49 RD |
6473 | if (PyErr_Occurred()) SWIG_fail; |
6474 | } | |
6475 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6476 | return resultobj; | |
6477 | fail: | |
6478 | return NULL; | |
d14a1e28 RD |
6479 | } |
6480 | ||
6481 | ||
0085ce49 RD |
6482 | SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6483 | PyObject *resultobj = 0; | |
6484 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6485 | wxSize result; | |
6486 | void *argp1 = 0 ; | |
6487 | int res1 = 0 ; | |
6488 | PyObject *swig_obj[1] ; | |
6489 | ||
6490 | if (!args) SWIG_fail; | |
6491 | swig_obj[0] = args; | |
6492 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6493 | if (!SWIG_IsOK(res1)) { | |
6494 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6495 | } | |
6496 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6497 | { | |
0085ce49 | 6498 | result = wxBitmap_GetSize(arg1); |
0085ce49 RD |
6499 | if (PyErr_Occurred()) SWIG_fail; |
6500 | } | |
6501 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
6502 | return resultobj; | |
6503 | fail: | |
6504 | return NULL; | |
d14a1e28 RD |
6505 | } |
6506 | ||
6507 | ||
0085ce49 RD |
6508 | SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6509 | PyObject *resultobj = 0; | |
6510 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6511 | SwigValueWrapper<wxImage > result; | |
6512 | void *argp1 = 0 ; | |
6513 | int res1 = 0 ; | |
6514 | PyObject *swig_obj[1] ; | |
6515 | ||
6516 | if (!args) SWIG_fail; | |
6517 | swig_obj[0] = args; | |
6518 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6519 | if (!SWIG_IsOK(res1)) { | |
6520 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6521 | } | |
6522 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6523 | { | |
0085ce49 | 6524 | result = ((wxBitmap const *)arg1)->ConvertToImage(); |
0085ce49 RD |
6525 | if (PyErr_Occurred()) SWIG_fail; |
6526 | } | |
6527 | resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 ); | |
6528 | return resultobj; | |
6529 | fail: | |
6530 | return NULL; | |
d14a1e28 RD |
6531 | } |
6532 | ||
6533 | ||
0085ce49 RD |
6534 | SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6535 | PyObject *resultobj = 0; | |
6536 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6537 | wxMask *result = 0 ; | |
6538 | void *argp1 = 0 ; | |
6539 | int res1 = 0 ; | |
6540 | PyObject *swig_obj[1] ; | |
6541 | ||
6542 | if (!args) SWIG_fail; | |
6543 | swig_obj[0] = args; | |
6544 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6545 | if (!SWIG_IsOK(res1)) { | |
6546 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6547 | } | |
6548 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6549 | { | |
0085ce49 | 6550 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); |
0085ce49 RD |
6551 | if (PyErr_Occurred()) SWIG_fail; |
6552 | } | |
6553 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 ); | |
6554 | return resultobj; | |
6555 | fail: | |
6556 | return NULL; | |
6557 | } | |
6558 | ||
6559 | ||
6560 | SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6561 | PyObject *resultobj = 0; | |
6562 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6563 | wxMask *arg2 = (wxMask *) 0 ; | |
6564 | void *argp1 = 0 ; | |
6565 | int res1 = 0 ; | |
6566 | int res2 = 0 ; | |
6567 | PyObject * obj0 = 0 ; | |
6568 | PyObject * obj1 = 0 ; | |
6569 | char * kwnames[] = { | |
6570 | (char *) "self",(char *) "mask", NULL | |
6571 | }; | |
6572 | ||
6573 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
6574 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6575 | if (!SWIG_IsOK(res1)) { | |
6576 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6577 | } | |
6578 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6579 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
6580 | if (!SWIG_IsOK(res2)) { | |
6581 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'"); | |
6582 | } | |
6583 | { | |
0085ce49 | 6584 | (arg1)->SetMask(arg2); |
0085ce49 RD |
6585 | if (PyErr_Occurred()) SWIG_fail; |
6586 | } | |
6587 | resultobj = SWIG_Py_Void(); | |
6588 | return resultobj; | |
6589 | fail: | |
6590 | return NULL; | |
6591 | } | |
6592 | ||
6593 | ||
6594 | SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6595 | PyObject *resultobj = 0; | |
6596 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6597 | wxColour *arg2 = 0 ; | |
6598 | void *argp1 = 0 ; | |
6599 | int res1 = 0 ; | |
6600 | wxColour temp2 ; | |
6601 | PyObject * obj0 = 0 ; | |
6602 | PyObject * obj1 = 0 ; | |
6603 | char * kwnames[] = { | |
6604 | (char *) "self",(char *) "colour", NULL | |
6605 | }; | |
6606 | ||
6607 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
6608 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6609 | if (!SWIG_IsOK(res1)) { | |
6610 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6611 | } | |
6612 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6613 | { | |
6614 | arg2 = &temp2; | |
6615 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6616 | } | |
6617 | { | |
0085ce49 | 6618 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); |
0085ce49 RD |
6619 | if (PyErr_Occurred()) SWIG_fail; |
6620 | } | |
6621 | resultobj = SWIG_Py_Void(); | |
6622 | return resultobj; | |
6623 | fail: | |
6624 | return NULL; | |
6625 | } | |
6626 | ||
6627 | ||
6628 | SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6629 | PyObject *resultobj = 0; | |
6630 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6631 | wxRect *arg2 = 0 ; | |
6632 | SwigValueWrapper<wxBitmap > result; | |
6633 | void *argp1 = 0 ; | |
6634 | int res1 = 0 ; | |
6635 | wxRect temp2 ; | |
6636 | PyObject * obj0 = 0 ; | |
6637 | PyObject * obj1 = 0 ; | |
6638 | char * kwnames[] = { | |
6639 | (char *) "self",(char *) "rect", NULL | |
6640 | }; | |
6641 | ||
6642 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
6643 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6644 | if (!SWIG_IsOK(res1)) { | |
6645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6646 | } | |
6647 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6648 | { | |
6649 | arg2 = &temp2; | |
6650 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6651 | } | |
6652 | { | |
0085ce49 | 6653 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); |
0085ce49 RD |
6654 | if (PyErr_Occurred()) SWIG_fail; |
6655 | } | |
6656 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6657 | return resultobj; | |
6658 | fail: | |
6659 | return NULL; | |
6660 | } | |
6661 | ||
6662 | ||
6663 | SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6664 | PyObject *resultobj = 0; | |
6665 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6666 | wxString *arg2 = 0 ; | |
6667 | wxBitmapType arg3 ; | |
6668 | wxPalette *arg4 = (wxPalette *) NULL ; | |
6669 | bool result; | |
6670 | void *argp1 = 0 ; | |
6671 | int res1 = 0 ; | |
6672 | bool temp2 = false ; | |
6673 | int val3 ; | |
6674 | int ecode3 = 0 ; | |
6675 | void *argp4 = 0 ; | |
6676 | int res4 = 0 ; | |
6677 | PyObject * obj0 = 0 ; | |
6678 | PyObject * obj1 = 0 ; | |
6679 | PyObject * obj2 = 0 ; | |
6680 | PyObject * obj3 = 0 ; | |
6681 | char * kwnames[] = { | |
6682 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
6683 | }; | |
6684 | ||
6685 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6686 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6687 | if (!SWIG_IsOK(res1)) { | |
6688 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6689 | } | |
6690 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6691 | { | |
6692 | arg2 = wxString_in_helper(obj1); | |
6693 | if (arg2 == NULL) SWIG_fail; | |
6694 | temp2 = true; | |
6695 | } | |
6696 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6697 | if (!SWIG_IsOK(ecode3)) { | |
6698 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6699 | } | |
6700 | arg3 = static_cast< wxBitmapType >(val3); | |
6701 | if (obj3) { | |
6702 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6703 | if (!SWIG_IsOK(res4)) { | |
6704 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'"); | |
d04418a7 | 6705 | } |
0085ce49 RD |
6706 | arg4 = reinterpret_cast< wxPalette * >(argp4); |
6707 | } | |
6708 | { | |
0085ce49 | 6709 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4); |
0085ce49 RD |
6710 | if (PyErr_Occurred()) SWIG_fail; |
6711 | } | |
6712 | { | |
6713 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6714 | } | |
6715 | { | |
6716 | if (temp2) | |
6717 | delete arg2; | |
6718 | } | |
6719 | return resultobj; | |
6720 | fail: | |
6721 | { | |
6722 | if (temp2) | |
6723 | delete arg2; | |
6724 | } | |
6725 | return NULL; | |
6726 | } | |
6727 | ||
6728 | ||
6729 | SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6730 | PyObject *resultobj = 0; | |
6731 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6732 | wxString *arg2 = 0 ; | |
6733 | wxBitmapType arg3 ; | |
6734 | bool result; | |
6735 | void *argp1 = 0 ; | |
6736 | int res1 = 0 ; | |
6737 | bool temp2 = false ; | |
6738 | int val3 ; | |
6739 | int ecode3 = 0 ; | |
6740 | PyObject * obj0 = 0 ; | |
6741 | PyObject * obj1 = 0 ; | |
6742 | PyObject * obj2 = 0 ; | |
6743 | char * kwnames[] = { | |
6744 | (char *) "self",(char *) "name",(char *) "type", NULL | |
6745 | }; | |
6746 | ||
6747 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6748 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6749 | if (!SWIG_IsOK(res1)) { | |
6750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6751 | } | |
6752 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6753 | { | |
6754 | arg2 = wxString_in_helper(obj1); | |
6755 | if (arg2 == NULL) SWIG_fail; | |
6756 | temp2 = true; | |
6757 | } | |
6758 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6759 | if (!SWIG_IsOK(ecode3)) { | |
6760 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6761 | } | |
6762 | arg3 = static_cast< wxBitmapType >(val3); | |
6763 | { | |
0085ce49 | 6764 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); |
0085ce49 RD |
6765 | if (PyErr_Occurred()) SWIG_fail; |
6766 | } | |
6767 | { | |
6768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6769 | } | |
6770 | { | |
6771 | if (temp2) | |
6772 | delete arg2; | |
6773 | } | |
6774 | return resultobj; | |
6775 | fail: | |
6776 | { | |
6777 | if (temp2) | |
6778 | delete arg2; | |
6779 | } | |
6780 | return NULL; | |
d04418a7 RD |
6781 | } |
6782 | ||
6783 | ||
0085ce49 RD |
6784 | SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6785 | PyObject *resultobj = 0; | |
6786 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6787 | wxPalette *result = 0 ; | |
6788 | void *argp1 = 0 ; | |
6789 | int res1 = 0 ; | |
6790 | PyObject *swig_obj[1] ; | |
6791 | ||
6792 | if (!args) SWIG_fail; | |
6793 | swig_obj[0] = args; | |
6794 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6795 | if (!SWIG_IsOK(res1)) { | |
6796 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6797 | } | |
6798 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6799 | { | |
0085ce49 | 6800 | result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette(); |
0085ce49 RD |
6801 | if (PyErr_Occurred()) SWIG_fail; |
6802 | } | |
6803 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6804 | return resultobj; | |
6805 | fail: | |
6806 | return NULL; | |
6807 | } | |
6808 | ||
6809 | ||
6810 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6811 | PyObject *resultobj = 0; | |
6812 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6813 | wxIcon *arg2 = 0 ; | |
6814 | bool result; | |
6815 | void *argp1 = 0 ; | |
6816 | int res1 = 0 ; | |
6817 | void *argp2 = 0 ; | |
6818 | int res2 = 0 ; | |
6819 | PyObject * obj0 = 0 ; | |
6820 | PyObject * obj1 = 0 ; | |
6821 | char * kwnames[] = { | |
6822 | (char *) "self",(char *) "icon", NULL | |
6823 | }; | |
6824 | ||
6825 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
6826 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6827 | if (!SWIG_IsOK(res1)) { | |
6828 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6829 | } | |
6830 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6831 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
6832 | if (!SWIG_IsOK(res2)) { | |
6833 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6834 | } | |
6835 | if (!argp2) { | |
6836 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6837 | } | |
6838 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
6839 | { | |
0085ce49 | 6840 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); |
0085ce49 RD |
6841 | if (PyErr_Occurred()) SWIG_fail; |
6842 | } | |
6843 | { | |
6844 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6845 | } | |
6846 | return resultobj; | |
6847 | fail: | |
6848 | return NULL; | |
6849 | } | |
6850 | ||
6851 | ||
6852 | SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6853 | PyObject *resultobj = 0; | |
6854 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6855 | int arg2 ; | |
6856 | void *argp1 = 0 ; | |
6857 | int res1 = 0 ; | |
6858 | int val2 ; | |
6859 | int ecode2 = 0 ; | |
6860 | PyObject * obj0 = 0 ; | |
6861 | PyObject * obj1 = 0 ; | |
6862 | char * kwnames[] = { | |
6863 | (char *) "self",(char *) "height", NULL | |
6864 | }; | |
6865 | ||
6866 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
6867 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6868 | if (!SWIG_IsOK(res1)) { | |
6869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6870 | } | |
6871 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6872 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6873 | if (!SWIG_IsOK(ecode2)) { | |
6874 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
6875 | } | |
6876 | arg2 = static_cast< int >(val2); | |
6877 | { | |
0085ce49 | 6878 | (arg1)->SetHeight(arg2); |
0085ce49 RD |
6879 | if (PyErr_Occurred()) SWIG_fail; |
6880 | } | |
6881 | resultobj = SWIG_Py_Void(); | |
6882 | return resultobj; | |
6883 | fail: | |
6884 | return NULL; | |
6885 | } | |
6886 | ||
6887 | ||
6888 | SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6889 | PyObject *resultobj = 0; | |
6890 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6891 | int arg2 ; | |
6892 | void *argp1 = 0 ; | |
6893 | int res1 = 0 ; | |
6894 | int val2 ; | |
6895 | int ecode2 = 0 ; | |
6896 | PyObject * obj0 = 0 ; | |
6897 | PyObject * obj1 = 0 ; | |
6898 | char * kwnames[] = { | |
6899 | (char *) "self",(char *) "width", NULL | |
6900 | }; | |
6901 | ||
6902 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
6903 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6904 | if (!SWIG_IsOK(res1)) { | |
6905 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6906 | } | |
6907 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6908 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6909 | if (!SWIG_IsOK(ecode2)) { | |
6910 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
6911 | } | |
6912 | arg2 = static_cast< int >(val2); | |
6913 | { | |
0085ce49 | 6914 | (arg1)->SetWidth(arg2); |
0085ce49 RD |
6915 | if (PyErr_Occurred()) SWIG_fail; |
6916 | } | |
6917 | resultobj = SWIG_Py_Void(); | |
6918 | return resultobj; | |
6919 | fail: | |
6920 | return NULL; | |
6921 | } | |
6922 | ||
6923 | ||
6924 | SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6925 | PyObject *resultobj = 0; | |
6926 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6927 | int arg2 ; | |
6928 | void *argp1 = 0 ; | |
6929 | int res1 = 0 ; | |
6930 | int val2 ; | |
6931 | int ecode2 = 0 ; | |
6932 | PyObject * obj0 = 0 ; | |
6933 | PyObject * obj1 = 0 ; | |
6934 | char * kwnames[] = { | |
6935 | (char *) "self",(char *) "depth", NULL | |
6936 | }; | |
6937 | ||
6938 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
6939 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6940 | if (!SWIG_IsOK(res1)) { | |
6941 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6942 | } | |
6943 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6944 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6945 | if (!SWIG_IsOK(ecode2)) { | |
6946 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
6947 | } | |
6948 | arg2 = static_cast< int >(val2); | |
6949 | { | |
0085ce49 | 6950 | (arg1)->SetDepth(arg2); |
0085ce49 RD |
6951 | if (PyErr_Occurred()) SWIG_fail; |
6952 | } | |
6953 | resultobj = SWIG_Py_Void(); | |
6954 | return resultobj; | |
6955 | fail: | |
6956 | return NULL; | |
6957 | } | |
6958 | ||
6959 | ||
6960 | SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6961 | PyObject *resultobj = 0; | |
6962 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6963 | wxSize *arg2 = 0 ; | |
6964 | void *argp1 = 0 ; | |
6965 | int res1 = 0 ; | |
6966 | wxSize temp2 ; | |
6967 | PyObject * obj0 = 0 ; | |
6968 | PyObject * obj1 = 0 ; | |
6969 | char * kwnames[] = { | |
6970 | (char *) "self",(char *) "size", NULL | |
6971 | }; | |
6972 | ||
6973 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
6974 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6975 | if (!SWIG_IsOK(res1)) { | |
6976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6977 | } | |
6978 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6979 | { | |
6980 | arg2 = &temp2; | |
6981 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
6982 | } | |
6983 | { | |
0085ce49 | 6984 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); |
0085ce49 RD |
6985 | if (PyErr_Occurred()) SWIG_fail; |
6986 | } | |
6987 | resultobj = SWIG_Py_Void(); | |
6988 | return resultobj; | |
6989 | fail: | |
6990 | return NULL; | |
6991 | } | |
6992 | ||
6993 | ||
8f514ab4 RD |
6994 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6995 | PyObject *resultobj = 0; | |
6996 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6997 | buffer arg2 ; | |
6998 | int arg3 ; | |
6999 | void *argp1 = 0 ; | |
7000 | int res1 = 0 ; | |
7001 | Py_ssize_t temp2 ; | |
7002 | PyObject * obj0 = 0 ; | |
7003 | PyObject * obj1 = 0 ; | |
7004 | char * kwnames[] = { | |
7005 | (char *) "self",(char *) "data", NULL | |
7006 | }; | |
7007 | ||
7008 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail; | |
7009 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7010 | if (!SWIG_IsOK(res1)) { | |
7011 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7012 | } | |
7013 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7014 | { | |
7015 | if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail; | |
7016 | arg3 = (int)temp2; | |
7017 | } | |
7018 | { | |
7019 | wxBitmap_CopyFromBuffer(arg1,arg2,arg3); | |
7020 | if (PyErr_Occurred()) SWIG_fail; | |
7021 | } | |
7022 | resultobj = SWIG_Py_Void(); | |
7023 | return resultobj; | |
7024 | fail: | |
7025 | return NULL; | |
7026 | } | |
7027 | ||
7028 | ||
7029 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7030 | PyObject *resultobj = 0; | |
7031 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7032 | buffer arg2 ; | |
7033 | int arg3 ; | |
7034 | void *argp1 = 0 ; | |
7035 | int res1 = 0 ; | |
7036 | Py_ssize_t temp2 ; | |
7037 | PyObject * obj0 = 0 ; | |
7038 | PyObject * obj1 = 0 ; | |
7039 | char * kwnames[] = { | |
7040 | (char *) "self",(char *) "data", NULL | |
7041 | }; | |
7042 | ||
7043 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail; | |
7044 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7045 | if (!SWIG_IsOK(res1)) { | |
7046 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7047 | } | |
7048 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7049 | { | |
7050 | if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail; | |
7051 | arg3 = (int)temp2; | |
7052 | } | |
7053 | { | |
7054 | wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3); | |
7055 | if (PyErr_Occurred()) SWIG_fail; | |
7056 | } | |
7057 | resultobj = SWIG_Py_Void(); | |
7058 | return resultobj; | |
7059 | fail: | |
7060 | return NULL; | |
7061 | } | |
7062 | ||
7063 | ||
0085ce49 RD |
7064 | SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7065 | PyObject *resultobj = 0; | |
7066 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7067 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
7068 | bool result; | |
7069 | void *argp1 = 0 ; | |
7070 | int res1 = 0 ; | |
7071 | void *argp2 = 0 ; | |
7072 | int res2 = 0 ; | |
7073 | PyObject * obj0 = 0 ; | |
7074 | PyObject * obj1 = 0 ; | |
7075 | char * kwnames[] = { | |
7076 | (char *) "self",(char *) "other", NULL | |
7077 | }; | |
7078 | ||
7079 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
7080 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7081 | if (!SWIG_IsOK(res1)) { | |
7082 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7083 | } | |
7084 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7085 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7086 | if (!SWIG_IsOK(res2)) { | |
7087 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
7088 | } | |
7089 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
7090 | { | |
0085ce49 | 7091 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); |
0085ce49 RD |
7092 | if (PyErr_Occurred()) SWIG_fail; |
7093 | } | |
7094 | { | |
fc46b7f3 RD |
7095 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
7096 | } | |
7097 | return resultobj; | |
7098 | fail: | |
7099 | return NULL; | |
7100 | } | |
7101 | ||
7102 | ||
7103 | SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7104 | PyObject *resultobj = 0; | |
7105 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7106 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
7107 | bool result; | |
7108 | void *argp1 = 0 ; | |
7109 | int res1 = 0 ; | |
7110 | void *argp2 = 0 ; | |
7111 | int res2 = 0 ; | |
7112 | PyObject * obj0 = 0 ; | |
7113 | PyObject * obj1 = 0 ; | |
7114 | char * kwnames[] = { | |
7115 | (char *) "self",(char *) "other", NULL | |
7116 | }; | |
7117 | ||
7118 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
7119 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7120 | if (!SWIG_IsOK(res1)) { | |
7121 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7122 | } | |
7123 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7124 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7125 | if (!SWIG_IsOK(res2)) { | |
7126 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
7127 | } | |
7128 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
7129 | { | |
7130 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
7131 | if (PyErr_Occurred()) SWIG_fail; | |
7132 | } | |
7133 | { | |
7134 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7135 | } | |
7136 | return resultobj; | |
7137 | fail: | |
7138 | return NULL; | |
7139 | } | |
7140 | ||
7141 | ||
7142 | SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7143 | PyObject *obj; | |
7144 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7145 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj)); | |
7146 | return SWIG_Py_Void(); | |
7147 | } | |
7148 | ||
7149 | SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7150 | return SWIG_Python_InitShadowInstance(args); | |
7151 | } | |
7152 | ||
7153 | SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7154 | PyObject *resultobj = 0; | |
7155 | int arg1 ; | |
7156 | int arg2 ; | |
7157 | buffer arg3 ; | |
7158 | int arg4 ; | |
7159 | buffer arg5 ; | |
7160 | int arg6 ; | |
7161 | wxBitmap *result = 0 ; | |
7162 | int val1 ; | |
7163 | int ecode1 = 0 ; | |
7164 | int val2 ; | |
7165 | int ecode2 = 0 ; | |
c79fdf86 RD |
7166 | Py_ssize_t temp3 ; |
7167 | Py_ssize_t temp5 ; | |
fc46b7f3 RD |
7168 | PyObject * obj0 = 0 ; |
7169 | PyObject * obj1 = 0 ; | |
7170 | PyObject * obj2 = 0 ; | |
7171 | PyObject * obj3 = 0 ; | |
7172 | char * kwnames[] = { | |
7173 | (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL | |
7174 | }; | |
7175 | ||
7176 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7177 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7178 | if (!SWIG_IsOK(ecode1)) { | |
7179 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'"); | |
7180 | } | |
7181 | arg1 = static_cast< int >(val1); | |
7182 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7183 | if (!SWIG_IsOK(ecode2)) { | |
7184 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'"); | |
7185 | } | |
7186 | arg2 = static_cast< int >(val2); | |
7187 | { | |
c79fdf86 RD |
7188 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7189 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7190 | } |
7191 | { | |
7192 | if (obj3 != Py_None) { | |
c79fdf86 RD |
7193 | if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail; |
7194 | arg6 = (int)temp5; | |
fc46b7f3 RD |
7195 | } |
7196 | } | |
7197 | { | |
7198 | result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6); | |
7199 | if (PyErr_Occurred()) SWIG_fail; | |
7200 | } | |
7201 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7202 | return resultobj; | |
7203 | fail: | |
7204 | return NULL; | |
7205 | } | |
7206 | ||
7207 | ||
7208 | SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7209 | PyObject *resultobj = 0; | |
7210 | int arg1 ; | |
7211 | int arg2 ; | |
7212 | buffer arg3 ; | |
7213 | int arg4 ; | |
7214 | wxBitmap *result = 0 ; | |
7215 | int val1 ; | |
7216 | int ecode1 = 0 ; | |
7217 | int val2 ; | |
7218 | int ecode2 = 0 ; | |
c79fdf86 | 7219 | Py_ssize_t temp3 ; |
fc46b7f3 RD |
7220 | PyObject * obj0 = 0 ; |
7221 | PyObject * obj1 = 0 ; | |
7222 | PyObject * obj2 = 0 ; | |
7223 | char * kwnames[] = { | |
7224 | (char *) "width",(char *) "height",(char *) "data", NULL | |
7225 | }; | |
7226 | ||
7227 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7228 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7229 | if (!SWIG_IsOK(ecode1)) { | |
7230 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'"); | |
7231 | } | |
7232 | arg1 = static_cast< int >(val1); | |
7233 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7234 | if (!SWIG_IsOK(ecode2)) { | |
7235 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'"); | |
7236 | } | |
7237 | arg2 = static_cast< int >(val2); | |
7238 | { | |
c79fdf86 RD |
7239 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7240 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7241 | } |
7242 | { | |
7243 | result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4); | |
7244 | if (PyErr_Occurred()) SWIG_fail; | |
7245 | } | |
7246 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7247 | return resultobj; | |
7248 | fail: | |
7249 | return NULL; | |
7250 | } | |
7251 | ||
7252 | ||
7253 | SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7254 | PyObject *resultobj = 0; | |
7255 | int arg1 ; | |
7256 | int arg2 ; | |
7257 | buffer arg3 ; | |
7258 | int arg4 ; | |
7259 | wxBitmap *result = 0 ; | |
7260 | int val1 ; | |
7261 | int ecode1 = 0 ; | |
7262 | int val2 ; | |
7263 | int ecode2 = 0 ; | |
c79fdf86 | 7264 | Py_ssize_t temp3 ; |
fc46b7f3 RD |
7265 | PyObject * obj0 = 0 ; |
7266 | PyObject * obj1 = 0 ; | |
7267 | PyObject * obj2 = 0 ; | |
7268 | char * kwnames[] = { | |
7269 | (char *) "width",(char *) "height",(char *) "data", NULL | |
7270 | }; | |
7271 | ||
7272 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7273 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7274 | if (!SWIG_IsOK(ecode1)) { | |
7275 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'"); | |
7276 | } | |
7277 | arg1 = static_cast< int >(val1); | |
7278 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7279 | if (!SWIG_IsOK(ecode2)) { | |
7280 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'"); | |
7281 | } | |
7282 | arg2 = static_cast< int >(val2); | |
7283 | { | |
c79fdf86 RD |
7284 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7285 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7286 | } |
7287 | { | |
7288 | result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4); | |
7289 | if (PyErr_Occurred()) SWIG_fail; | |
7290 | } | |
7291 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7292 | return resultobj; | |
7293 | fail: | |
7294 | return NULL; | |
7295 | } | |
7296 | ||
7297 | ||
7298 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7299 | PyObject *resultobj = 0; | |
7300 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7301 | wxPoint result; | |
7302 | void *argp1 = 0 ; | |
7303 | int res1 = 0 ; | |
7304 | PyObject *swig_obj[1] ; | |
7305 | ||
7306 | if (!args) SWIG_fail; | |
7307 | swig_obj[0] = args; | |
7308 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7309 | if (!SWIG_IsOK(res1)) { | |
7310 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7311 | } | |
7312 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7313 | { | |
7314 | result = ((wxPixelDataBase const *)arg1)->GetOrigin(); | |
7315 | if (PyErr_Occurred()) SWIG_fail; | |
7316 | } | |
7317 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
7318 | return resultobj; | |
7319 | fail: | |
7320 | return NULL; | |
7321 | } | |
7322 | ||
7323 | ||
7324 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7325 | PyObject *resultobj = 0; | |
7326 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7327 | int result; | |
7328 | void *argp1 = 0 ; | |
7329 | int res1 = 0 ; | |
7330 | PyObject *swig_obj[1] ; | |
7331 | ||
7332 | if (!args) SWIG_fail; | |
7333 | swig_obj[0] = args; | |
7334 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7335 | if (!SWIG_IsOK(res1)) { | |
7336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7337 | } | |
7338 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7339 | { | |
7340 | result = (int)((wxPixelDataBase const *)arg1)->GetWidth(); | |
7341 | if (PyErr_Occurred()) SWIG_fail; | |
7342 | } | |
7343 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7344 | return resultobj; | |
7345 | fail: | |
7346 | return NULL; | |
7347 | } | |
7348 | ||
7349 | ||
7350 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7351 | PyObject *resultobj = 0; | |
7352 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7353 | int result; | |
7354 | void *argp1 = 0 ; | |
7355 | int res1 = 0 ; | |
7356 | PyObject *swig_obj[1] ; | |
7357 | ||
7358 | if (!args) SWIG_fail; | |
7359 | swig_obj[0] = args; | |
7360 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7361 | if (!SWIG_IsOK(res1)) { | |
7362 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7363 | } | |
7364 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7365 | { | |
7366 | result = (int)((wxPixelDataBase const *)arg1)->GetHeight(); | |
7367 | if (PyErr_Occurred()) SWIG_fail; | |
7368 | } | |
7369 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7370 | return resultobj; | |
7371 | fail: | |
7372 | return NULL; | |
7373 | } | |
7374 | ||
7375 | ||
7376 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7377 | PyObject *resultobj = 0; | |
7378 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7379 | wxSize result; | |
7380 | void *argp1 = 0 ; | |
7381 | int res1 = 0 ; | |
7382 | PyObject *swig_obj[1] ; | |
7383 | ||
7384 | if (!args) SWIG_fail; | |
7385 | swig_obj[0] = args; | |
7386 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7387 | if (!SWIG_IsOK(res1)) { | |
7388 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7389 | } | |
7390 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7391 | { | |
7392 | result = ((wxPixelDataBase const *)arg1)->GetSize(); | |
7393 | if (PyErr_Occurred()) SWIG_fail; | |
7394 | } | |
7395 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
7396 | return resultobj; | |
7397 | fail: | |
7398 | return NULL; | |
7399 | } | |
7400 | ||
7401 | ||
7402 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7403 | PyObject *resultobj = 0; | |
7404 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7405 | int result; | |
7406 | void *argp1 = 0 ; | |
7407 | int res1 = 0 ; | |
7408 | PyObject *swig_obj[1] ; | |
7409 | ||
7410 | if (!args) SWIG_fail; | |
7411 | swig_obj[0] = args; | |
7412 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7413 | if (!SWIG_IsOK(res1)) { | |
7414 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7415 | } | |
7416 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7417 | { | |
7418 | result = (int)((wxPixelDataBase const *)arg1)->GetRowStride(); | |
7419 | if (PyErr_Occurred()) SWIG_fail; | |
7420 | } | |
7421 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7422 | return resultobj; | |
7423 | fail: | |
7424 | return NULL; | |
7425 | } | |
7426 | ||
7427 | ||
7428 | SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7429 | PyObject *obj; | |
7430 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7431 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj)); | |
7432 | return SWIG_Py_Void(); | |
7433 | } | |
7434 | ||
7435 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7436 | PyObject *resultobj = 0; | |
7437 | wxBitmap *arg1 = 0 ; | |
7438 | wxNativePixelData *result = 0 ; | |
7439 | void *argp1 = 0 ; | |
7440 | int res1 = 0 ; | |
7441 | ||
7442 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
7443 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7444 | if (!SWIG_IsOK(res1)) { | |
7445 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7446 | } | |
7447 | if (!argp1) { | |
7448 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7449 | } | |
7450 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7451 | { | |
7452 | result = (wxNativePixelData *)new wxNativePixelData(*arg1); | |
7453 | if (PyErr_Occurred()) SWIG_fail; | |
7454 | } | |
7455 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7456 | return resultobj; | |
7457 | fail: | |
7458 | return NULL; | |
7459 | } | |
7460 | ||
7461 | ||
7462 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7463 | PyObject *resultobj = 0; | |
7464 | wxBitmap *arg1 = 0 ; | |
7465 | wxRect *arg2 = 0 ; | |
7466 | wxNativePixelData *result = 0 ; | |
7467 | void *argp1 = 0 ; | |
7468 | int res1 = 0 ; | |
7469 | wxRect temp2 ; | |
7470 | ||
7471 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
7472 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7473 | if (!SWIG_IsOK(res1)) { | |
7474 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7475 | } | |
7476 | if (!argp1) { | |
7477 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7478 | } | |
7479 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7480 | { | |
7481 | arg2 = &temp2; | |
7482 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
7483 | } | |
7484 | { | |
7485 | result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2); | |
7486 | if (PyErr_Occurred()) SWIG_fail; | |
7487 | } | |
7488 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7489 | return resultobj; | |
7490 | fail: | |
7491 | return NULL; | |
7492 | } | |
7493 | ||
7494 | ||
7495 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7496 | PyObject *resultobj = 0; | |
7497 | wxBitmap *arg1 = 0 ; | |
7498 | wxPoint *arg2 = 0 ; | |
7499 | wxSize *arg3 = 0 ; | |
7500 | wxNativePixelData *result = 0 ; | |
7501 | void *argp1 = 0 ; | |
7502 | int res1 = 0 ; | |
7503 | wxPoint temp2 ; | |
7504 | wxSize temp3 ; | |
7505 | ||
7506 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
7507 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7508 | if (!SWIG_IsOK(res1)) { | |
7509 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7510 | } | |
7511 | if (!argp1) { | |
7512 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7513 | } | |
7514 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7515 | { | |
7516 | arg2 = &temp2; | |
7517 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
7518 | } | |
7519 | { | |
7520 | arg3 = &temp3; | |
7521 | if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail; | |
7522 | } | |
7523 | { | |
7524 | result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3); | |
7525 | if (PyErr_Occurred()) SWIG_fail; | |
7526 | } | |
7527 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7528 | return resultobj; | |
7529 | fail: | |
7530 | return NULL; | |
7531 | } | |
7532 | ||
7533 | ||
7534 | SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) { | |
7535 | int argc; | |
7536 | PyObject *argv[4]; | |
7537 | ||
7538 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail; | |
7539 | --argc; | |
7540 | if (argc == 1) { | |
7541 | return _wrap_new_NativePixelData__SWIG_0(self, argc, argv); | |
7542 | } | |
7543 | if (argc == 2) { | |
7544 | return _wrap_new_NativePixelData__SWIG_1(self, argc, argv); | |
7545 | } | |
7546 | if (argc == 3) { | |
7547 | return _wrap_new_NativePixelData__SWIG_2(self, argc, argv); | |
7548 | } | |
7549 | ||
7550 | fail: | |
7551 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'"); | |
7552 | return NULL; | |
7553 | } | |
7554 | ||
7555 | ||
7556 | SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7557 | PyObject *resultobj = 0; | |
7558 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7559 | void *argp1 = 0 ; | |
7560 | int res1 = 0 ; | |
7561 | PyObject *swig_obj[1] ; | |
7562 | ||
7563 | if (!args) SWIG_fail; | |
7564 | swig_obj[0] = args; | |
7565 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 ); | |
7566 | if (!SWIG_IsOK(res1)) { | |
7567 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7568 | } | |
7569 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7570 | { | |
7571 | delete arg1; | |
7572 | ||
7573 | if (PyErr_Occurred()) SWIG_fail; | |
7574 | } | |
7575 | resultobj = SWIG_Py_Void(); | |
7576 | return resultobj; | |
7577 | fail: | |
7578 | return NULL; | |
7579 | } | |
7580 | ||
7581 | ||
7582 | SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7583 | PyObject *resultobj = 0; | |
7584 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7585 | wxNativePixelData_Accessor result; | |
7586 | void *argp1 = 0 ; | |
7587 | int res1 = 0 ; | |
7588 | PyObject *swig_obj[1] ; | |
7589 | ||
7590 | if (!args) SWIG_fail; | |
7591 | swig_obj[0] = args; | |
7592 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7593 | if (!SWIG_IsOK(res1)) { | |
7594 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'"); | |
7595 | } | |
7596 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7597 | { | |
7598 | result = ((wxNativePixelData const *)arg1)->GetPixels(); | |
7599 | if (PyErr_Occurred()) SWIG_fail; | |
7600 | } | |
7601 | resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 ); | |
7602 | return resultobj; | |
7603 | fail: | |
7604 | return NULL; | |
7605 | } | |
7606 | ||
7607 | ||
7608 | SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7609 | PyObject *resultobj = 0; | |
7610 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7611 | void *argp1 = 0 ; | |
7612 | int res1 = 0 ; | |
7613 | PyObject *swig_obj[1] ; | |
7614 | ||
7615 | if (!args) SWIG_fail; | |
7616 | swig_obj[0] = args; | |
7617 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7618 | if (!SWIG_IsOK(res1)) { | |
7619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7620 | } | |
7621 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7622 | { | |
7623 | (arg1)->UseAlpha(); | |
7624 | if (PyErr_Occurred()) SWIG_fail; | |
7625 | } | |
7626 | resultobj = SWIG_Py_Void(); | |
7627 | return resultobj; | |
7628 | fail: | |
7629 | return NULL; | |
7630 | } | |
7631 | ||
7632 | ||
7633 | SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7634 | PyObject *resultobj = 0; | |
7635 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7636 | bool result; | |
7637 | void *argp1 = 0 ; | |
7638 | int res1 = 0 ; | |
7639 | PyObject *swig_obj[1] ; | |
7640 | ||
7641 | if (!args) SWIG_fail; | |
7642 | swig_obj[0] = args; | |
7643 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7644 | if (!SWIG_IsOK(res1)) { | |
7645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7646 | } | |
7647 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7648 | { | |
7649 | result = (bool)wxNativePixelData___nonzero__(arg1); | |
7650 | if (PyErr_Occurred()) SWIG_fail; | |
7651 | } | |
7652 | { | |
7653 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7654 | } | |
7655 | return resultobj; | |
7656 | fail: | |
7657 | return NULL; | |
7658 | } | |
7659 | ||
7660 | ||
7661 | SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7662 | PyObject *obj; | |
7663 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7664 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj)); | |
7665 | return SWIG_Py_Void(); | |
7666 | } | |
7667 | ||
7668 | SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7669 | return SWIG_Python_InitShadowInstance(args); | |
7670 | } | |
7671 | ||
7672 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7673 | PyObject *resultobj = 0; | |
7674 | wxNativePixelData *arg1 = 0 ; | |
7675 | wxNativePixelData_Accessor *result = 0 ; | |
7676 | void *argp1 = 0 ; | |
7677 | int res1 = 0 ; | |
7678 | ||
7679 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
7680 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 ); | |
7681 | if (!SWIG_IsOK(res1)) { | |
7682 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'"); | |
7683 | } | |
7684 | if (!argp1) { | |
7685 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'"); | |
7686 | } | |
7687 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7688 | { | |
7689 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1); | |
7690 | if (PyErr_Occurred()) SWIG_fail; | |
7691 | } | |
7692 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7693 | return resultobj; | |
7694 | fail: | |
7695 | return NULL; | |
7696 | } | |
7697 | ||
7698 | ||
7699 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7700 | PyObject *resultobj = 0; | |
7701 | wxBitmap *arg1 = 0 ; | |
7702 | wxNativePixelData *arg2 = 0 ; | |
7703 | wxNativePixelData_Accessor *result = 0 ; | |
7704 | void *argp1 = 0 ; | |
7705 | int res1 = 0 ; | |
7706 | void *argp2 = 0 ; | |
7707 | int res2 = 0 ; | |
7708 | ||
7709 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
7710 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7711 | if (!SWIG_IsOK(res1)) { | |
7712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7713 | } | |
7714 | if (!argp1) { | |
7715 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7716 | } | |
7717 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7718 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 ); | |
7719 | if (!SWIG_IsOK(res2)) { | |
7720 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'"); | |
7721 | } | |
7722 | if (!argp2) { | |
7723 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'"); | |
7724 | } | |
7725 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7726 | { | |
7727 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2); | |
7728 | if (PyErr_Occurred()) SWIG_fail; | |
7729 | } | |
7730 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7731 | return resultobj; | |
7732 | fail: | |
7733 | return NULL; | |
7734 | } | |
7735 | ||
7736 | ||
7737 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { | |
7738 | PyObject *resultobj = 0; | |
7739 | wxNativePixelData_Accessor *result = 0 ; | |
7740 | ||
7741 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
7742 | { | |
7743 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(); | |
7744 | if (PyErr_Occurred()) SWIG_fail; | |
7745 | } | |
7746 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7747 | return resultobj; | |
7748 | fail: | |
7749 | return NULL; | |
7750 | } | |
7751 | ||
7752 | ||
7753 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) { | |
7754 | int argc; | |
7755 | PyObject *argv[3]; | |
7756 | ||
7757 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail; | |
7758 | --argc; | |
7759 | if (argc == 0) { | |
7760 | return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv); | |
7761 | } | |
7762 | if (argc == 1) { | |
7763 | return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv); | |
7764 | } | |
7765 | if (argc == 2) { | |
7766 | return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv); | |
7767 | } | |
7768 | ||
7769 | fail: | |
7770 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'"); | |
7771 | return NULL; | |
7772 | } | |
7773 | ||
7774 | ||
7775 | SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7776 | PyObject *resultobj = 0; | |
7777 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7778 | void *argp1 = 0 ; | |
7779 | int res1 = 0 ; | |
7780 | PyObject *swig_obj[1] ; | |
7781 | ||
7782 | if (!args) SWIG_fail; | |
7783 | swig_obj[0] = args; | |
7784 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 ); | |
7785 | if (!SWIG_IsOK(res1)) { | |
7786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7787 | } | |
7788 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7789 | { | |
7790 | delete arg1; | |
7791 | ||
7792 | if (PyErr_Occurred()) SWIG_fail; | |
7793 | } | |
7794 | resultobj = SWIG_Py_Void(); | |
7795 | return resultobj; | |
7796 | fail: | |
7797 | return NULL; | |
7798 | } | |
7799 | ||
7800 | ||
7801 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7802 | PyObject *resultobj = 0; | |
7803 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7804 | wxNativePixelData *arg2 = 0 ; | |
7805 | void *argp1 = 0 ; | |
7806 | int res1 = 0 ; | |
7807 | void *argp2 = 0 ; | |
7808 | int res2 = 0 ; | |
7809 | PyObject * obj0 = 0 ; | |
7810 | PyObject * obj1 = 0 ; | |
7811 | char * kwnames[] = { | |
7812 | (char *) "self",(char *) "data", NULL | |
7813 | }; | |
7814 | ||
7815 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail; | |
7816 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7817 | if (!SWIG_IsOK(res1)) { | |
7818 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7819 | } | |
7820 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7821 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7822 | if (!SWIG_IsOK(res2)) { | |
7823 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7824 | } | |
7825 | if (!argp2) { | |
7826 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7827 | } | |
7828 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7829 | { | |
7830 | (arg1)->Reset((wxNativePixelData const &)*arg2); | |
7831 | if (PyErr_Occurred()) SWIG_fail; | |
7832 | } | |
7833 | resultobj = SWIG_Py_Void(); | |
7834 | return resultobj; | |
7835 | fail: | |
7836 | return NULL; | |
7837 | } | |
7838 | ||
7839 | ||
7840 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7841 | PyObject *resultobj = 0; | |
7842 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7843 | bool result; | |
7844 | void *argp1 = 0 ; | |
7845 | int res1 = 0 ; | |
7846 | PyObject *swig_obj[1] ; | |
7847 | ||
7848 | if (!args) SWIG_fail; | |
7849 | swig_obj[0] = args; | |
7850 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7851 | if (!SWIG_IsOK(res1)) { | |
7852 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'"); | |
7853 | } | |
7854 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7855 | { | |
7856 | result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk(); | |
7857 | if (PyErr_Occurred()) SWIG_fail; | |
7858 | } | |
7859 | { | |
7860 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7861 | } | |
7862 | return resultobj; | |
7863 | fail: | |
7864 | return NULL; | |
7865 | } | |
7866 | ||
7867 | ||
7868 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7869 | PyObject *resultobj = 0; | |
7870 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7871 | void *argp1 = 0 ; | |
7872 | int res1 = 0 ; | |
7873 | PyObject *swig_obj[1] ; | |
7874 | ||
7875 | if (!args) SWIG_fail; | |
7876 | swig_obj[0] = args; | |
7877 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7878 | if (!SWIG_IsOK(res1)) { | |
7879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7880 | } | |
7881 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7882 | { | |
7883 | wxNativePixelData_Accessor_nextPixel(arg1); | |
7884 | if (PyErr_Occurred()) SWIG_fail; | |
7885 | } | |
7886 | resultobj = SWIG_Py_Void(); | |
7887 | return resultobj; | |
7888 | fail: | |
7889 | return NULL; | |
7890 | } | |
7891 | ||
7892 | ||
7893 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7894 | PyObject *resultobj = 0; | |
7895 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7896 | wxNativePixelData *arg2 = 0 ; | |
7897 | int arg3 ; | |
7898 | int arg4 ; | |
7899 | void *argp1 = 0 ; | |
7900 | int res1 = 0 ; | |
7901 | void *argp2 = 0 ; | |
7902 | int res2 = 0 ; | |
7903 | int val3 ; | |
7904 | int ecode3 = 0 ; | |
7905 | int val4 ; | |
7906 | int ecode4 = 0 ; | |
7907 | PyObject * obj0 = 0 ; | |
7908 | PyObject * obj1 = 0 ; | |
7909 | PyObject * obj2 = 0 ; | |
7910 | PyObject * obj3 = 0 ; | |
7911 | char * kwnames[] = { | |
7912 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
7913 | }; | |
7914 | ||
7915 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7916 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7917 | if (!SWIG_IsOK(res1)) { | |
7918 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7919 | } | |
7920 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7921 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7922 | if (!SWIG_IsOK(res2)) { | |
7923 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7924 | } | |
7925 | if (!argp2) { | |
7926 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7927 | } | |
7928 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7929 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7930 | if (!SWIG_IsOK(ecode3)) { | |
7931 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'"); | |
7932 | } | |
7933 | arg3 = static_cast< int >(val3); | |
7934 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
7935 | if (!SWIG_IsOK(ecode4)) { | |
7936 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'"); | |
7937 | } | |
7938 | arg4 = static_cast< int >(val4); | |
7939 | { | |
7940 | (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4); | |
7941 | if (PyErr_Occurred()) SWIG_fail; | |
7942 | } | |
7943 | resultobj = SWIG_Py_Void(); | |
7944 | return resultobj; | |
7945 | fail: | |
7946 | return NULL; | |
7947 | } | |
7948 | ||
7949 | ||
7950 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7951 | PyObject *resultobj = 0; | |
7952 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7953 | wxNativePixelData *arg2 = 0 ; | |
7954 | int arg3 ; | |
7955 | void *argp1 = 0 ; | |
7956 | int res1 = 0 ; | |
7957 | void *argp2 = 0 ; | |
7958 | int res2 = 0 ; | |
7959 | int val3 ; | |
7960 | int ecode3 = 0 ; | |
7961 | PyObject * obj0 = 0 ; | |
7962 | PyObject * obj1 = 0 ; | |
7963 | PyObject * obj2 = 0 ; | |
7964 | char * kwnames[] = { | |
7965 | (char *) "self",(char *) "data",(char *) "x", NULL | |
7966 | }; | |
7967 | ||
7968 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7969 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7970 | if (!SWIG_IsOK(res1)) { | |
7971 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7972 | } | |
7973 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7974 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7975 | if (!SWIG_IsOK(res2)) { | |
7976 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7977 | } | |
7978 | if (!argp2) { | |
7979 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7980 | } | |
7981 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7982 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7983 | if (!SWIG_IsOK(ecode3)) { | |
7984 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'"); | |
7985 | } | |
7986 | arg3 = static_cast< int >(val3); | |
7987 | { | |
7988 | (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3); | |
7989 | if (PyErr_Occurred()) SWIG_fail; | |
7990 | } | |
7991 | resultobj = SWIG_Py_Void(); | |
7992 | return resultobj; | |
7993 | fail: | |
7994 | return NULL; | |
7995 | } | |
7996 | ||
7997 | ||
7998 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7999 | PyObject *resultobj = 0; | |
8000 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8001 | wxNativePixelData *arg2 = 0 ; | |
8002 | int arg3 ; | |
8003 | void *argp1 = 0 ; | |
8004 | int res1 = 0 ; | |
8005 | void *argp2 = 0 ; | |
8006 | int res2 = 0 ; | |
8007 | int val3 ; | |
8008 | int ecode3 = 0 ; | |
8009 | PyObject * obj0 = 0 ; | |
8010 | PyObject * obj1 = 0 ; | |
8011 | PyObject * obj2 = 0 ; | |
8012 | char * kwnames[] = { | |
8013 | (char *) "self",(char *) "data",(char *) "y", NULL | |
8014 | }; | |
8015 | ||
8016 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8017 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8018 | if (!SWIG_IsOK(res1)) { | |
8019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8020 | } | |
8021 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8022 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
8023 | if (!SWIG_IsOK(res2)) { | |
8024 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8025 | } | |
8026 | if (!argp2) { | |
8027 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8028 | } | |
8029 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
8030 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8031 | if (!SWIG_IsOK(ecode3)) { | |
8032 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'"); | |
8033 | } | |
8034 | arg3 = static_cast< int >(val3); | |
8035 | { | |
8036 | (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3); | |
8037 | if (PyErr_Occurred()) SWIG_fail; | |
8038 | } | |
8039 | resultobj = SWIG_Py_Void(); | |
8040 | return resultobj; | |
8041 | fail: | |
8042 | return NULL; | |
8043 | } | |
8044 | ||
8045 | ||
8046 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8047 | PyObject *resultobj = 0; | |
8048 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8049 | wxNativePixelData *arg2 = 0 ; | |
8050 | int arg3 ; | |
8051 | int arg4 ; | |
8052 | void *argp1 = 0 ; | |
8053 | int res1 = 0 ; | |
8054 | void *argp2 = 0 ; | |
8055 | int res2 = 0 ; | |
8056 | int val3 ; | |
8057 | int ecode3 = 0 ; | |
8058 | int val4 ; | |
8059 | int ecode4 = 0 ; | |
8060 | PyObject * obj0 = 0 ; | |
8061 | PyObject * obj1 = 0 ; | |
8062 | PyObject * obj2 = 0 ; | |
8063 | PyObject * obj3 = 0 ; | |
8064 | char * kwnames[] = { | |
8065 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8066 | }; | |
8067 | ||
8068 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8069 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8070 | if (!SWIG_IsOK(res1)) { | |
8071 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8072 | } | |
8073 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8074 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
8075 | if (!SWIG_IsOK(res2)) { | |
8076 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8077 | } | |
8078 | if (!argp2) { | |
8079 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8080 | } | |
8081 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
8082 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8083 | if (!SWIG_IsOK(ecode3)) { | |
8084 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'"); | |
8085 | } | |
8086 | arg3 = static_cast< int >(val3); | |
8087 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8088 | if (!SWIG_IsOK(ecode4)) { | |
8089 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'"); | |
8090 | } | |
8091 | arg4 = static_cast< int >(val4); | |
8092 | { | |
8093 | (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4); | |
8094 | if (PyErr_Occurred()) SWIG_fail; | |
8095 | } | |
8096 | resultobj = SWIG_Py_Void(); | |
8097 | return resultobj; | |
8098 | fail: | |
8099 | return NULL; | |
8100 | } | |
8101 | ||
8102 | ||
8103 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8104 | PyObject *resultobj = 0; | |
8105 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8106 | byte arg2 ; | |
8107 | byte arg3 ; | |
8108 | byte arg4 ; | |
8109 | void *argp1 = 0 ; | |
8110 | int res1 = 0 ; | |
8111 | unsigned char val2 ; | |
8112 | int ecode2 = 0 ; | |
8113 | unsigned char val3 ; | |
8114 | int ecode3 = 0 ; | |
8115 | unsigned char val4 ; | |
8116 | int ecode4 = 0 ; | |
8117 | PyObject * obj0 = 0 ; | |
8118 | PyObject * obj1 = 0 ; | |
8119 | PyObject * obj2 = 0 ; | |
8120 | PyObject * obj3 = 0 ; | |
8121 | char * kwnames[] = { | |
8122 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
8123 | }; | |
8124 | ||
8125 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8126 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8127 | if (!SWIG_IsOK(res1)) { | |
8128 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8129 | } | |
8130 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8131 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
8132 | if (!SWIG_IsOK(ecode2)) { | |
8133 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'"); | |
8134 | } | |
8135 | arg2 = static_cast< byte >(val2); | |
8136 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
8137 | if (!SWIG_IsOK(ecode3)) { | |
8138 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'"); | |
8139 | } | |
8140 | arg3 = static_cast< byte >(val3); | |
8141 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
8142 | if (!SWIG_IsOK(ecode4)) { | |
8143 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'"); | |
8144 | } | |
8145 | arg4 = static_cast< byte >(val4); | |
8146 | { | |
8147 | wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4); | |
8148 | if (PyErr_Occurred()) SWIG_fail; | |
8149 | } | |
8150 | resultobj = SWIG_Py_Void(); | |
8151 | return resultobj; | |
8152 | fail: | |
8153 | return NULL; | |
8154 | } | |
8155 | ||
8156 | ||
8157 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8158 | PyObject *resultobj = 0; | |
8159 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8160 | PyObject *result = 0 ; | |
8161 | void *argp1 = 0 ; | |
8162 | int res1 = 0 ; | |
8163 | PyObject *swig_obj[1] ; | |
8164 | ||
8165 | if (!args) SWIG_fail; | |
8166 | swig_obj[0] = args; | |
8167 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8168 | if (!SWIG_IsOK(res1)) { | |
8169 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8170 | } | |
8171 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8172 | { | |
8173 | result = (PyObject *)wxNativePixelData_Accessor_Get(arg1); | |
8174 | if (PyErr_Occurred()) SWIG_fail; | |
8175 | } | |
8176 | resultobj = result; | |
8177 | return resultobj; | |
8178 | fail: | |
8179 | return NULL; | |
8180 | } | |
8181 | ||
8182 | ||
8183 | SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8184 | PyObject *obj; | |
8185 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8186 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj)); | |
8187 | return SWIG_Py_Void(); | |
8188 | } | |
8189 | ||
8190 | SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8191 | return SWIG_Python_InitShadowInstance(args); | |
8192 | } | |
8193 | ||
8194 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8195 | PyObject *resultobj = 0; | |
8196 | wxBitmap *arg1 = 0 ; | |
8197 | wxAlphaPixelData *result = 0 ; | |
8198 | void *argp1 = 0 ; | |
8199 | int res1 = 0 ; | |
8200 | ||
8201 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
8202 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8203 | if (!SWIG_IsOK(res1)) { | |
8204 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8205 | } | |
8206 | if (!argp1) { | |
8207 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8208 | } | |
8209 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8210 | { | |
8211 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1); | |
8212 | if (PyErr_Occurred()) SWIG_fail; | |
8213 | } | |
8214 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8215 | return resultobj; | |
8216 | fail: | |
8217 | return NULL; | |
8218 | } | |
8219 | ||
8220 | ||
8221 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8222 | PyObject *resultobj = 0; | |
8223 | wxBitmap *arg1 = 0 ; | |
8224 | wxRect *arg2 = 0 ; | |
8225 | wxAlphaPixelData *result = 0 ; | |
8226 | void *argp1 = 0 ; | |
8227 | int res1 = 0 ; | |
8228 | wxRect temp2 ; | |
8229 | ||
8230 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
8231 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8232 | if (!SWIG_IsOK(res1)) { | |
8233 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8234 | } | |
8235 | if (!argp1) { | |
8236 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8237 | } | |
8238 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8239 | { | |
8240 | arg2 = &temp2; | |
8241 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
8242 | } | |
8243 | { | |
8244 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2); | |
8245 | if (PyErr_Occurred()) SWIG_fail; | |
8246 | } | |
8247 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8248 | return resultobj; | |
8249 | fail: | |
8250 | return NULL; | |
8251 | } | |
8252 | ||
8253 | ||
8254 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8255 | PyObject *resultobj = 0; | |
8256 | wxBitmap *arg1 = 0 ; | |
8257 | wxPoint *arg2 = 0 ; | |
8258 | wxSize *arg3 = 0 ; | |
8259 | wxAlphaPixelData *result = 0 ; | |
8260 | void *argp1 = 0 ; | |
8261 | int res1 = 0 ; | |
8262 | wxPoint temp2 ; | |
8263 | wxSize temp3 ; | |
8264 | ||
8265 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
8266 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8267 | if (!SWIG_IsOK(res1)) { | |
8268 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8269 | } | |
8270 | if (!argp1) { | |
8271 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8272 | } | |
8273 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8274 | { | |
8275 | arg2 = &temp2; | |
8276 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
8277 | } | |
8278 | { | |
8279 | arg3 = &temp3; | |
8280 | if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail; | |
8281 | } | |
8282 | { | |
8283 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3); | |
8284 | if (PyErr_Occurred()) SWIG_fail; | |
8285 | } | |
8286 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8287 | return resultobj; | |
8288 | fail: | |
8289 | return NULL; | |
8290 | } | |
8291 | ||
8292 | ||
8293 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) { | |
8294 | int argc; | |
8295 | PyObject *argv[4]; | |
8296 | ||
8297 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail; | |
8298 | --argc; | |
8299 | if (argc == 1) { | |
8300 | return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv); | |
8301 | } | |
8302 | if (argc == 2) { | |
8303 | return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv); | |
8304 | } | |
8305 | if (argc == 3) { | |
8306 | return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv); | |
8307 | } | |
8308 | ||
8309 | fail: | |
8310 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'"); | |
8311 | return NULL; | |
8312 | } | |
8313 | ||
8314 | ||
8315 | SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8316 | PyObject *resultobj = 0; | |
8317 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8318 | void *argp1 = 0 ; | |
8319 | int res1 = 0 ; | |
8320 | PyObject *swig_obj[1] ; | |
8321 | ||
8322 | if (!args) SWIG_fail; | |
8323 | swig_obj[0] = args; | |
8324 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 ); | |
8325 | if (!SWIG_IsOK(res1)) { | |
8326 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8327 | } | |
8328 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8329 | { | |
8330 | delete arg1; | |
8331 | ||
8332 | if (PyErr_Occurred()) SWIG_fail; | |
8333 | } | |
8334 | resultobj = SWIG_Py_Void(); | |
8335 | return resultobj; | |
8336 | fail: | |
8337 | return NULL; | |
8338 | } | |
8339 | ||
8340 | ||
8341 | SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8342 | PyObject *resultobj = 0; | |
8343 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8344 | wxAlphaPixelData_Accessor result; | |
8345 | void *argp1 = 0 ; | |
8346 | int res1 = 0 ; | |
8347 | PyObject *swig_obj[1] ; | |
8348 | ||
8349 | if (!args) SWIG_fail; | |
8350 | swig_obj[0] = args; | |
8351 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8352 | if (!SWIG_IsOK(res1)) { | |
8353 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'"); | |
8354 | } | |
8355 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8356 | { | |
8357 | result = ((wxAlphaPixelData const *)arg1)->GetPixels(); | |
8358 | if (PyErr_Occurred()) SWIG_fail; | |
8359 | } | |
8360 | resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 ); | |
8361 | return resultobj; | |
8362 | fail: | |
8363 | return NULL; | |
8364 | } | |
8365 | ||
8366 | ||
8367 | SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8368 | PyObject *resultobj = 0; | |
8369 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8370 | void *argp1 = 0 ; | |
8371 | int res1 = 0 ; | |
8372 | PyObject *swig_obj[1] ; | |
8373 | ||
8374 | if (!args) SWIG_fail; | |
8375 | swig_obj[0] = args; | |
8376 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8377 | if (!SWIG_IsOK(res1)) { | |
8378 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8379 | } | |
8380 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8381 | { | |
8382 | (arg1)->UseAlpha(); | |
8383 | if (PyErr_Occurred()) SWIG_fail; | |
8384 | } | |
8385 | resultobj = SWIG_Py_Void(); | |
8386 | return resultobj; | |
8387 | fail: | |
8388 | return NULL; | |
8389 | } | |
8390 | ||
8391 | ||
8392 | SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8393 | PyObject *resultobj = 0; | |
8394 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8395 | bool result; | |
8396 | void *argp1 = 0 ; | |
8397 | int res1 = 0 ; | |
8398 | PyObject *swig_obj[1] ; | |
8399 | ||
8400 | if (!args) SWIG_fail; | |
8401 | swig_obj[0] = args; | |
8402 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8403 | if (!SWIG_IsOK(res1)) { | |
8404 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8405 | } | |
8406 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8407 | { | |
8408 | result = (bool)wxAlphaPixelData___nonzero__(arg1); | |
8409 | if (PyErr_Occurred()) SWIG_fail; | |
8410 | } | |
8411 | { | |
8412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8413 | } | |
8414 | return resultobj; | |
8415 | fail: | |
8416 | return NULL; | |
8417 | } | |
8418 | ||
8419 | ||
8420 | SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8421 | PyObject *obj; | |
8422 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8423 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj)); | |
8424 | return SWIG_Py_Void(); | |
8425 | } | |
8426 | ||
8427 | SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8428 | return SWIG_Python_InitShadowInstance(args); | |
8429 | } | |
8430 | ||
8431 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8432 | PyObject *resultobj = 0; | |
8433 | wxAlphaPixelData *arg1 = 0 ; | |
8434 | wxAlphaPixelData_Accessor *result = 0 ; | |
8435 | void *argp1 = 0 ; | |
8436 | int res1 = 0 ; | |
8437 | ||
8438 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
8439 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 ); | |
8440 | if (!SWIG_IsOK(res1)) { | |
8441 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'"); | |
8442 | } | |
8443 | if (!argp1) { | |
8444 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'"); | |
8445 | } | |
8446 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8447 | { | |
8448 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1); | |
8449 | if (PyErr_Occurred()) SWIG_fail; | |
8450 | } | |
8451 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8452 | return resultobj; | |
8453 | fail: | |
8454 | return NULL; | |
8455 | } | |
8456 | ||
8457 | ||
8458 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8459 | PyObject *resultobj = 0; | |
8460 | wxBitmap *arg1 = 0 ; | |
8461 | wxAlphaPixelData *arg2 = 0 ; | |
8462 | wxAlphaPixelData_Accessor *result = 0 ; | |
8463 | void *argp1 = 0 ; | |
8464 | int res1 = 0 ; | |
8465 | void *argp2 = 0 ; | |
8466 | int res2 = 0 ; | |
8467 | ||
8468 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
8469 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8470 | if (!SWIG_IsOK(res1)) { | |
8471 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8472 | } | |
8473 | if (!argp1) { | |
8474 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8475 | } | |
8476 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8477 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 ); | |
8478 | if (!SWIG_IsOK(res2)) { | |
8479 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'"); | |
8480 | } | |
8481 | if (!argp2) { | |
8482 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'"); | |
8483 | } | |
8484 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8485 | { | |
8486 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2); | |
8487 | if (PyErr_Occurred()) SWIG_fail; | |
8488 | } | |
8489 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8490 | return resultobj; | |
8491 | fail: | |
8492 | return NULL; | |
8493 | } | |
8494 | ||
8495 | ||
8496 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { | |
8497 | PyObject *resultobj = 0; | |
8498 | wxAlphaPixelData_Accessor *result = 0 ; | |
8499 | ||
8500 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
8501 | { | |
8502 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(); | |
8503 | if (PyErr_Occurred()) SWIG_fail; | |
8504 | } | |
8505 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8506 | return resultobj; | |
8507 | fail: | |
8508 | return NULL; | |
8509 | } | |
8510 | ||
8511 | ||
8512 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) { | |
8513 | int argc; | |
8514 | PyObject *argv[3]; | |
8515 | ||
8516 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail; | |
8517 | --argc; | |
8518 | if (argc == 0) { | |
8519 | return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv); | |
8520 | } | |
8521 | if (argc == 1) { | |
8522 | return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv); | |
8523 | } | |
8524 | if (argc == 2) { | |
8525 | return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv); | |
8526 | } | |
8527 | ||
8528 | fail: | |
8529 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'"); | |
8530 | return NULL; | |
8531 | } | |
8532 | ||
8533 | ||
8534 | SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8535 | PyObject *resultobj = 0; | |
8536 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8537 | void *argp1 = 0 ; | |
8538 | int res1 = 0 ; | |
8539 | PyObject *swig_obj[1] ; | |
8540 | ||
8541 | if (!args) SWIG_fail; | |
8542 | swig_obj[0] = args; | |
8543 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 ); | |
8544 | if (!SWIG_IsOK(res1)) { | |
8545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8546 | } | |
8547 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8548 | { | |
8549 | delete arg1; | |
8550 | ||
8551 | if (PyErr_Occurred()) SWIG_fail; | |
8552 | } | |
8553 | resultobj = SWIG_Py_Void(); | |
8554 | return resultobj; | |
8555 | fail: | |
8556 | return NULL; | |
8557 | } | |
8558 | ||
8559 | ||
8560 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8561 | PyObject *resultobj = 0; | |
8562 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8563 | wxAlphaPixelData *arg2 = 0 ; | |
8564 | void *argp1 = 0 ; | |
8565 | int res1 = 0 ; | |
8566 | void *argp2 = 0 ; | |
8567 | int res2 = 0 ; | |
8568 | PyObject * obj0 = 0 ; | |
8569 | PyObject * obj1 = 0 ; | |
8570 | char * kwnames[] = { | |
8571 | (char *) "self",(char *) "data", NULL | |
8572 | }; | |
8573 | ||
8574 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail; | |
8575 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8576 | if (!SWIG_IsOK(res1)) { | |
8577 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8578 | } | |
8579 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8580 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8581 | if (!SWIG_IsOK(res2)) { | |
8582 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8583 | } | |
8584 | if (!argp2) { | |
8585 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8586 | } | |
8587 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8588 | { | |
8589 | (arg1)->Reset((wxAlphaPixelData const &)*arg2); | |
8590 | if (PyErr_Occurred()) SWIG_fail; | |
8591 | } | |
8592 | resultobj = SWIG_Py_Void(); | |
8593 | return resultobj; | |
8594 | fail: | |
8595 | return NULL; | |
8596 | } | |
8597 | ||
8598 | ||
8599 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8600 | PyObject *resultobj = 0; | |
8601 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8602 | bool result; | |
8603 | void *argp1 = 0 ; | |
8604 | int res1 = 0 ; | |
8605 | PyObject *swig_obj[1] ; | |
8606 | ||
8607 | if (!args) SWIG_fail; | |
8608 | swig_obj[0] = args; | |
8609 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8610 | if (!SWIG_IsOK(res1)) { | |
8611 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'"); | |
8612 | } | |
8613 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8614 | { | |
8615 | result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk(); | |
8616 | if (PyErr_Occurred()) SWIG_fail; | |
8617 | } | |
8618 | { | |
8619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8620 | } | |
8621 | return resultobj; | |
8622 | fail: | |
8623 | return NULL; | |
8624 | } | |
8625 | ||
8626 | ||
8627 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8628 | PyObject *resultobj = 0; | |
8629 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8630 | void *argp1 = 0 ; | |
8631 | int res1 = 0 ; | |
8632 | PyObject *swig_obj[1] ; | |
8633 | ||
8634 | if (!args) SWIG_fail; | |
8635 | swig_obj[0] = args; | |
8636 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8637 | if (!SWIG_IsOK(res1)) { | |
8638 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8639 | } | |
8640 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8641 | { | |
8642 | wxAlphaPixelData_Accessor_nextPixel(arg1); | |
8643 | if (PyErr_Occurred()) SWIG_fail; | |
8644 | } | |
8645 | resultobj = SWIG_Py_Void(); | |
8646 | return resultobj; | |
8647 | fail: | |
8648 | return NULL; | |
8649 | } | |
8650 | ||
8651 | ||
8652 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8653 | PyObject *resultobj = 0; | |
8654 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8655 | wxAlphaPixelData *arg2 = 0 ; | |
8656 | int arg3 ; | |
8657 | int arg4 ; | |
8658 | void *argp1 = 0 ; | |
8659 | int res1 = 0 ; | |
8660 | void *argp2 = 0 ; | |
8661 | int res2 = 0 ; | |
8662 | int val3 ; | |
8663 | int ecode3 = 0 ; | |
8664 | int val4 ; | |
8665 | int ecode4 = 0 ; | |
8666 | PyObject * obj0 = 0 ; | |
8667 | PyObject * obj1 = 0 ; | |
8668 | PyObject * obj2 = 0 ; | |
8669 | PyObject * obj3 = 0 ; | |
8670 | char * kwnames[] = { | |
8671 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8672 | }; | |
8673 | ||
8674 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8675 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8676 | if (!SWIG_IsOK(res1)) { | |
8677 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8678 | } | |
8679 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8680 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8681 | if (!SWIG_IsOK(res2)) { | |
8682 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8683 | } | |
8684 | if (!argp2) { | |
8685 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8686 | } | |
8687 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8688 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8689 | if (!SWIG_IsOK(ecode3)) { | |
8690 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'"); | |
8691 | } | |
8692 | arg3 = static_cast< int >(val3); | |
8693 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8694 | if (!SWIG_IsOK(ecode4)) { | |
8695 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'"); | |
8696 | } | |
8697 | arg4 = static_cast< int >(val4); | |
8698 | { | |
8699 | (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4); | |
8700 | if (PyErr_Occurred()) SWIG_fail; | |
8701 | } | |
8702 | resultobj = SWIG_Py_Void(); | |
8703 | return resultobj; | |
8704 | fail: | |
8705 | return NULL; | |
8706 | } | |
8707 | ||
8708 | ||
8709 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8710 | PyObject *resultobj = 0; | |
8711 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8712 | wxAlphaPixelData *arg2 = 0 ; | |
8713 | int arg3 ; | |
8714 | void *argp1 = 0 ; | |
8715 | int res1 = 0 ; | |
8716 | void *argp2 = 0 ; | |
8717 | int res2 = 0 ; | |
8718 | int val3 ; | |
8719 | int ecode3 = 0 ; | |
8720 | PyObject * obj0 = 0 ; | |
8721 | PyObject * obj1 = 0 ; | |
8722 | PyObject * obj2 = 0 ; | |
8723 | char * kwnames[] = { | |
8724 | (char *) "self",(char *) "data",(char *) "x", NULL | |
8725 | }; | |
8726 | ||
8727 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8728 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8729 | if (!SWIG_IsOK(res1)) { | |
8730 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8731 | } | |
8732 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8733 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8734 | if (!SWIG_IsOK(res2)) { | |
8735 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8736 | } | |
8737 | if (!argp2) { | |
8738 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8739 | } | |
8740 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8741 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8742 | if (!SWIG_IsOK(ecode3)) { | |
8743 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'"); | |
8744 | } | |
8745 | arg3 = static_cast< int >(val3); | |
8746 | { | |
8747 | (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3); | |
8748 | if (PyErr_Occurred()) SWIG_fail; | |
8749 | } | |
8750 | resultobj = SWIG_Py_Void(); | |
8751 | return resultobj; | |
8752 | fail: | |
8753 | return NULL; | |
8754 | } | |
8755 | ||
8756 | ||
8757 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8758 | PyObject *resultobj = 0; | |
8759 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8760 | wxAlphaPixelData *arg2 = 0 ; | |
8761 | int arg3 ; | |
8762 | void *argp1 = 0 ; | |
8763 | int res1 = 0 ; | |
8764 | void *argp2 = 0 ; | |
8765 | int res2 = 0 ; | |
8766 | int val3 ; | |
8767 | int ecode3 = 0 ; | |
8768 | PyObject * obj0 = 0 ; | |
8769 | PyObject * obj1 = 0 ; | |
8770 | PyObject * obj2 = 0 ; | |
8771 | char * kwnames[] = { | |
8772 | (char *) "self",(char *) "data",(char *) "y", NULL | |
8773 | }; | |
8774 | ||
8775 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8776 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8777 | if (!SWIG_IsOK(res1)) { | |
8778 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8779 | } | |
8780 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8781 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8782 | if (!SWIG_IsOK(res2)) { | |
8783 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8784 | } | |
8785 | if (!argp2) { | |
8786 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8787 | } | |
8788 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8789 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8790 | if (!SWIG_IsOK(ecode3)) { | |
8791 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'"); | |
8792 | } | |
8793 | arg3 = static_cast< int >(val3); | |
8794 | { | |
8795 | (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3); | |
8796 | if (PyErr_Occurred()) SWIG_fail; | |
8797 | } | |
8798 | resultobj = SWIG_Py_Void(); | |
8799 | return resultobj; | |
8800 | fail: | |
8801 | return NULL; | |
8802 | } | |
8803 | ||
8804 | ||
8805 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8806 | PyObject *resultobj = 0; | |
8807 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8808 | wxAlphaPixelData *arg2 = 0 ; | |
8809 | int arg3 ; | |
8810 | int arg4 ; | |
8811 | void *argp1 = 0 ; | |
8812 | int res1 = 0 ; | |
8813 | void *argp2 = 0 ; | |
8814 | int res2 = 0 ; | |
8815 | int val3 ; | |
8816 | int ecode3 = 0 ; | |
8817 | int val4 ; | |
8818 | int ecode4 = 0 ; | |
8819 | PyObject * obj0 = 0 ; | |
8820 | PyObject * obj1 = 0 ; | |
8821 | PyObject * obj2 = 0 ; | |
8822 | PyObject * obj3 = 0 ; | |
8823 | char * kwnames[] = { | |
8824 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8825 | }; | |
8826 | ||
8827 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8828 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8829 | if (!SWIG_IsOK(res1)) { | |
8830 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8831 | } | |
8832 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8833 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8834 | if (!SWIG_IsOK(res2)) { | |
8835 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8836 | } | |
8837 | if (!argp2) { | |
8838 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8839 | } | |
8840 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8841 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8842 | if (!SWIG_IsOK(ecode3)) { | |
8843 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'"); | |
8844 | } | |
8845 | arg3 = static_cast< int >(val3); | |
8846 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8847 | if (!SWIG_IsOK(ecode4)) { | |
8848 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'"); | |
8849 | } | |
8850 | arg4 = static_cast< int >(val4); | |
8851 | { | |
8852 | (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4); | |
8853 | if (PyErr_Occurred()) SWIG_fail; | |
8854 | } | |
8855 | resultobj = SWIG_Py_Void(); | |
8856 | return resultobj; | |
8857 | fail: | |
8858 | return NULL; | |
8859 | } | |
8860 | ||
8861 | ||
8862 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8863 | PyObject *resultobj = 0; | |
8864 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8865 | byte arg2 ; | |
8866 | byte arg3 ; | |
8867 | byte arg4 ; | |
8868 | byte arg5 ; | |
8869 | void *argp1 = 0 ; | |
8870 | int res1 = 0 ; | |
8871 | unsigned char val2 ; | |
8872 | int ecode2 = 0 ; | |
8873 | unsigned char val3 ; | |
8874 | int ecode3 = 0 ; | |
8875 | unsigned char val4 ; | |
8876 | int ecode4 = 0 ; | |
8877 | unsigned char val5 ; | |
8878 | int ecode5 = 0 ; | |
8879 | PyObject * obj0 = 0 ; | |
8880 | PyObject * obj1 = 0 ; | |
8881 | PyObject * obj2 = 0 ; | |
8882 | PyObject * obj3 = 0 ; | |
8883 | PyObject * obj4 = 0 ; | |
8884 | char * kwnames[] = { | |
8885 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL | |
8886 | }; | |
8887 | ||
8888 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
8889 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8890 | if (!SWIG_IsOK(res1)) { | |
8891 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8892 | } | |
8893 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8894 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
8895 | if (!SWIG_IsOK(ecode2)) { | |
8896 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'"); | |
8897 | } | |
8898 | arg2 = static_cast< byte >(val2); | |
8899 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
8900 | if (!SWIG_IsOK(ecode3)) { | |
8901 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'"); | |
8902 | } | |
8903 | arg3 = static_cast< byte >(val3); | |
8904 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
8905 | if (!SWIG_IsOK(ecode4)) { | |
8906 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'"); | |
8907 | } | |
8908 | arg4 = static_cast< byte >(val4); | |
8909 | ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); | |
8910 | if (!SWIG_IsOK(ecode5)) { | |
8911 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'"); | |
8912 | } | |
8913 | arg5 = static_cast< byte >(val5); | |
8914 | { | |
8915 | wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5); | |
8916 | if (PyErr_Occurred()) SWIG_fail; | |
0085ce49 | 8917 | } |
fc46b7f3 | 8918 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
8919 | return resultobj; |
8920 | fail: | |
8921 | return NULL; | |
8922 | } | |
8923 | ||
8924 | ||
fc46b7f3 | 8925 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 8926 | PyObject *resultobj = 0; |
fc46b7f3 RD |
8927 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; |
8928 | PyObject *result = 0 ; | |
0085ce49 RD |
8929 | void *argp1 = 0 ; |
8930 | int res1 = 0 ; | |
fc46b7f3 | 8931 | PyObject *swig_obj[1] ; |
0085ce49 | 8932 | |
fc46b7f3 RD |
8933 | if (!args) SWIG_fail; |
8934 | swig_obj[0] = args; | |
8935 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
0085ce49 | 8936 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 8937 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); |
0085ce49 | 8938 | } |
fc46b7f3 | 8939 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); |
0085ce49 | 8940 | { |
fc46b7f3 | 8941 | result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1); |
0085ce49 RD |
8942 | if (PyErr_Occurred()) SWIG_fail; |
8943 | } | |
fc46b7f3 | 8944 | resultobj = result; |
0085ce49 RD |
8945 | return resultobj; |
8946 | fail: | |
8947 | return NULL; | |
d14a1e28 RD |
8948 | } |
8949 | ||
8950 | ||
fc46b7f3 | 8951 | SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
8952 | PyObject *obj; |
8953 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
fc46b7f3 | 8954 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj)); |
0085ce49 | 8955 | return SWIG_Py_Void(); |
b2df227b RD |
8956 | } |
8957 | ||
fc46b7f3 | 8958 | SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 8959 | return SWIG_Python_InitShadowInstance(args); |
d14a1e28 RD |
8960 | } |
8961 | ||
0085ce49 RD |
8962 | SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
8963 | PyObject *resultobj = 0; | |
8964 | wxBitmap *arg1 = 0 ; | |
8965 | wxColour const &arg2_defvalue = wxNullColour ; | |
8966 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
8967 | wxMask *result = 0 ; | |
8968 | void *argp1 = 0 ; | |
8969 | int res1 = 0 ; | |
8970 | wxColour temp2 ; | |
8971 | PyObject * obj0 = 0 ; | |
8972 | PyObject * obj1 = 0 ; | |
8973 | char * kwnames[] = { | |
8974 | (char *) "bitmap",(char *) "colour", NULL | |
8975 | }; | |
8976 | ||
8977 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail; | |
8978 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8979 | if (!SWIG_IsOK(res1)) { | |
8980 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8981 | } | |
8982 | if (!argp1) { | |
8983 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8984 | } | |
8985 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8986 | if (obj1) { | |
d14a1e28 | 8987 | { |
0085ce49 RD |
8988 | arg2 = &temp2; |
8989 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 | 8990 | } |
0085ce49 RD |
8991 | } |
8992 | { | |
8993 | if (!wxPyCheckForApp()) SWIG_fail; | |
8994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8995 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
8996 | wxPyEndAllowThreads(__tstate); | |
8997 | if (PyErr_Occurred()) SWIG_fail; | |
8998 | } | |
8999 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 ); | |
9000 | return resultobj; | |
9001 | fail: | |
9002 | return NULL; | |
d14a1e28 RD |
9003 | } |
9004 | ||
9005 | ||
0085ce49 RD |
9006 | SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9007 | PyObject *resultobj = 0; | |
9008 | wxMask *arg1 = (wxMask *) 0 ; | |
9009 | void *argp1 = 0 ; | |
9010 | int res1 = 0 ; | |
9011 | PyObject *swig_obj[1] ; | |
9012 | ||
9013 | if (!args) SWIG_fail; | |
9014 | swig_obj[0] = args; | |
9015 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
9016 | if (!SWIG_IsOK(res1)) { | |
9017 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'"); | |
9018 | } | |
9019 | arg1 = reinterpret_cast< wxMask * >(argp1); | |
9020 | { | |
0085ce49 | 9021 | delete arg1; |
d14a1e28 | 9022 | |
0085ce49 RD |
9023 | if (PyErr_Occurred()) SWIG_fail; |
9024 | } | |
9025 | resultobj = SWIG_Py_Void(); | |
9026 | return resultobj; | |
9027 | fail: | |
9028 | return NULL; | |
9029 | } | |
9030 | ||
9031 | ||
9032 | SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9033 | PyObject *obj; | |
9034 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9035 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj)); | |
9036 | return SWIG_Py_Void(); | |
9037 | } | |
9038 | ||
9039 | SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9040 | return SWIG_Python_InitShadowInstance(args); | |
9041 | } | |
9042 | ||
9043 | SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9044 | PyObject *resultobj = 0; | |
9045 | wxString *arg1 = 0 ; | |
9046 | wxBitmapType arg2 ; | |
9047 | int arg3 = (int) -1 ; | |
9048 | int arg4 = (int) -1 ; | |
9049 | wxIcon *result = 0 ; | |
9050 | bool temp1 = false ; | |
9051 | int val2 ; | |
9052 | int ecode2 = 0 ; | |
9053 | int val3 ; | |
9054 | int ecode3 = 0 ; | |
9055 | int val4 ; | |
9056 | int ecode4 = 0 ; | |
9057 | PyObject * obj0 = 0 ; | |
9058 | PyObject * obj1 = 0 ; | |
9059 | PyObject * obj2 = 0 ; | |
9060 | PyObject * obj3 = 0 ; | |
9061 | char * kwnames[] = { | |
9062 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
9063 | }; | |
9064 | ||
9065 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9066 | { | |
9067 | arg1 = wxString_in_helper(obj0); | |
9068 | if (arg1 == NULL) SWIG_fail; | |
9069 | temp1 = true; | |
9070 | } | |
9071 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9072 | if (!SWIG_IsOK(ecode2)) { | |
9073 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
9074 | } | |
9075 | arg2 = static_cast< wxBitmapType >(val2); | |
9076 | if (obj2) { | |
9077 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9078 | if (!SWIG_IsOK(ecode3)) { | |
9079 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'"); | |
9080 | } | |
9081 | arg3 = static_cast< int >(val3); | |
9082 | } | |
9083 | if (obj3) { | |
9084 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9085 | if (!SWIG_IsOK(ecode4)) { | |
9086 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'"); | |
9087 | } | |
9088 | arg4 = static_cast< int >(val4); | |
9089 | } | |
9090 | { | |
9091 | if (!wxPyCheckForApp()) SWIG_fail; | |
9092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9093 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4); | |
9094 | wxPyEndAllowThreads(__tstate); | |
9095 | if (PyErr_Occurred()) SWIG_fail; | |
9096 | } | |
9097 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 ); | |
9098 | { | |
9099 | if (temp1) | |
9100 | delete arg1; | |
9101 | } | |
9102 | return resultobj; | |
9103 | fail: | |
9104 | { | |
9105 | if (temp1) | |
9106 | delete arg1; | |
9107 | } | |
9108 | return NULL; | |
d14a1e28 RD |
9109 | } |
9110 | ||
9111 | ||
0085ce49 RD |
9112 | SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9113 | PyObject *resultobj = 0; | |
9114 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9115 | void *argp1 = 0 ; | |
9116 | int res1 = 0 ; | |
9117 | PyObject *swig_obj[1] ; | |
9118 | ||
9119 | if (!args) SWIG_fail; | |
9120 | swig_obj[0] = args; | |
9121 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 ); | |
9122 | if (!SWIG_IsOK(res1)) { | |
9123 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9124 | } | |
9125 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9126 | { | |
9127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9128 | delete arg1; | |
d14a1e28 | 9129 | |
0085ce49 RD |
9130 | wxPyEndAllowThreads(__tstate); |
9131 | if (PyErr_Occurred()) SWIG_fail; | |
9132 | } | |
9133 | resultobj = SWIG_Py_Void(); | |
9134 | return resultobj; | |
9135 | fail: | |
9136 | return NULL; | |
d14a1e28 RD |
9137 | } |
9138 | ||
9139 | ||
0085ce49 RD |
9140 | SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9141 | PyObject *resultobj = 0; | |
9142 | wxIcon *result = 0 ; | |
9143 | ||
9144 | if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail; | |
9145 | { | |
9146 | if (!wxPyCheckForApp()) SWIG_fail; | |
9147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9148 | result = (wxIcon *)new wxIcon(); | |
9149 | wxPyEndAllowThreads(__tstate); | |
9150 | if (PyErr_Occurred()) SWIG_fail; | |
9151 | } | |
9152 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9153 | return resultobj; | |
9154 | fail: | |
9155 | return NULL; | |
9156 | } | |
9157 | ||
9158 | ||
9159 | SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9160 | PyObject *resultobj = 0; | |
9161 | wxIconLocation *arg1 = 0 ; | |
9162 | wxIcon *result = 0 ; | |
9163 | void *argp1 = 0 ; | |
9164 | int res1 = 0 ; | |
9165 | PyObject * obj0 = 0 ; | |
9166 | char * kwnames[] = { | |
9167 | (char *) "loc", NULL | |
9168 | }; | |
9169 | ||
9170 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail; | |
9171 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0); | |
9172 | if (!SWIG_IsOK(res1)) { | |
9173 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
9174 | } | |
9175 | if (!argp1) { | |
9176 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
9177 | } | |
9178 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9179 | { | |
9180 | if (!wxPyCheckForApp()) SWIG_fail; | |
9181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9182 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
9183 | wxPyEndAllowThreads(__tstate); | |
9184 | if (PyErr_Occurred()) SWIG_fail; | |
9185 | } | |
9186 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9187 | return resultobj; | |
9188 | fail: | |
9189 | return NULL; | |
9190 | } | |
9191 | ||
9192 | ||
9193 | SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9194 | PyObject *resultobj = 0; | |
9195 | wxBitmap *arg1 = 0 ; | |
9196 | wxIcon *result = 0 ; | |
9197 | void *argp1 = 0 ; | |
9198 | int res1 = 0 ; | |
9199 | PyObject * obj0 = 0 ; | |
9200 | char * kwnames[] = { | |
9201 | (char *) "bmp", NULL | |
9202 | }; | |
9203 | ||
9204 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail; | |
9205 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9206 | if (!SWIG_IsOK(res1)) { | |
9207 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9208 | } | |
9209 | if (!argp1) { | |
9210 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9211 | } | |
9212 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
9213 | { | |
9214 | if (!wxPyCheckForApp()) SWIG_fail; | |
9215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9216 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
9217 | wxPyEndAllowThreads(__tstate); | |
9218 | if (PyErr_Occurred()) SWIG_fail; | |
9219 | } | |
9220 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9221 | return resultobj; | |
9222 | fail: | |
9223 | return NULL; | |
d14a1e28 RD |
9224 | } |
9225 | ||
9226 | ||
0085ce49 RD |
9227 | SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9228 | PyObject *resultobj = 0; | |
9229 | PyObject *arg1 = (PyObject *) 0 ; | |
9230 | wxIcon *result = 0 ; | |
9231 | PyObject * obj0 = 0 ; | |
9232 | char * kwnames[] = { | |
9233 | (char *) "listOfStrings", NULL | |
9234 | }; | |
9235 | ||
9236 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail; | |
9237 | arg1 = obj0; | |
9238 | { | |
9239 | if (!wxPyCheckForApp()) SWIG_fail; | |
9240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9241 | result = (wxIcon *)new_wxIcon(arg1); | |
9242 | wxPyEndAllowThreads(__tstate); | |
9243 | if (PyErr_Occurred()) SWIG_fail; | |
9244 | } | |
9245 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9246 | return resultobj; | |
9247 | fail: | |
9248 | return NULL; | |
9249 | } | |
9250 | ||
9251 | ||
9252 | SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9253 | PyObject *resultobj = 0; | |
9254 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9255 | wxString *arg2 = 0 ; | |
9256 | wxBitmapType arg3 ; | |
9257 | bool result; | |
9258 | void *argp1 = 0 ; | |
9259 | int res1 = 0 ; | |
9260 | bool temp2 = false ; | |
9261 | int val3 ; | |
9262 | int ecode3 = 0 ; | |
9263 | PyObject * obj0 = 0 ; | |
9264 | PyObject * obj1 = 0 ; | |
9265 | PyObject * obj2 = 0 ; | |
9266 | char * kwnames[] = { | |
9267 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9268 | }; | |
9269 | ||
9270 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9271 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9272 | if (!SWIG_IsOK(res1)) { | |
9273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9274 | } | |
9275 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9276 | { | |
9277 | arg2 = wxString_in_helper(obj1); | |
9278 | if (arg2 == NULL) SWIG_fail; | |
9279 | temp2 = true; | |
9280 | } | |
9281 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9282 | if (!SWIG_IsOK(ecode3)) { | |
9283 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
9284 | } | |
9285 | arg3 = static_cast< wxBitmapType >(val3); | |
9286 | { | |
9287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9288 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); | |
9289 | wxPyEndAllowThreads(__tstate); | |
9290 | if (PyErr_Occurred()) SWIG_fail; | |
9291 | } | |
9292 | { | |
9293 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9294 | } | |
9295 | { | |
9296 | if (temp2) | |
9297 | delete arg2; | |
9298 | } | |
9299 | return resultobj; | |
9300 | fail: | |
9301 | { | |
9302 | if (temp2) | |
9303 | delete arg2; | |
9304 | } | |
9305 | return NULL; | |
d14a1e28 RD |
9306 | } |
9307 | ||
9308 | ||
b39fe951 | 9309 | SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
9310 | PyObject *resultobj = 0; |
9311 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9312 | bool result; | |
9313 | void *argp1 = 0 ; | |
9314 | int res1 = 0 ; | |
9315 | PyObject *swig_obj[1] ; | |
9316 | ||
9317 | if (!args) SWIG_fail; | |
9318 | swig_obj[0] = args; | |
9319 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9320 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 9321 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'"); |
0085ce49 RD |
9322 | } |
9323 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9324 | { | |
9325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 9326 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
9327 | wxPyEndAllowThreads(__tstate); |
9328 | if (PyErr_Occurred()) SWIG_fail; | |
9329 | } | |
9330 | { | |
9331 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9332 | } | |
9333 | return resultobj; | |
9334 | fail: | |
9335 | return NULL; | |
d14a1e28 RD |
9336 | } |
9337 | ||
9338 | ||
0085ce49 RD |
9339 | SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9340 | PyObject *resultobj = 0; | |
9341 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9342 | int result; | |
9343 | void *argp1 = 0 ; | |
9344 | int res1 = 0 ; | |
9345 | PyObject *swig_obj[1] ; | |
9346 | ||
9347 | if (!args) SWIG_fail; | |
9348 | swig_obj[0] = args; | |
9349 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9350 | if (!SWIG_IsOK(res1)) { | |
9351 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9352 | } | |
9353 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9354 | { | |
9355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9356 | result = (int)(arg1)->GetWidth(); | |
9357 | wxPyEndAllowThreads(__tstate); | |
9358 | if (PyErr_Occurred()) SWIG_fail; | |
9359 | } | |
9360 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9361 | return resultobj; | |
9362 | fail: | |
9363 | return NULL; | |
d3b6e4ff RD |
9364 | } |
9365 | ||
9366 | ||
0085ce49 RD |
9367 | SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9368 | PyObject *resultobj = 0; | |
9369 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9370 | int result; | |
9371 | void *argp1 = 0 ; | |
9372 | int res1 = 0 ; | |
9373 | PyObject *swig_obj[1] ; | |
9374 | ||
9375 | if (!args) SWIG_fail; | |
9376 | swig_obj[0] = args; | |
9377 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9378 | if (!SWIG_IsOK(res1)) { | |
9379 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9380 | } | |
9381 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9382 | { | |
9383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9384 | result = (int)(arg1)->GetHeight(); | |
9385 | wxPyEndAllowThreads(__tstate); | |
9386 | if (PyErr_Occurred()) SWIG_fail; | |
9387 | } | |
9388 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9389 | return resultobj; | |
9390 | fail: | |
9391 | return NULL; | |
d14a1e28 RD |
9392 | } |
9393 | ||
9394 | ||
0085ce49 RD |
9395 | SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9396 | PyObject *resultobj = 0; | |
9397 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9398 | int result; | |
9399 | void *argp1 = 0 ; | |
9400 | int res1 = 0 ; | |
9401 | PyObject *swig_obj[1] ; | |
9402 | ||
9403 | if (!args) SWIG_fail; | |
9404 | swig_obj[0] = args; | |
9405 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9406 | if (!SWIG_IsOK(res1)) { | |
9407 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9408 | } | |
9409 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9410 | { | |
9411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9412 | result = (int)(arg1)->GetDepth(); | |
9413 | wxPyEndAllowThreads(__tstate); | |
9414 | if (PyErr_Occurred()) SWIG_fail; | |
9415 | } | |
9416 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9417 | return resultobj; | |
9418 | fail: | |
9419 | return NULL; | |
9420 | } | |
9421 | ||
9422 | ||
9423 | SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9424 | PyObject *resultobj = 0; | |
9425 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9426 | int arg2 ; | |
9427 | void *argp1 = 0 ; | |
9428 | int res1 = 0 ; | |
9429 | int val2 ; | |
9430 | int ecode2 = 0 ; | |
9431 | PyObject * obj0 = 0 ; | |
9432 | PyObject * obj1 = 0 ; | |
9433 | char * kwnames[] = { | |
9434 | (char *) "self",(char *) "w", NULL | |
9435 | }; | |
9436 | ||
9437 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
9438 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9439 | if (!SWIG_IsOK(res1)) { | |
9440 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9441 | } | |
9442 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9443 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9444 | if (!SWIG_IsOK(ecode2)) { | |
9445 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
9446 | } | |
9447 | arg2 = static_cast< int >(val2); | |
9448 | { | |
9449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9450 | (arg1)->SetWidth(arg2); | |
9451 | wxPyEndAllowThreads(__tstate); | |
9452 | if (PyErr_Occurred()) SWIG_fail; | |
9453 | } | |
9454 | resultobj = SWIG_Py_Void(); | |
9455 | return resultobj; | |
9456 | fail: | |
9457 | return NULL; | |
9458 | } | |
9459 | ||
9460 | ||
9461 | SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9462 | PyObject *resultobj = 0; | |
9463 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9464 | int arg2 ; | |
9465 | void *argp1 = 0 ; | |
9466 | int res1 = 0 ; | |
9467 | int val2 ; | |
9468 | int ecode2 = 0 ; | |
9469 | PyObject * obj0 = 0 ; | |
9470 | PyObject * obj1 = 0 ; | |
9471 | char * kwnames[] = { | |
9472 | (char *) "self",(char *) "h", NULL | |
9473 | }; | |
9474 | ||
9475 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
9476 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9477 | if (!SWIG_IsOK(res1)) { | |
9478 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9479 | } | |
9480 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9481 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9482 | if (!SWIG_IsOK(ecode2)) { | |
9483 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
9484 | } | |
9485 | arg2 = static_cast< int >(val2); | |
9486 | { | |
9487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9488 | (arg1)->SetHeight(arg2); | |
9489 | wxPyEndAllowThreads(__tstate); | |
9490 | if (PyErr_Occurred()) SWIG_fail; | |
9491 | } | |
9492 | resultobj = SWIG_Py_Void(); | |
9493 | return resultobj; | |
9494 | fail: | |
9495 | return NULL; | |
9496 | } | |
9497 | ||
9498 | ||
9499 | SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9500 | PyObject *resultobj = 0; | |
9501 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9502 | int arg2 ; | |
9503 | void *argp1 = 0 ; | |
9504 | int res1 = 0 ; | |
9505 | int val2 ; | |
9506 | int ecode2 = 0 ; | |
9507 | PyObject * obj0 = 0 ; | |
9508 | PyObject * obj1 = 0 ; | |
9509 | char * kwnames[] = { | |
9510 | (char *) "self",(char *) "d", NULL | |
9511 | }; | |
9512 | ||
9513 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
9514 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9515 | if (!SWIG_IsOK(res1)) { | |
9516 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9517 | } | |
9518 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9519 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9520 | if (!SWIG_IsOK(ecode2)) { | |
9521 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
9522 | } | |
9523 | arg2 = static_cast< int >(val2); | |
9524 | { | |
9525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9526 | (arg1)->SetDepth(arg2); | |
9527 | wxPyEndAllowThreads(__tstate); | |
9528 | if (PyErr_Occurred()) SWIG_fail; | |
9529 | } | |
9530 | resultobj = SWIG_Py_Void(); | |
9531 | return resultobj; | |
9532 | fail: | |
9533 | return NULL; | |
9534 | } | |
9535 | ||
9536 | ||
9537 | SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9538 | PyObject *resultobj = 0; | |
9539 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9540 | wxBitmap *arg2 = 0 ; | |
9541 | void *argp1 = 0 ; | |
9542 | int res1 = 0 ; | |
9543 | void *argp2 = 0 ; | |
9544 | int res2 = 0 ; | |
9545 | PyObject * obj0 = 0 ; | |
9546 | PyObject * obj1 = 0 ; | |
9547 | char * kwnames[] = { | |
9548 | (char *) "self",(char *) "bmp", NULL | |
9549 | }; | |
9550 | ||
9551 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
9552 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9553 | if (!SWIG_IsOK(res1)) { | |
9554 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9555 | } | |
9556 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9557 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9558 | if (!SWIG_IsOK(res2)) { | |
9559 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9560 | } | |
9561 | if (!argp2) { | |
9562 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9563 | } | |
9564 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
9565 | { | |
9566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9567 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
9568 | wxPyEndAllowThreads(__tstate); | |
9569 | if (PyErr_Occurred()) SWIG_fail; | |
9570 | } | |
9571 | resultobj = SWIG_Py_Void(); | |
9572 | return resultobj; | |
9573 | fail: | |
9574 | return NULL; | |
d14a1e28 RD |
9575 | } |
9576 | ||
9577 | ||
0085ce49 RD |
9578 | SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9579 | PyObject *obj; | |
9580 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9581 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj)); | |
9582 | return SWIG_Py_Void(); | |
d14a1e28 RD |
9583 | } |
9584 | ||
0085ce49 RD |
9585 | SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9586 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
9587 | } |
9588 | ||
0085ce49 RD |
9589 | SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9590 | PyObject *resultobj = 0; | |
9591 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
9592 | int arg2 = (int) 0 ; | |
9593 | wxIconLocation *result = 0 ; | |
9594 | bool temp1 = false ; | |
9595 | int val2 ; | |
9596 | int ecode2 = 0 ; | |
9597 | PyObject * obj0 = 0 ; | |
9598 | PyObject * obj1 = 0 ; | |
9599 | char * kwnames[] = { | |
9600 | (char *) "filename",(char *) "num", NULL | |
9601 | }; | |
9602 | ||
9603 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail; | |
9604 | if (obj0) { | |
b2df227b | 9605 | { |
0085ce49 RD |
9606 | arg1 = wxString_in_helper(obj0); |
9607 | if (arg1 == NULL) SWIG_fail; | |
9608 | temp1 = true; | |
b2df227b | 9609 | } |
0085ce49 RD |
9610 | } |
9611 | if (obj1) { | |
9612 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9613 | if (!SWIG_IsOK(ecode2)) { | |
9614 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'"); | |
9615 | } | |
9616 | arg2 = static_cast< int >(val2); | |
9617 | } | |
9618 | { | |
9619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9620 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
9621 | wxPyEndAllowThreads(__tstate); | |
9622 | if (PyErr_Occurred()) SWIG_fail; | |
9623 | } | |
9624 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 ); | |
9625 | { | |
9626 | if (temp1) | |
9627 | delete arg1; | |
9628 | } | |
9629 | return resultobj; | |
9630 | fail: | |
9631 | { | |
9632 | if (temp1) | |
9633 | delete arg1; | |
9634 | } | |
9635 | return NULL; | |
b2df227b RD |
9636 | } |
9637 | ||
9638 | ||
0085ce49 RD |
9639 | SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9640 | PyObject *resultobj = 0; | |
9641 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9642 | void *argp1 = 0 ; | |
9643 | int res1 = 0 ; | |
9644 | PyObject *swig_obj[1] ; | |
9645 | ||
9646 | if (!args) SWIG_fail; | |
9647 | swig_obj[0] = args; | |
9648 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 ); | |
9649 | if (!SWIG_IsOK(res1)) { | |
9650 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9651 | } | |
9652 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9653 | { | |
9654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9655 | delete arg1; | |
4276dc52 | 9656 | |
0085ce49 RD |
9657 | wxPyEndAllowThreads(__tstate); |
9658 | if (PyErr_Occurred()) SWIG_fail; | |
9659 | } | |
9660 | resultobj = SWIG_Py_Void(); | |
9661 | return resultobj; | |
9662 | fail: | |
9663 | return NULL; | |
4276dc52 RD |
9664 | } |
9665 | ||
9666 | ||
0085ce49 RD |
9667 | SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9668 | PyObject *resultobj = 0; | |
9669 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9670 | bool result; | |
9671 | void *argp1 = 0 ; | |
9672 | int res1 = 0 ; | |
9673 | PyObject *swig_obj[1] ; | |
9674 | ||
9675 | if (!args) SWIG_fail; | |
9676 | swig_obj[0] = args; | |
9677 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9678 | if (!SWIG_IsOK(res1)) { | |
9679 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
9680 | } | |
9681 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9682 | { | |
9683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9684 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
9685 | wxPyEndAllowThreads(__tstate); | |
9686 | if (PyErr_Occurred()) SWIG_fail; | |
9687 | } | |
9688 | { | |
9689 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9690 | } | |
9691 | return resultobj; | |
9692 | fail: | |
9693 | return NULL; | |
9694 | } | |
9695 | ||
9696 | ||
9697 | SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9698 | PyObject *resultobj = 0; | |
9699 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9700 | wxString *arg2 = 0 ; | |
9701 | void *argp1 = 0 ; | |
9702 | int res1 = 0 ; | |
9703 | bool temp2 = false ; | |
9704 | PyObject * obj0 = 0 ; | |
9705 | PyObject * obj1 = 0 ; | |
9706 | char * kwnames[] = { | |
9707 | (char *) "self",(char *) "filename", NULL | |
9708 | }; | |
9709 | ||
9710 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail; | |
9711 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9712 | if (!SWIG_IsOK(res1)) { | |
9713 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9714 | } | |
9715 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9716 | { | |
9717 | arg2 = wxString_in_helper(obj1); | |
9718 | if (arg2 == NULL) SWIG_fail; | |
9719 | temp2 = true; | |
9720 | } | |
9721 | { | |
9722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9723 | (arg1)->SetFileName((wxString const &)*arg2); | |
9724 | wxPyEndAllowThreads(__tstate); | |
9725 | if (PyErr_Occurred()) SWIG_fail; | |
9726 | } | |
9727 | resultobj = SWIG_Py_Void(); | |
9728 | { | |
9729 | if (temp2) | |
9730 | delete arg2; | |
9731 | } | |
9732 | return resultobj; | |
9733 | fail: | |
9734 | { | |
9735 | if (temp2) | |
9736 | delete arg2; | |
9737 | } | |
9738 | return NULL; | |
4276dc52 RD |
9739 | } |
9740 | ||
9741 | ||
0085ce49 RD |
9742 | SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9743 | PyObject *resultobj = 0; | |
9744 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9745 | wxString *result = 0 ; | |
9746 | void *argp1 = 0 ; | |
9747 | int res1 = 0 ; | |
9748 | PyObject *swig_obj[1] ; | |
9749 | ||
9750 | if (!args) SWIG_fail; | |
9751 | swig_obj[0] = args; | |
9752 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9753 | if (!SWIG_IsOK(res1)) { | |
9754 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
9755 | } | |
9756 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9757 | { | |
9758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9759 | { |
0085ce49 RD |
9760 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); |
9761 | result = (wxString *) &_result_ref; | |
093d3ff1 | 9762 | } |
0085ce49 RD |
9763 | wxPyEndAllowThreads(__tstate); |
9764 | if (PyErr_Occurred()) SWIG_fail; | |
9765 | } | |
9766 | { | |
9767 | #if wxUSE_UNICODE | |
9768 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9769 | #else | |
9770 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9771 | #endif | |
9772 | } | |
9773 | return resultobj; | |
9774 | fail: | |
9775 | return NULL; | |
9776 | } | |
9777 | ||
9778 | ||
9779 | SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9780 | PyObject *resultobj = 0; | |
9781 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9782 | int arg2 ; | |
9783 | void *argp1 = 0 ; | |
9784 | int res1 = 0 ; | |
9785 | int val2 ; | |
9786 | int ecode2 = 0 ; | |
9787 | PyObject * obj0 = 0 ; | |
9788 | PyObject * obj1 = 0 ; | |
9789 | char * kwnames[] = { | |
9790 | (char *) "self",(char *) "num", NULL | |
9791 | }; | |
9792 | ||
9793 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
9794 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9795 | if (!SWIG_IsOK(res1)) { | |
9796 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9797 | } | |
9798 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9799 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9800 | if (!SWIG_IsOK(ecode2)) { | |
9801 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'"); | |
9802 | } | |
9803 | arg2 = static_cast< int >(val2); | |
9804 | { | |
9805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9806 | wxIconLocation_SetIndex(arg1,arg2); | |
9807 | wxPyEndAllowThreads(__tstate); | |
9808 | if (PyErr_Occurred()) SWIG_fail; | |
9809 | } | |
9810 | resultobj = SWIG_Py_Void(); | |
9811 | return resultobj; | |
9812 | fail: | |
9813 | return NULL; | |
d14a1e28 RD |
9814 | } |
9815 | ||
9816 | ||
0085ce49 RD |
9817 | SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9818 | PyObject *resultobj = 0; | |
9819 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9820 | int result; | |
9821 | void *argp1 = 0 ; | |
9822 | int res1 = 0 ; | |
9823 | PyObject *swig_obj[1] ; | |
9824 | ||
9825 | if (!args) SWIG_fail; | |
9826 | swig_obj[0] = args; | |
9827 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9828 | if (!SWIG_IsOK(res1)) { | |
9829 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9830 | } | |
9831 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9832 | { | |
9833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9834 | result = (int)wxIconLocation_GetIndex(arg1); | |
9835 | wxPyEndAllowThreads(__tstate); | |
9836 | if (PyErr_Occurred()) SWIG_fail; | |
9837 | } | |
9838 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9839 | return resultobj; | |
9840 | fail: | |
9841 | return NULL; | |
d14a1e28 RD |
9842 | } |
9843 | ||
9844 | ||
0085ce49 RD |
9845 | SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9846 | PyObject *obj; | |
9847 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9848 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj)); | |
9849 | return SWIG_Py_Void(); | |
d14a1e28 RD |
9850 | } |
9851 | ||
0085ce49 RD |
9852 | SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9853 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
9854 | } |
9855 | ||
0085ce49 RD |
9856 | SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9857 | PyObject *resultobj = 0; | |
9858 | wxIconBundle *result = 0 ; | |
9859 | ||
9860 | if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail; | |
9861 | { | |
9862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9863 | result = (wxIconBundle *)new wxIconBundle(); | |
9864 | wxPyEndAllowThreads(__tstate); | |
9865 | if (PyErr_Occurred()) SWIG_fail; | |
9866 | } | |
9867 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 ); | |
9868 | return resultobj; | |
9869 | fail: | |
9870 | return NULL; | |
9871 | } | |
9872 | ||
9873 | ||
9874 | SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9875 | PyObject *resultobj = 0; | |
9876 | wxString *arg1 = 0 ; | |
9877 | long arg2 ; | |
9878 | wxIconBundle *result = 0 ; | |
9879 | bool temp1 = false ; | |
9880 | long val2 ; | |
9881 | int ecode2 = 0 ; | |
9882 | PyObject * obj0 = 0 ; | |
9883 | PyObject * obj1 = 0 ; | |
9884 | char * kwnames[] = { | |
9885 | (char *) "file",(char *) "type", NULL | |
9886 | }; | |
9887 | ||
9888 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
9889 | { | |
9890 | arg1 = wxString_in_helper(obj0); | |
9891 | if (arg1 == NULL) SWIG_fail; | |
9892 | temp1 = true; | |
9893 | } | |
9894 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
9895 | if (!SWIG_IsOK(ecode2)) { | |
9896 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'"); | |
9897 | } | |
9898 | arg2 = static_cast< long >(val2); | |
9899 | { | |
9900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9901 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
9902 | wxPyEndAllowThreads(__tstate); | |
9903 | if (PyErr_Occurred()) SWIG_fail; | |
9904 | } | |
9905 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
9906 | { | |
9907 | if (temp1) | |
9908 | delete arg1; | |
9909 | } | |
9910 | return resultobj; | |
9911 | fail: | |
9912 | { | |
9913 | if (temp1) | |
9914 | delete arg1; | |
9915 | } | |
9916 | return NULL; | |
d14a1e28 RD |
9917 | } |
9918 | ||
9919 | ||
0085ce49 RD |
9920 | SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9921 | PyObject *resultobj = 0; | |
9922 | wxIcon *arg1 = 0 ; | |
9923 | wxIconBundle *result = 0 ; | |
9924 | void *argp1 = 0 ; | |
9925 | int res1 = 0 ; | |
9926 | PyObject * obj0 = 0 ; | |
9927 | char * kwnames[] = { | |
9928 | (char *) "icon", NULL | |
9929 | }; | |
9930 | ||
9931 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail; | |
9932 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
9933 | if (!SWIG_IsOK(res1)) { | |
9934 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
9935 | } | |
9936 | if (!argp1) { | |
9937 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
9938 | } | |
9939 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9940 | { | |
9941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9942 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
9943 | wxPyEndAllowThreads(__tstate); | |
9944 | if (PyErr_Occurred()) SWIG_fail; | |
9945 | } | |
9946 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
9947 | return resultobj; | |
9948 | fail: | |
9949 | return NULL; | |
d14a1e28 RD |
9950 | } |
9951 | ||
9952 | ||
0085ce49 RD |
9953 | SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9954 | PyObject *resultobj = 0; | |
9955 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
9956 | void *argp1 = 0 ; | |
9957 | int res1 = 0 ; | |
9958 | PyObject *swig_obj[1] ; | |
9959 | ||
9960 | if (!args) SWIG_fail; | |
9961 | swig_obj[0] = args; | |
9962 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 ); | |
9963 | if (!SWIG_IsOK(res1)) { | |
9964 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
9965 | } | |
9966 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
9967 | { | |
9968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9969 | delete arg1; | |
d14a1e28 | 9970 | |
0085ce49 RD |
9971 | wxPyEndAllowThreads(__tstate); |
9972 | if (PyErr_Occurred()) SWIG_fail; | |
9973 | } | |
9974 | resultobj = SWIG_Py_Void(); | |
9975 | return resultobj; | |
9976 | fail: | |
9977 | return NULL; | |
9978 | } | |
9979 | ||
9980 | ||
9981 | SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9982 | PyObject *resultobj = 0; | |
9983 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
9984 | wxIcon *arg2 = 0 ; | |
9985 | void *argp1 = 0 ; | |
9986 | int res1 = 0 ; | |
9987 | void *argp2 = 0 ; | |
9988 | int res2 = 0 ; | |
9989 | PyObject * obj0 = 0 ; | |
9990 | PyObject * obj1 = 0 ; | |
9991 | char * kwnames[] = { | |
9992 | (char *) "self",(char *) "icon", NULL | |
9993 | }; | |
9994 | ||
9995 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
9996 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
9997 | if (!SWIG_IsOK(res1)) { | |
9998 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
9999 | } | |
10000 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10001 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
10002 | if (!SWIG_IsOK(res2)) { | |
10003 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
10004 | } | |
10005 | if (!argp2) { | |
10006 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
10007 | } | |
10008 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
10009 | { | |
10010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10011 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
10012 | wxPyEndAllowThreads(__tstate); | |
10013 | if (PyErr_Occurred()) SWIG_fail; | |
10014 | } | |
10015 | resultobj = SWIG_Py_Void(); | |
10016 | return resultobj; | |
10017 | fail: | |
10018 | return NULL; | |
10019 | } | |
10020 | ||
10021 | ||
10022 | SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10023 | PyObject *resultobj = 0; | |
10024 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10025 | wxString *arg2 = 0 ; | |
10026 | long arg3 ; | |
10027 | void *argp1 = 0 ; | |
10028 | int res1 = 0 ; | |
10029 | bool temp2 = false ; | |
10030 | long val3 ; | |
10031 | int ecode3 = 0 ; | |
10032 | PyObject * obj0 = 0 ; | |
10033 | PyObject * obj1 = 0 ; | |
10034 | PyObject * obj2 = 0 ; | |
10035 | char * kwnames[] = { | |
10036 | (char *) "self",(char *) "file",(char *) "type", NULL | |
10037 | }; | |
10038 | ||
10039 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10040 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10041 | if (!SWIG_IsOK(res1)) { | |
10042 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
10043 | } | |
10044 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10045 | { | |
10046 | arg2 = wxString_in_helper(obj1); | |
10047 | if (arg2 == NULL) SWIG_fail; | |
10048 | temp2 = true; | |
10049 | } | |
10050 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
10051 | if (!SWIG_IsOK(ecode3)) { | |
10052 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'"); | |
10053 | } | |
10054 | arg3 = static_cast< long >(val3); | |
10055 | { | |
10056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10057 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
10058 | wxPyEndAllowThreads(__tstate); | |
10059 | if (PyErr_Occurred()) SWIG_fail; | |
10060 | } | |
10061 | resultobj = SWIG_Py_Void(); | |
10062 | { | |
10063 | if (temp2) | |
10064 | delete arg2; | |
10065 | } | |
10066 | return resultobj; | |
10067 | fail: | |
10068 | { | |
10069 | if (temp2) | |
10070 | delete arg2; | |
10071 | } | |
10072 | return NULL; | |
10073 | } | |
10074 | ||
10075 | ||
10076 | SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10077 | PyObject *resultobj = 0; | |
10078 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10079 | wxSize *arg2 = 0 ; | |
10080 | wxIcon *result = 0 ; | |
10081 | void *argp1 = 0 ; | |
10082 | int res1 = 0 ; | |
10083 | wxSize temp2 ; | |
10084 | PyObject * obj0 = 0 ; | |
10085 | PyObject * obj1 = 0 ; | |
10086 | char * kwnames[] = { | |
10087 | (char *) "self",(char *) "size", NULL | |
10088 | }; | |
10089 | ||
10090 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
10091 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10092 | if (!SWIG_IsOK(res1)) { | |
10093 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'"); | |
10094 | } | |
10095 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10096 | { | |
10097 | arg2 = &temp2; | |
10098 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
10099 | } | |
10100 | { | |
10101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 10102 | { |
0085ce49 RD |
10103 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); |
10104 | result = (wxIcon *) &_result_ref; | |
d14a1e28 | 10105 | } |
0085ce49 RD |
10106 | wxPyEndAllowThreads(__tstate); |
10107 | if (PyErr_Occurred()) SWIG_fail; | |
10108 | } | |
10109 | { | |
10110 | wxIcon* resultptr = new wxIcon(*result); | |
10111 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
10112 | } | |
10113 | return resultobj; | |
10114 | fail: | |
10115 | return NULL; | |
10116 | } | |
10117 | ||
10118 | ||
10119 | SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10120 | PyObject *obj; | |
10121 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10122 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj)); | |
10123 | return SWIG_Py_Void(); | |
10124 | } | |
10125 | ||
10126 | SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10127 | return SWIG_Python_InitShadowInstance(args); | |
10128 | } | |
10129 | ||
10130 | SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10131 | PyObject *resultobj = 0; | |
10132 | wxString *arg1 = 0 ; | |
10133 | long arg2 ; | |
10134 | int arg3 = (int) 0 ; | |
10135 | int arg4 = (int) 0 ; | |
10136 | wxCursor *result = 0 ; | |
10137 | bool temp1 = false ; | |
10138 | long val2 ; | |
10139 | int ecode2 = 0 ; | |
10140 | int val3 ; | |
10141 | int ecode3 = 0 ; | |
10142 | int val4 ; | |
10143 | int ecode4 = 0 ; | |
10144 | PyObject * obj0 = 0 ; | |
10145 | PyObject * obj1 = 0 ; | |
10146 | PyObject * obj2 = 0 ; | |
10147 | PyObject * obj3 = 0 ; | |
10148 | char * kwnames[] = { | |
10149 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
10150 | }; | |
10151 | ||
10152 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10153 | { | |
10154 | arg1 = wxString_in_helper(obj0); | |
10155 | if (arg1 == NULL) SWIG_fail; | |
10156 | temp1 = true; | |
10157 | } | |
10158 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10159 | if (!SWIG_IsOK(ecode2)) { | |
10160 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'"); | |
10161 | } | |
10162 | arg2 = static_cast< long >(val2); | |
10163 | if (obj2) { | |
10164 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10165 | if (!SWIG_IsOK(ecode3)) { | |
10166 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'"); | |
10167 | } | |
10168 | arg3 = static_cast< int >(val3); | |
10169 | } | |
10170 | if (obj3) { | |
10171 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10172 | if (!SWIG_IsOK(ecode4)) { | |
10173 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'"); | |
10174 | } | |
10175 | arg4 = static_cast< int >(val4); | |
10176 | } | |
10177 | { | |
10178 | if (!wxPyCheckForApp()) SWIG_fail; | |
10179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10180 | result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4); | |
10181 | wxPyEndAllowThreads(__tstate); | |
10182 | if (PyErr_Occurred()) SWIG_fail; | |
10183 | } | |
10184 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 ); | |
10185 | { | |
10186 | if (temp1) | |
10187 | delete arg1; | |
10188 | } | |
10189 | return resultobj; | |
10190 | fail: | |
10191 | { | |
10192 | if (temp1) | |
10193 | delete arg1; | |
10194 | } | |
10195 | return NULL; | |
d14a1e28 RD |
10196 | } |
10197 | ||
10198 | ||
0085ce49 RD |
10199 | SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10200 | PyObject *resultobj = 0; | |
10201 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10202 | void *argp1 = 0 ; | |
10203 | int res1 = 0 ; | |
10204 | PyObject *swig_obj[1] ; | |
10205 | ||
10206 | if (!args) SWIG_fail; | |
10207 | swig_obj[0] = args; | |
10208 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 ); | |
10209 | if (!SWIG_IsOK(res1)) { | |
10210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10211 | } | |
10212 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10213 | { | |
10214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10215 | delete arg1; | |
093d3ff1 | 10216 | |
0085ce49 RD |
10217 | wxPyEndAllowThreads(__tstate); |
10218 | if (PyErr_Occurred()) SWIG_fail; | |
10219 | } | |
10220 | resultobj = SWIG_Py_Void(); | |
10221 | return resultobj; | |
10222 | fail: | |
10223 | return NULL; | |
10224 | } | |
10225 | ||
10226 | ||
10227 | SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10228 | PyObject *resultobj = 0; | |
10229 | int arg1 ; | |
10230 | wxCursor *result = 0 ; | |
10231 | int val1 ; | |
10232 | int ecode1 = 0 ; | |
10233 | PyObject * obj0 = 0 ; | |
10234 | char * kwnames[] = { | |
10235 | (char *) "id", NULL | |
10236 | }; | |
10237 | ||
10238 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail; | |
10239 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10240 | if (!SWIG_IsOK(ecode1)) { | |
10241 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'"); | |
10242 | } | |
10243 | arg1 = static_cast< int >(val1); | |
10244 | { | |
10245 | if (!wxPyCheckForApp()) SWIG_fail; | |
10246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10247 | result = (wxCursor *)new wxCursor(arg1); | |
10248 | wxPyEndAllowThreads(__tstate); | |
10249 | if (PyErr_Occurred()) SWIG_fail; | |
10250 | } | |
10251 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
10252 | return resultobj; | |
10253 | fail: | |
10254 | return NULL; | |
10255 | } | |
10256 | ||
10257 | ||
10258 | SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10259 | PyObject *resultobj = 0; | |
10260 | wxImage *arg1 = 0 ; | |
10261 | wxCursor *result = 0 ; | |
10262 | void *argp1 = 0 ; | |
10263 | int res1 = 0 ; | |
10264 | PyObject * obj0 = 0 ; | |
10265 | char * kwnames[] = { | |
10266 | (char *) "image", NULL | |
10267 | }; | |
10268 | ||
10269 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail; | |
10270 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
10271 | if (!SWIG_IsOK(res1)) { | |
10272 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
10273 | } | |
10274 | if (!argp1) { | |
10275 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
10276 | } | |
10277 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
10278 | { | |
10279 | if (!wxPyCheckForApp()) SWIG_fail; | |
10280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10281 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
10282 | wxPyEndAllowThreads(__tstate); | |
10283 | if (PyErr_Occurred()) SWIG_fail; | |
10284 | } | |
10285 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
10286 | return resultobj; | |
10287 | fail: | |
10288 | return NULL; | |
093d3ff1 RD |
10289 | } |
10290 | ||
10291 | ||
b39fe951 | 10292 | SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
10293 | PyObject *resultobj = 0; |
10294 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10295 | bool result; | |
10296 | void *argp1 = 0 ; | |
10297 | int res1 = 0 ; | |
10298 | PyObject *swig_obj[1] ; | |
10299 | ||
10300 | if (!args) SWIG_fail; | |
10301 | swig_obj[0] = args; | |
10302 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10303 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 10304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'"); |
0085ce49 RD |
10305 | } |
10306 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10307 | { | |
10308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 10309 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
10310 | wxPyEndAllowThreads(__tstate); |
10311 | if (PyErr_Occurred()) SWIG_fail; | |
10312 | } | |
10313 | { | |
10314 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10315 | } | |
10316 | return resultobj; | |
10317 | fail: | |
10318 | return NULL; | |
10319 | } | |
10320 | ||
10321 | ||
10322 | SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10323 | PyObject *obj; | |
10324 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10325 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj)); | |
10326 | return SWIG_Py_Void(); | |
10327 | } | |
10328 | ||
10329 | SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10330 | return SWIG_Python_InitShadowInstance(args); | |
10331 | } | |
10332 | ||
10333 | SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10334 | PyObject *resultobj = 0; | |
10335 | int arg1 = (int) 0 ; | |
10336 | int arg2 = (int) 0 ; | |
10337 | int arg3 = (int) 0 ; | |
10338 | int arg4 = (int) 0 ; | |
10339 | wxRegion *result = 0 ; | |
10340 | int val1 ; | |
10341 | int ecode1 = 0 ; | |
10342 | int val2 ; | |
10343 | int ecode2 = 0 ; | |
10344 | int val3 ; | |
10345 | int ecode3 = 0 ; | |
10346 | int val4 ; | |
10347 | int ecode4 = 0 ; | |
10348 | PyObject * obj0 = 0 ; | |
10349 | PyObject * obj1 = 0 ; | |
10350 | PyObject * obj2 = 0 ; | |
10351 | PyObject * obj3 = 0 ; | |
10352 | char * kwnames[] = { | |
10353 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10354 | }; | |
10355 | ||
10356 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10357 | if (obj0) { | |
10358 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10359 | if (!SWIG_IsOK(ecode1)) { | |
10360 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'"); | |
10361 | } | |
10362 | arg1 = static_cast< int >(val1); | |
10363 | } | |
10364 | if (obj1) { | |
10365 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10366 | if (!SWIG_IsOK(ecode2)) { | |
10367 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'"); | |
10368 | } | |
10369 | arg2 = static_cast< int >(val2); | |
10370 | } | |
10371 | if (obj2) { | |
10372 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10373 | if (!SWIG_IsOK(ecode3)) { | |
10374 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'"); | |
10375 | } | |
10376 | arg3 = static_cast< int >(val3); | |
10377 | } | |
10378 | if (obj3) { | |
10379 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10380 | if (!SWIG_IsOK(ecode4)) { | |
10381 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'"); | |
10382 | } | |
10383 | arg4 = static_cast< int >(val4); | |
10384 | } | |
10385 | { | |
10386 | if (!wxPyCheckForApp()) SWIG_fail; | |
10387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10388 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
10389 | wxPyEndAllowThreads(__tstate); | |
10390 | if (PyErr_Occurred()) SWIG_fail; | |
10391 | } | |
10392 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 ); | |
10393 | return resultobj; | |
10394 | fail: | |
10395 | return NULL; | |
10396 | } | |
10397 | ||
10398 | ||
10399 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10400 | PyObject *resultobj = 0; | |
10401 | wxBitmap *arg1 = 0 ; | |
10402 | wxRegion *result = 0 ; | |
10403 | void *argp1 = 0 ; | |
10404 | int res1 = 0 ; | |
10405 | PyObject * obj0 = 0 ; | |
10406 | char * kwnames[] = { | |
10407 | (char *) "bmp", NULL | |
10408 | }; | |
10409 | ||
10410 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail; | |
10411 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
10412 | if (!SWIG_IsOK(res1)) { | |
10413 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10414 | } | |
10415 | if (!argp1) { | |
10416 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10417 | } | |
10418 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
10419 | { | |
10420 | if (!wxPyCheckForApp()) SWIG_fail; | |
10421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10422 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1); | |
10423 | wxPyEndAllowThreads(__tstate); | |
10424 | if (PyErr_Occurred()) SWIG_fail; | |
10425 | } | |
10426 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
10427 | return resultobj; | |
10428 | fail: | |
10429 | return NULL; | |
10430 | } | |
10431 | ||
10432 | ||
10433 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10434 | PyObject *resultobj = 0; | |
10435 | wxBitmap *arg1 = 0 ; | |
10436 | wxColour *arg2 = 0 ; | |
10437 | int arg3 = (int) 0 ; | |
10438 | wxRegion *result = 0 ; | |
10439 | void *argp1 = 0 ; | |
10440 | int res1 = 0 ; | |
10441 | wxColour temp2 ; | |
10442 | int val3 ; | |
10443 | int ecode3 = 0 ; | |
10444 | PyObject * obj0 = 0 ; | |
10445 | PyObject * obj1 = 0 ; | |
10446 | PyObject * obj2 = 0 ; | |
10447 | char * kwnames[] = { | |
10448 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
10449 | }; | |
10450 | ||
10451 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10452 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
10453 | if (!SWIG_IsOK(res1)) { | |
10454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10455 | } | |
10456 | if (!argp1) { | |
10457 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10458 | } | |
10459 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
10460 | { | |
10461 | arg2 = &temp2; | |
10462 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10463 | } | |
10464 | if (obj2) { | |
10465 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10466 | if (!SWIG_IsOK(ecode3)) { | |
10467 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', 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((wxBitmap const &)*arg1,(wxColour const &)*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 | return resultobj; | |
10480 | fail: | |
10481 | return NULL; | |
10482 | } | |
10483 | ||
10484 | ||
10485 | SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10486 | PyObject *resultobj = 0; | |
10487 | int arg1 ; | |
10488 | wxPoint *arg2 = (wxPoint *) 0 ; | |
10489 | int arg3 = (int) wxWINDING_RULE ; | |
10490 | wxRegion *result = 0 ; | |
10491 | int val3 ; | |
10492 | int ecode3 = 0 ; | |
10493 | PyObject * obj0 = 0 ; | |
10494 | PyObject * obj1 = 0 ; | |
10495 | char * kwnames[] = { | |
10496 | (char *) "points",(char *) "fillStyle", NULL | |
10497 | }; | |
10498 | ||
10499 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail; | |
10500 | { | |
10501 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
10502 | if (arg2 == NULL) SWIG_fail; | |
10503 | } | |
10504 | if (obj1) { | |
10505 | ecode3 = SWIG_AsVal_int(obj1, &val3); | |
10506 | if (!SWIG_IsOK(ecode3)) { | |
10507 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'"); | |
10508 | } | |
10509 | arg3 = static_cast< int >(val3); | |
10510 | } | |
10511 | { | |
10512 | if (!wxPyCheckForApp()) SWIG_fail; | |
10513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10514 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
10515 | wxPyEndAllowThreads(__tstate); | |
10516 | if (PyErr_Occurred()) SWIG_fail; | |
10517 | } | |
10518 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
10519 | { | |
10520 | if (arg2) delete [] arg2; | |
10521 | } | |
10522 | return resultobj; | |
10523 | fail: | |
10524 | { | |
10525 | if (arg2) delete [] arg2; | |
10526 | } | |
10527 | return NULL; | |
d14a1e28 RD |
10528 | } |
10529 | ||
10530 | ||
0085ce49 RD |
10531 | SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10532 | PyObject *resultobj = 0; | |
10533 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10534 | void *argp1 = 0 ; | |
10535 | int res1 = 0 ; | |
10536 | PyObject *swig_obj[1] ; | |
10537 | ||
10538 | if (!args) SWIG_fail; | |
10539 | swig_obj[0] = args; | |
10540 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 ); | |
10541 | if (!SWIG_IsOK(res1)) { | |
10542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10543 | } | |
10544 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10545 | { | |
10546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10547 | delete arg1; | |
d14a1e28 | 10548 | |
0085ce49 RD |
10549 | wxPyEndAllowThreads(__tstate); |
10550 | if (PyErr_Occurred()) SWIG_fail; | |
10551 | } | |
10552 | resultobj = SWIG_Py_Void(); | |
10553 | return resultobj; | |
10554 | fail: | |
10555 | return NULL; | |
d14a1e28 RD |
10556 | } |
10557 | ||
10558 | ||
0085ce49 RD |
10559 | SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10560 | PyObject *resultobj = 0; | |
10561 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10562 | void *argp1 = 0 ; | |
10563 | int res1 = 0 ; | |
10564 | PyObject *swig_obj[1] ; | |
10565 | ||
10566 | if (!args) SWIG_fail; | |
10567 | swig_obj[0] = args; | |
10568 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10569 | if (!SWIG_IsOK(res1)) { | |
10570 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10571 | } | |
10572 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10573 | { | |
10574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10575 | (arg1)->Clear(); | |
10576 | wxPyEndAllowThreads(__tstate); | |
10577 | if (PyErr_Occurred()) SWIG_fail; | |
10578 | } | |
10579 | resultobj = SWIG_Py_Void(); | |
10580 | return resultobj; | |
10581 | fail: | |
10582 | return NULL; | |
10583 | } | |
10584 | ||
10585 | ||
10586 | SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10587 | PyObject *resultobj = 0; | |
10588 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10589 | int arg2 ; | |
10590 | int arg3 ; | |
10591 | bool result; | |
10592 | void *argp1 = 0 ; | |
10593 | int res1 = 0 ; | |
10594 | int val2 ; | |
10595 | int ecode2 = 0 ; | |
10596 | int val3 ; | |
10597 | int ecode3 = 0 ; | |
10598 | PyObject * obj0 = 0 ; | |
10599 | PyObject * obj1 = 0 ; | |
10600 | PyObject * obj2 = 0 ; | |
10601 | char * kwnames[] = { | |
10602 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10603 | }; | |
10604 | ||
10605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10606 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10607 | if (!SWIG_IsOK(res1)) { | |
10608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10609 | } | |
10610 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10611 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10612 | if (!SWIG_IsOK(ecode2)) { | |
10613 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'"); | |
10614 | } | |
10615 | arg2 = static_cast< int >(val2); | |
10616 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10617 | if (!SWIG_IsOK(ecode3)) { | |
10618 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'"); | |
10619 | } | |
10620 | arg3 = static_cast< int >(val3); | |
10621 | { | |
10622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10623 | result = (bool)(arg1)->Offset(arg2,arg3); | |
10624 | wxPyEndAllowThreads(__tstate); | |
10625 | if (PyErr_Occurred()) SWIG_fail; | |
10626 | } | |
10627 | { | |
10628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10629 | } | |
10630 | return resultobj; | |
10631 | fail: | |
10632 | return NULL; | |
10633 | } | |
10634 | ||
10635 | ||
10636 | SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10637 | PyObject *resultobj = 0; | |
10638 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10639 | int arg2 ; | |
10640 | int arg3 ; | |
10641 | wxRegionContain result; | |
10642 | void *argp1 = 0 ; | |
10643 | int res1 = 0 ; | |
10644 | int val2 ; | |
10645 | int ecode2 = 0 ; | |
10646 | int val3 ; | |
10647 | int ecode3 = 0 ; | |
10648 | PyObject * obj0 = 0 ; | |
10649 | PyObject * obj1 = 0 ; | |
10650 | PyObject * obj2 = 0 ; | |
10651 | char * kwnames[] = { | |
10652 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10653 | }; | |
10654 | ||
10655 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10656 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10657 | if (!SWIG_IsOK(res1)) { | |
10658 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10659 | } | |
10660 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10661 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10662 | if (!SWIG_IsOK(ecode2)) { | |
10663 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'"); | |
10664 | } | |
10665 | arg2 = static_cast< int >(val2); | |
10666 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10667 | if (!SWIG_IsOK(ecode3)) { | |
10668 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'"); | |
10669 | } | |
10670 | arg3 = static_cast< int >(val3); | |
10671 | { | |
10672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10673 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3); | |
10674 | wxPyEndAllowThreads(__tstate); | |
10675 | if (PyErr_Occurred()) SWIG_fail; | |
10676 | } | |
10677 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10678 | return resultobj; | |
10679 | fail: | |
10680 | return NULL; | |
10681 | } | |
10682 | ||
10683 | ||
10684 | SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10685 | PyObject *resultobj = 0; | |
10686 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10687 | wxPoint *arg2 = 0 ; | |
10688 | wxRegionContain result; | |
10689 | void *argp1 = 0 ; | |
10690 | int res1 = 0 ; | |
10691 | wxPoint temp2 ; | |
10692 | PyObject * obj0 = 0 ; | |
10693 | PyObject * obj1 = 0 ; | |
10694 | char * kwnames[] = { | |
10695 | (char *) "self",(char *) "pt", NULL | |
10696 | }; | |
10697 | ||
10698 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
10699 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10700 | if (!SWIG_IsOK(res1)) { | |
10701 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10702 | } | |
10703 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10704 | { | |
10705 | arg2 = &temp2; | |
10706 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10707 | } | |
10708 | { | |
10709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10710 | result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2); | |
10711 | wxPyEndAllowThreads(__tstate); | |
10712 | if (PyErr_Occurred()) SWIG_fail; | |
10713 | } | |
10714 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10715 | return resultobj; | |
10716 | fail: | |
10717 | return NULL; | |
10718 | } | |
10719 | ||
10720 | ||
10721 | SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10722 | PyObject *resultobj = 0; | |
10723 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10724 | wxRect *arg2 = 0 ; | |
10725 | wxRegionContain result; | |
10726 | void *argp1 = 0 ; | |
10727 | int res1 = 0 ; | |
10728 | wxRect temp2 ; | |
10729 | PyObject * obj0 = 0 ; | |
10730 | PyObject * obj1 = 0 ; | |
10731 | char * kwnames[] = { | |
10732 | (char *) "self",(char *) "rect", NULL | |
10733 | }; | |
10734 | ||
10735 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
10736 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10737 | if (!SWIG_IsOK(res1)) { | |
10738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10739 | } | |
10740 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10741 | { | |
10742 | arg2 = &temp2; | |
10743 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10744 | } | |
10745 | { | |
10746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10747 | result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2); | |
10748 | wxPyEndAllowThreads(__tstate); | |
10749 | if (PyErr_Occurred()) SWIG_fail; | |
10750 | } | |
10751 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10752 | return resultobj; | |
10753 | fail: | |
10754 | return NULL; | |
10755 | } | |
10756 | ||
10757 | ||
10758 | SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10759 | PyObject *resultobj = 0; | |
10760 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10761 | int arg2 ; | |
10762 | int arg3 ; | |
10763 | int arg4 ; | |
10764 | int arg5 ; | |
10765 | wxRegionContain result; | |
10766 | void *argp1 = 0 ; | |
10767 | int res1 = 0 ; | |
10768 | int val2 ; | |
10769 | int ecode2 = 0 ; | |
10770 | int val3 ; | |
10771 | int ecode3 = 0 ; | |
10772 | int val4 ; | |
10773 | int ecode4 = 0 ; | |
10774 | int val5 ; | |
10775 | int ecode5 = 0 ; | |
10776 | PyObject * obj0 = 0 ; | |
10777 | PyObject * obj1 = 0 ; | |
10778 | PyObject * obj2 = 0 ; | |
10779 | PyObject * obj3 = 0 ; | |
10780 | PyObject * obj4 = 0 ; | |
10781 | char * kwnames[] = { | |
10782 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
10783 | }; | |
10784 | ||
10785 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
10786 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10787 | if (!SWIG_IsOK(res1)) { | |
10788 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10789 | } | |
10790 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10791 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10792 | if (!SWIG_IsOK(ecode2)) { | |
10793 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'"); | |
10794 | } | |
10795 | arg2 = static_cast< int >(val2); | |
10796 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10797 | if (!SWIG_IsOK(ecode3)) { | |
10798 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'"); | |
10799 | } | |
10800 | arg3 = static_cast< int >(val3); | |
10801 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10802 | if (!SWIG_IsOK(ecode4)) { | |
10803 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'"); | |
10804 | } | |
10805 | arg4 = static_cast< int >(val4); | |
10806 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
10807 | if (!SWIG_IsOK(ecode5)) { | |
10808 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'"); | |
10809 | } | |
10810 | arg5 = static_cast< int >(val5); | |
10811 | { | |
10812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10813 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
10814 | wxPyEndAllowThreads(__tstate); | |
10815 | if (PyErr_Occurred()) SWIG_fail; | |
10816 | } | |
10817 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10818 | return resultobj; | |
10819 | fail: | |
10820 | return NULL; | |
d14a1e28 RD |
10821 | } |
10822 | ||
10823 | ||
0085ce49 RD |
10824 | SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10825 | PyObject *resultobj = 0; | |
10826 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10827 | wxRect result; | |
10828 | void *argp1 = 0 ; | |
10829 | int res1 = 0 ; | |
10830 | PyObject *swig_obj[1] ; | |
10831 | ||
10832 | if (!args) SWIG_fail; | |
10833 | swig_obj[0] = args; | |
10834 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10835 | if (!SWIG_IsOK(res1)) { | |
10836 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10837 | } | |
10838 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10839 | { | |
10840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10841 | result = (arg1)->GetBox(); | |
10842 | wxPyEndAllowThreads(__tstate); | |
10843 | if (PyErr_Occurred()) SWIG_fail; | |
10844 | } | |
10845 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
10846 | return resultobj; | |
10847 | fail: | |
10848 | return NULL; | |
10849 | } | |
10850 | ||
10851 | ||
10852 | SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10853 | PyObject *resultobj = 0; | |
10854 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10855 | int arg2 ; | |
10856 | int arg3 ; | |
10857 | int arg4 ; | |
10858 | int arg5 ; | |
10859 | bool result; | |
10860 | void *argp1 = 0 ; | |
10861 | int res1 = 0 ; | |
10862 | int val2 ; | |
10863 | int ecode2 = 0 ; | |
10864 | int val3 ; | |
10865 | int ecode3 = 0 ; | |
10866 | int val4 ; | |
10867 | int ecode4 = 0 ; | |
10868 | int val5 ; | |
10869 | int ecode5 = 0 ; | |
10870 | PyObject * obj0 = 0 ; | |
10871 | PyObject * obj1 = 0 ; | |
10872 | PyObject * obj2 = 0 ; | |
10873 | PyObject * obj3 = 0 ; | |
10874 | PyObject * obj4 = 0 ; | |
10875 | char * kwnames[] = { | |
10876 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10877 | }; | |
10878 | ||
10879 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
10880 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10881 | if (!SWIG_IsOK(res1)) { | |
10882 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10883 | } | |
10884 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10885 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10886 | if (!SWIG_IsOK(ecode2)) { | |
10887 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'"); | |
10888 | } | |
10889 | arg2 = static_cast< int >(val2); | |
10890 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10891 | if (!SWIG_IsOK(ecode3)) { | |
10892 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'"); | |
10893 | } | |
10894 | arg3 = static_cast< int >(val3); | |
10895 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10896 | if (!SWIG_IsOK(ecode4)) { | |
10897 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'"); | |
10898 | } | |
10899 | arg4 = static_cast< int >(val4); | |
10900 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
10901 | if (!SWIG_IsOK(ecode5)) { | |
10902 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'"); | |
10903 | } | |
10904 | arg5 = static_cast< int >(val5); | |
10905 | { | |
10906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10907 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
10908 | wxPyEndAllowThreads(__tstate); | |
10909 | if (PyErr_Occurred()) SWIG_fail; | |
10910 | } | |
10911 | { | |
10912 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10913 | } | |
10914 | return resultobj; | |
10915 | fail: | |
10916 | return NULL; | |
10917 | } | |
10918 | ||
10919 | ||
10920 | SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10921 | PyObject *resultobj = 0; | |
10922 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10923 | wxRect *arg2 = 0 ; | |
10924 | bool result; | |
10925 | void *argp1 = 0 ; | |
10926 | int res1 = 0 ; | |
10927 | wxRect temp2 ; | |
10928 | PyObject * obj0 = 0 ; | |
10929 | PyObject * obj1 = 0 ; | |
10930 | char * kwnames[] = { | |
10931 | (char *) "self",(char *) "rect", NULL | |
10932 | }; | |
10933 | ||
10934 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",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_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10938 | } | |
10939 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10940 | { | |
10941 | arg2 = &temp2; | |
10942 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10943 | } | |
10944 | { | |
10945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10946 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
10947 | wxPyEndAllowThreads(__tstate); | |
10948 | if (PyErr_Occurred()) SWIG_fail; | |
10949 | } | |
10950 | { | |
10951 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10952 | } | |
10953 | return resultobj; | |
10954 | fail: | |
10955 | return NULL; | |
10956 | } | |
10957 | ||
10958 | ||
10959 | SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10960 | PyObject *resultobj = 0; | |
10961 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10962 | wxRegion *arg2 = 0 ; | |
10963 | bool result; | |
10964 | void *argp1 = 0 ; | |
10965 | int res1 = 0 ; | |
10966 | void *argp2 = 0 ; | |
10967 | int res2 = 0 ; | |
10968 | PyObject * obj0 = 0 ; | |
10969 | PyObject * obj1 = 0 ; | |
10970 | char * kwnames[] = { | |
10971 | (char *) "self",(char *) "region", NULL | |
10972 | }; | |
10973 | ||
10974 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
10975 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10976 | if (!SWIG_IsOK(res1)) { | |
10977 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10978 | } | |
10979 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10980 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
10981 | if (!SWIG_IsOK(res2)) { | |
10982 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
10983 | } | |
10984 | if (!argp2) { | |
10985 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
10986 | } | |
10987 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
10988 | { | |
10989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10990 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
10991 | wxPyEndAllowThreads(__tstate); | |
10992 | if (PyErr_Occurred()) SWIG_fail; | |
10993 | } | |
10994 | { | |
10995 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10996 | } | |
10997 | return resultobj; | |
10998 | fail: | |
10999 | return NULL; | |
d14a1e28 RD |
11000 | } |
11001 | ||
11002 | ||
0085ce49 RD |
11003 | SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11004 | PyObject *resultobj = 0; | |
11005 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11006 | bool result; | |
11007 | void *argp1 = 0 ; | |
11008 | int res1 = 0 ; | |
11009 | PyObject *swig_obj[1] ; | |
11010 | ||
11011 | if (!args) SWIG_fail; | |
11012 | swig_obj[0] = args; | |
11013 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11014 | if (!SWIG_IsOK(res1)) { | |
11015 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11016 | } | |
11017 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11018 | { | |
11019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11020 | result = (bool)(arg1)->IsEmpty(); | |
11021 | wxPyEndAllowThreads(__tstate); | |
11022 | if (PyErr_Occurred()) SWIG_fail; | |
11023 | } | |
11024 | { | |
11025 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11026 | } | |
11027 | return resultobj; | |
11028 | fail: | |
11029 | return NULL; | |
11030 | } | |
11031 | ||
11032 | ||
f5263701 RD |
11033 | SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11034 | PyObject *resultobj = 0; | |
11035 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11036 | wxRegion *arg2 = 0 ; | |
11037 | bool result; | |
11038 | void *argp1 = 0 ; | |
11039 | int res1 = 0 ; | |
11040 | void *argp2 = 0 ; | |
11041 | int res2 = 0 ; | |
11042 | PyObject * obj0 = 0 ; | |
11043 | PyObject * obj1 = 0 ; | |
11044 | char * kwnames[] = { | |
11045 | (char *) "self",(char *) "region", NULL | |
11046 | }; | |
11047 | ||
11048 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail; | |
11049 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11050 | if (!SWIG_IsOK(res1)) { | |
11051 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'"); | |
11052 | } | |
11053 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11054 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11055 | if (!SWIG_IsOK(res2)) { | |
11056 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11057 | } | |
11058 | if (!argp2) { | |
11059 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11060 | } | |
11061 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11062 | { | |
11063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11064 | result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2); | |
11065 | wxPyEndAllowThreads(__tstate); | |
11066 | if (PyErr_Occurred()) SWIG_fail; | |
11067 | } | |
11068 | { | |
11069 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11070 | } | |
11071 | return resultobj; | |
11072 | fail: | |
11073 | return NULL; | |
11074 | } | |
11075 | ||
11076 | ||
0085ce49 RD |
11077 | SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11078 | PyObject *resultobj = 0; | |
11079 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11080 | int arg2 ; | |
11081 | int arg3 ; | |
11082 | int arg4 ; | |
11083 | int arg5 ; | |
11084 | bool result; | |
11085 | void *argp1 = 0 ; | |
11086 | int res1 = 0 ; | |
11087 | int val2 ; | |
11088 | int ecode2 = 0 ; | |
11089 | int val3 ; | |
11090 | int ecode3 = 0 ; | |
11091 | int val4 ; | |
11092 | int ecode4 = 0 ; | |
11093 | int val5 ; | |
11094 | int ecode5 = 0 ; | |
11095 | PyObject * obj0 = 0 ; | |
11096 | PyObject * obj1 = 0 ; | |
11097 | PyObject * obj2 = 0 ; | |
11098 | PyObject * obj3 = 0 ; | |
11099 | PyObject * obj4 = 0 ; | |
11100 | char * kwnames[] = { | |
11101 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11102 | }; | |
11103 | ||
11104 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11105 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11106 | if (!SWIG_IsOK(res1)) { | |
11107 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11108 | } | |
11109 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11110 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11111 | if (!SWIG_IsOK(ecode2)) { | |
11112 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'"); | |
11113 | } | |
11114 | arg2 = static_cast< int >(val2); | |
11115 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11116 | if (!SWIG_IsOK(ecode3)) { | |
11117 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'"); | |
11118 | } | |
11119 | arg3 = static_cast< int >(val3); | |
11120 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11121 | if (!SWIG_IsOK(ecode4)) { | |
11122 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'"); | |
11123 | } | |
11124 | arg4 = static_cast< int >(val4); | |
11125 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11126 | if (!SWIG_IsOK(ecode5)) { | |
11127 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'"); | |
11128 | } | |
11129 | arg5 = static_cast< int >(val5); | |
11130 | { | |
11131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11132 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
11133 | wxPyEndAllowThreads(__tstate); | |
11134 | if (PyErr_Occurred()) SWIG_fail; | |
11135 | } | |
11136 | { | |
11137 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11138 | } | |
11139 | return resultobj; | |
11140 | fail: | |
11141 | return NULL; | |
11142 | } | |
11143 | ||
11144 | ||
11145 | SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11146 | PyObject *resultobj = 0; | |
11147 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11148 | wxRect *arg2 = 0 ; | |
11149 | bool result; | |
11150 | void *argp1 = 0 ; | |
11151 | int res1 = 0 ; | |
11152 | wxRect temp2 ; | |
11153 | PyObject * obj0 = 0 ; | |
11154 | PyObject * obj1 = 0 ; | |
11155 | char * kwnames[] = { | |
11156 | (char *) "self",(char *) "rect", NULL | |
11157 | }; | |
11158 | ||
11159 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",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_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11163 | } | |
11164 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11165 | { | |
11166 | arg2 = &temp2; | |
11167 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11168 | } | |
11169 | { | |
11170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11171 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
11172 | wxPyEndAllowThreads(__tstate); | |
11173 | if (PyErr_Occurred()) SWIG_fail; | |
11174 | } | |
11175 | { | |
11176 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11177 | } | |
11178 | return resultobj; | |
11179 | fail: | |
11180 | return NULL; | |
11181 | } | |
11182 | ||
11183 | ||
11184 | SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11185 | PyObject *resultobj = 0; | |
11186 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11187 | wxRegion *arg2 = 0 ; | |
11188 | bool result; | |
11189 | void *argp1 = 0 ; | |
11190 | int res1 = 0 ; | |
11191 | void *argp2 = 0 ; | |
11192 | int res2 = 0 ; | |
11193 | PyObject * obj0 = 0 ; | |
11194 | PyObject * obj1 = 0 ; | |
11195 | char * kwnames[] = { | |
11196 | (char *) "self",(char *) "region", NULL | |
11197 | }; | |
11198 | ||
11199 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11200 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11201 | if (!SWIG_IsOK(res1)) { | |
11202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11203 | } | |
11204 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11205 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11206 | if (!SWIG_IsOK(res2)) { | |
11207 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11208 | } | |
11209 | if (!argp2) { | |
11210 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11211 | } | |
11212 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11213 | { | |
11214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11215 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
11216 | wxPyEndAllowThreads(__tstate); | |
11217 | if (PyErr_Occurred()) SWIG_fail; | |
11218 | } | |
11219 | { | |
11220 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11221 | } | |
11222 | return resultobj; | |
11223 | fail: | |
11224 | return NULL; | |
11225 | } | |
11226 | ||
11227 | ||
11228 | SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11229 | PyObject *resultobj = 0; | |
11230 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11231 | int arg2 ; | |
11232 | int arg3 ; | |
11233 | int arg4 ; | |
11234 | int arg5 ; | |
11235 | bool result; | |
11236 | void *argp1 = 0 ; | |
11237 | int res1 = 0 ; | |
11238 | int val2 ; | |
11239 | int ecode2 = 0 ; | |
11240 | int val3 ; | |
11241 | int ecode3 = 0 ; | |
11242 | int val4 ; | |
11243 | int ecode4 = 0 ; | |
11244 | int val5 ; | |
11245 | int ecode5 = 0 ; | |
11246 | PyObject * obj0 = 0 ; | |
11247 | PyObject * obj1 = 0 ; | |
11248 | PyObject * obj2 = 0 ; | |
11249 | PyObject * obj3 = 0 ; | |
11250 | PyObject * obj4 = 0 ; | |
11251 | char * kwnames[] = { | |
11252 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11253 | }; | |
11254 | ||
11255 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11256 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11257 | if (!SWIG_IsOK(res1)) { | |
11258 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11259 | } | |
11260 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11261 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11262 | if (!SWIG_IsOK(ecode2)) { | |
11263 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'"); | |
11264 | } | |
11265 | arg2 = static_cast< int >(val2); | |
11266 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11267 | if (!SWIG_IsOK(ecode3)) { | |
11268 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'"); | |
11269 | } | |
11270 | arg3 = static_cast< int >(val3); | |
11271 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11272 | if (!SWIG_IsOK(ecode4)) { | |
11273 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'"); | |
11274 | } | |
11275 | arg4 = static_cast< int >(val4); | |
11276 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11277 | if (!SWIG_IsOK(ecode5)) { | |
11278 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'"); | |
11279 | } | |
11280 | arg5 = static_cast< int >(val5); | |
11281 | { | |
11282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11283 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
11284 | wxPyEndAllowThreads(__tstate); | |
11285 | if (PyErr_Occurred()) SWIG_fail; | |
11286 | } | |
11287 | { | |
11288 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11289 | } | |
11290 | return resultobj; | |
11291 | fail: | |
11292 | return NULL; | |
11293 | } | |
11294 | ||
11295 | ||
11296 | SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11297 | PyObject *resultobj = 0; | |
11298 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11299 | wxRect *arg2 = 0 ; | |
11300 | bool result; | |
11301 | void *argp1 = 0 ; | |
11302 | int res1 = 0 ; | |
11303 | wxRect temp2 ; | |
11304 | PyObject * obj0 = 0 ; | |
11305 | PyObject * obj1 = 0 ; | |
11306 | char * kwnames[] = { | |
11307 | (char *) "self",(char *) "rect", NULL | |
11308 | }; | |
11309 | ||
11310 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",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_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11314 | } | |
11315 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11316 | { | |
11317 | arg2 = &temp2; | |
11318 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11319 | } | |
11320 | { | |
11321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11322 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
11323 | wxPyEndAllowThreads(__tstate); | |
11324 | if (PyErr_Occurred()) SWIG_fail; | |
11325 | } | |
11326 | { | |
11327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11328 | } | |
11329 | return resultobj; | |
11330 | fail: | |
11331 | return NULL; | |
11332 | } | |
11333 | ||
11334 | ||
11335 | SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11336 | PyObject *resultobj = 0; | |
11337 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11338 | wxRegion *arg2 = 0 ; | |
11339 | bool result; | |
11340 | void *argp1 = 0 ; | |
11341 | int res1 = 0 ; | |
11342 | void *argp2 = 0 ; | |
11343 | int res2 = 0 ; | |
11344 | PyObject * obj0 = 0 ; | |
11345 | PyObject * obj1 = 0 ; | |
11346 | char * kwnames[] = { | |
11347 | (char *) "self",(char *) "region", NULL | |
11348 | }; | |
11349 | ||
11350 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11351 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11352 | if (!SWIG_IsOK(res1)) { | |
11353 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11354 | } | |
11355 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11356 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11357 | if (!SWIG_IsOK(res2)) { | |
11358 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11359 | } | |
11360 | if (!argp2) { | |
11361 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11362 | } | |
11363 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11364 | { | |
11365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11366 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
11367 | wxPyEndAllowThreads(__tstate); | |
11368 | if (PyErr_Occurred()) SWIG_fail; | |
11369 | } | |
11370 | { | |
11371 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11372 | } | |
11373 | return resultobj; | |
11374 | fail: | |
11375 | return NULL; | |
11376 | } | |
11377 | ||
11378 | ||
11379 | SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11380 | PyObject *resultobj = 0; | |
11381 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11382 | int arg2 ; | |
11383 | int arg3 ; | |
11384 | int arg4 ; | |
11385 | int arg5 ; | |
11386 | bool result; | |
11387 | void *argp1 = 0 ; | |
11388 | int res1 = 0 ; | |
11389 | int val2 ; | |
11390 | int ecode2 = 0 ; | |
11391 | int val3 ; | |
11392 | int ecode3 = 0 ; | |
11393 | int val4 ; | |
11394 | int ecode4 = 0 ; | |
11395 | int val5 ; | |
11396 | int ecode5 = 0 ; | |
11397 | PyObject * obj0 = 0 ; | |
11398 | PyObject * obj1 = 0 ; | |
11399 | PyObject * obj2 = 0 ; | |
11400 | PyObject * obj3 = 0 ; | |
11401 | PyObject * obj4 = 0 ; | |
11402 | char * kwnames[] = { | |
11403 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11404 | }; | |
11405 | ||
11406 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11407 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11408 | if (!SWIG_IsOK(res1)) { | |
11409 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11410 | } | |
11411 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11412 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11413 | if (!SWIG_IsOK(ecode2)) { | |
11414 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'"); | |
11415 | } | |
11416 | arg2 = static_cast< int >(val2); | |
11417 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11418 | if (!SWIG_IsOK(ecode3)) { | |
11419 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'"); | |
11420 | } | |
11421 | arg3 = static_cast< int >(val3); | |
11422 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11423 | if (!SWIG_IsOK(ecode4)) { | |
11424 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'"); | |
11425 | } | |
11426 | arg4 = static_cast< int >(val4); | |
11427 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11428 | if (!SWIG_IsOK(ecode5)) { | |
11429 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'"); | |
11430 | } | |
11431 | arg5 = static_cast< int >(val5); | |
11432 | { | |
11433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11434 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
11435 | wxPyEndAllowThreads(__tstate); | |
11436 | if (PyErr_Occurred()) SWIG_fail; | |
11437 | } | |
11438 | { | |
11439 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11440 | } | |
11441 | return resultobj; | |
11442 | fail: | |
11443 | return NULL; | |
11444 | } | |
11445 | ||
11446 | ||
11447 | SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11448 | PyObject *resultobj = 0; | |
11449 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11450 | wxRect *arg2 = 0 ; | |
11451 | bool result; | |
11452 | void *argp1 = 0 ; | |
11453 | int res1 = 0 ; | |
11454 | wxRect temp2 ; | |
11455 | PyObject * obj0 = 0 ; | |
11456 | PyObject * obj1 = 0 ; | |
11457 | char * kwnames[] = { | |
11458 | (char *) "self",(char *) "rect", NULL | |
11459 | }; | |
11460 | ||
11461 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",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_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11465 | } | |
11466 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11467 | { | |
11468 | arg2 = &temp2; | |
11469 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11470 | } | |
11471 | { | |
11472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11473 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
11474 | wxPyEndAllowThreads(__tstate); | |
11475 | if (PyErr_Occurred()) SWIG_fail; | |
11476 | } | |
11477 | { | |
11478 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11479 | } | |
11480 | return resultobj; | |
11481 | fail: | |
11482 | return NULL; | |
11483 | } | |
11484 | ||
11485 | ||
11486 | SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11487 | PyObject *resultobj = 0; | |
11488 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11489 | wxRegion *arg2 = 0 ; | |
11490 | bool result; | |
11491 | void *argp1 = 0 ; | |
11492 | int res1 = 0 ; | |
11493 | void *argp2 = 0 ; | |
11494 | int res2 = 0 ; | |
11495 | PyObject * obj0 = 0 ; | |
11496 | PyObject * obj1 = 0 ; | |
11497 | char * kwnames[] = { | |
11498 | (char *) "self",(char *) "region", NULL | |
11499 | }; | |
11500 | ||
11501 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11502 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11503 | if (!SWIG_IsOK(res1)) { | |
11504 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11505 | } | |
11506 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11507 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11508 | if (!SWIG_IsOK(res2)) { | |
11509 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11510 | } | |
11511 | if (!argp2) { | |
11512 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11513 | } | |
11514 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11515 | { | |
11516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11517 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
11518 | wxPyEndAllowThreads(__tstate); | |
11519 | if (PyErr_Occurred()) SWIG_fail; | |
11520 | } | |
11521 | { | |
11522 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11523 | } | |
11524 | return resultobj; | |
11525 | fail: | |
11526 | return NULL; | |
d14a1e28 RD |
11527 | } |
11528 | ||
11529 | ||
0085ce49 RD |
11530 | SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11531 | PyObject *resultobj = 0; | |
11532 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11533 | SwigValueWrapper<wxBitmap > result; | |
11534 | void *argp1 = 0 ; | |
11535 | int res1 = 0 ; | |
11536 | PyObject *swig_obj[1] ; | |
11537 | ||
11538 | if (!args) SWIG_fail; | |
11539 | swig_obj[0] = args; | |
11540 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11541 | if (!SWIG_IsOK(res1)) { | |
11542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11543 | } | |
11544 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11545 | { | |
11546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11547 | result = (arg1)->ConvertToBitmap(); | |
11548 | wxPyEndAllowThreads(__tstate); | |
11549 | if (PyErr_Occurred()) SWIG_fail; | |
11550 | } | |
11551 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
11552 | return resultobj; | |
11553 | fail: | |
11554 | return NULL; | |
11555 | } | |
11556 | ||
11557 | ||
11558 | SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11559 | PyObject *resultobj = 0; | |
11560 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11561 | wxBitmap *arg2 = 0 ; | |
11562 | bool result; | |
11563 | void *argp1 = 0 ; | |
11564 | int res1 = 0 ; | |
11565 | void *argp2 = 0 ; | |
11566 | int res2 = 0 ; | |
11567 | PyObject * obj0 = 0 ; | |
11568 | PyObject * obj1 = 0 ; | |
11569 | char * kwnames[] = { | |
11570 | (char *) "self",(char *) "bmp", NULL | |
11571 | }; | |
11572 | ||
11573 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
11574 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11575 | if (!SWIG_IsOK(res1)) { | |
11576 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11577 | } | |
11578 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11579 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
11580 | if (!SWIG_IsOK(res2)) { | |
11581 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11582 | } | |
11583 | if (!argp2) { | |
11584 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11585 | } | |
11586 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
11587 | { | |
11588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11589 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2); | |
11590 | wxPyEndAllowThreads(__tstate); | |
11591 | if (PyErr_Occurred()) SWIG_fail; | |
11592 | } | |
11593 | { | |
11594 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11595 | } | |
11596 | return resultobj; | |
11597 | fail: | |
11598 | return NULL; | |
11599 | } | |
11600 | ||
11601 | ||
11602 | SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11603 | PyObject *resultobj = 0; | |
11604 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11605 | wxBitmap *arg2 = 0 ; | |
11606 | wxColour *arg3 = 0 ; | |
11607 | int arg4 = (int) 0 ; | |
11608 | bool result; | |
11609 | void *argp1 = 0 ; | |
11610 | int res1 = 0 ; | |
11611 | void *argp2 = 0 ; | |
11612 | int res2 = 0 ; | |
11613 | wxColour temp3 ; | |
11614 | int val4 ; | |
11615 | int ecode4 = 0 ; | |
11616 | PyObject * obj0 = 0 ; | |
11617 | PyObject * obj1 = 0 ; | |
11618 | PyObject * obj2 = 0 ; | |
11619 | PyObject * obj3 = 0 ; | |
11620 | char * kwnames[] = { | |
11621 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
11622 | }; | |
11623 | ||
11624 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
11625 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11626 | if (!SWIG_IsOK(res1)) { | |
11627 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11628 | } | |
11629 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11630 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
11631 | if (!SWIG_IsOK(res2)) { | |
11632 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11633 | } | |
11634 | if (!argp2) { | |
11635 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11636 | } | |
11637 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
11638 | { | |
11639 | arg3 = &temp3; | |
11640 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
11641 | } | |
11642 | if (obj3) { | |
11643 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11644 | if (!SWIG_IsOK(ecode4)) { | |
11645 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'"); | |
11646 | } | |
11647 | arg4 = static_cast< int >(val4); | |
11648 | } | |
11649 | { | |
11650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11651 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
11652 | wxPyEndAllowThreads(__tstate); | |
11653 | if (PyErr_Occurred()) SWIG_fail; | |
11654 | } | |
11655 | { | |
11656 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11657 | } | |
11658 | return resultobj; | |
11659 | fail: | |
11660 | return NULL; | |
d14a1e28 RD |
11661 | } |
11662 | ||
11663 | ||
0085ce49 RD |
11664 | SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11665 | PyObject *obj; | |
11666 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11667 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj)); | |
11668 | return SWIG_Py_Void(); | |
d14a1e28 RD |
11669 | } |
11670 | ||
0085ce49 RD |
11671 | SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11672 | return SWIG_Python_InitShadowInstance(args); | |
11673 | } | |
d14a1e28 | 11674 | |
0085ce49 RD |
11675 | SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11676 | PyObject *resultobj = 0; | |
11677 | wxRegion *arg1 = 0 ; | |
11678 | wxRegionIterator *result = 0 ; | |
11679 | void *argp1 = 0 ; | |
11680 | int res1 = 0 ; | |
11681 | PyObject * obj0 = 0 ; | |
11682 | char * kwnames[] = { | |
11683 | (char *) "region", NULL | |
11684 | }; | |
11685 | ||
11686 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail; | |
11687 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0); | |
11688 | if (!SWIG_IsOK(res1)) { | |
11689 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
11690 | } | |
11691 | if (!argp1) { | |
11692 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
11693 | } | |
11694 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11695 | { | |
11696 | if (!wxPyCheckForApp()) SWIG_fail; | |
11697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11698 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
11699 | wxPyEndAllowThreads(__tstate); | |
11700 | if (PyErr_Occurred()) SWIG_fail; | |
11701 | } | |
11702 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 ); | |
11703 | return resultobj; | |
11704 | fail: | |
11705 | return NULL; | |
d14a1e28 RD |
11706 | } |
11707 | ||
11708 | ||
0085ce49 RD |
11709 | SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11710 | PyObject *resultobj = 0; | |
11711 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11712 | void *argp1 = 0 ; | |
11713 | int res1 = 0 ; | |
11714 | PyObject *swig_obj[1] ; | |
11715 | ||
11716 | if (!args) SWIG_fail; | |
11717 | swig_obj[0] = args; | |
11718 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 ); | |
11719 | if (!SWIG_IsOK(res1)) { | |
11720 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11721 | } | |
11722 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11723 | { | |
11724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11725 | delete arg1; | |
d14a1e28 | 11726 | |
0085ce49 RD |
11727 | wxPyEndAllowThreads(__tstate); |
11728 | if (PyErr_Occurred()) SWIG_fail; | |
11729 | } | |
11730 | resultobj = SWIG_Py_Void(); | |
11731 | return resultobj; | |
11732 | fail: | |
11733 | return NULL; | |
d14a1e28 RD |
11734 | } |
11735 | ||
11736 | ||
0085ce49 RD |
11737 | SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11738 | PyObject *resultobj = 0; | |
11739 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11740 | int result; | |
11741 | void *argp1 = 0 ; | |
11742 | int res1 = 0 ; | |
11743 | PyObject *swig_obj[1] ; | |
11744 | ||
11745 | if (!args) SWIG_fail; | |
11746 | swig_obj[0] = args; | |
11747 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11748 | if (!SWIG_IsOK(res1)) { | |
11749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11750 | } | |
11751 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11752 | { | |
11753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11754 | result = (int)(arg1)->GetX(); | |
11755 | wxPyEndAllowThreads(__tstate); | |
11756 | if (PyErr_Occurred()) SWIG_fail; | |
11757 | } | |
11758 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11759 | return resultobj; | |
11760 | fail: | |
11761 | return NULL; | |
d14a1e28 RD |
11762 | } |
11763 | ||
11764 | ||
0085ce49 RD |
11765 | SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11766 | PyObject *resultobj = 0; | |
11767 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11768 | int result; | |
11769 | void *argp1 = 0 ; | |
11770 | int res1 = 0 ; | |
11771 | PyObject *swig_obj[1] ; | |
11772 | ||
11773 | if (!args) SWIG_fail; | |
11774 | swig_obj[0] = args; | |
11775 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11776 | if (!SWIG_IsOK(res1)) { | |
11777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11778 | } | |
11779 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11780 | { | |
11781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11782 | result = (int)(arg1)->GetY(); | |
11783 | wxPyEndAllowThreads(__tstate); | |
11784 | if (PyErr_Occurred()) SWIG_fail; | |
11785 | } | |
11786 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11787 | return resultobj; | |
11788 | fail: | |
11789 | return NULL; | |
d14a1e28 RD |
11790 | } |
11791 | ||
11792 | ||
0085ce49 RD |
11793 | SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11794 | PyObject *resultobj = 0; | |
11795 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11796 | int result; | |
11797 | void *argp1 = 0 ; | |
11798 | int res1 = 0 ; | |
11799 | PyObject *swig_obj[1] ; | |
11800 | ||
11801 | if (!args) SWIG_fail; | |
11802 | swig_obj[0] = args; | |
11803 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11804 | if (!SWIG_IsOK(res1)) { | |
11805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11806 | } | |
11807 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11808 | { | |
11809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11810 | result = (int)(arg1)->GetW(); | |
11811 | wxPyEndAllowThreads(__tstate); | |
11812 | if (PyErr_Occurred()) SWIG_fail; | |
11813 | } | |
11814 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11815 | return resultobj; | |
11816 | fail: | |
11817 | return NULL; | |
d14a1e28 RD |
11818 | } |
11819 | ||
11820 | ||
0085ce49 RD |
11821 | SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11822 | PyObject *resultobj = 0; | |
11823 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11824 | int result; | |
11825 | void *argp1 = 0 ; | |
11826 | int res1 = 0 ; | |
11827 | PyObject *swig_obj[1] ; | |
11828 | ||
11829 | if (!args) SWIG_fail; | |
11830 | swig_obj[0] = args; | |
11831 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11832 | if (!SWIG_IsOK(res1)) { | |
11833 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11834 | } | |
11835 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11836 | { | |
11837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11838 | result = (int)(arg1)->GetWidth(); | |
11839 | wxPyEndAllowThreads(__tstate); | |
11840 | if (PyErr_Occurred()) SWIG_fail; | |
11841 | } | |
11842 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11843 | return resultobj; | |
11844 | fail: | |
11845 | return NULL; | |
093d3ff1 RD |
11846 | } |
11847 | ||
11848 | ||
0085ce49 RD |
11849 | SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11850 | PyObject *resultobj = 0; | |
11851 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11852 | int result; | |
11853 | void *argp1 = 0 ; | |
11854 | int res1 = 0 ; | |
11855 | PyObject *swig_obj[1] ; | |
11856 | ||
11857 | if (!args) SWIG_fail; | |
11858 | swig_obj[0] = args; | |
11859 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11860 | if (!SWIG_IsOK(res1)) { | |
11861 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11862 | } | |
11863 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11864 | { | |
11865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11866 | result = (int)(arg1)->GetH(); | |
11867 | wxPyEndAllowThreads(__tstate); | |
11868 | if (PyErr_Occurred()) SWIG_fail; | |
11869 | } | |
11870 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11871 | return resultobj; | |
11872 | fail: | |
11873 | return NULL; | |
d14a1e28 RD |
11874 | } |
11875 | ||
11876 | ||
0085ce49 RD |
11877 | SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11878 | PyObject *resultobj = 0; | |
11879 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11880 | int result; | |
11881 | void *argp1 = 0 ; | |
11882 | int res1 = 0 ; | |
11883 | PyObject *swig_obj[1] ; | |
11884 | ||
11885 | if (!args) SWIG_fail; | |
11886 | swig_obj[0] = args; | |
11887 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11888 | if (!SWIG_IsOK(res1)) { | |
11889 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11890 | } | |
11891 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11892 | { | |
11893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11894 | result = (int)(arg1)->GetHeight(); | |
11895 | wxPyEndAllowThreads(__tstate); | |
11896 | if (PyErr_Occurred()) SWIG_fail; | |
11897 | } | |
11898 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11899 | return resultobj; | |
11900 | fail: | |
11901 | return NULL; | |
093d3ff1 RD |
11902 | } |
11903 | ||
11904 | ||
0085ce49 RD |
11905 | SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11906 | PyObject *resultobj = 0; | |
11907 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11908 | wxRect result; | |
11909 | void *argp1 = 0 ; | |
11910 | int res1 = 0 ; | |
11911 | PyObject *swig_obj[1] ; | |
11912 | ||
11913 | if (!args) SWIG_fail; | |
11914 | swig_obj[0] = args; | |
11915 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11916 | if (!SWIG_IsOK(res1)) { | |
11917 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11918 | } | |
11919 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11920 | { | |
11921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11922 | result = (arg1)->GetRect(); | |
11923 | wxPyEndAllowThreads(__tstate); | |
11924 | if (PyErr_Occurred()) SWIG_fail; | |
11925 | } | |
11926 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
11927 | return resultobj; | |
11928 | fail: | |
11929 | return NULL; | |
d14a1e28 RD |
11930 | } |
11931 | ||
11932 | ||
0085ce49 RD |
11933 | SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11934 | PyObject *resultobj = 0; | |
11935 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11936 | bool result; | |
11937 | void *argp1 = 0 ; | |
11938 | int res1 = 0 ; | |
11939 | PyObject *swig_obj[1] ; | |
11940 | ||
11941 | if (!args) SWIG_fail; | |
11942 | swig_obj[0] = args; | |
11943 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11944 | if (!SWIG_IsOK(res1)) { | |
11945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11946 | } | |
11947 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11948 | { | |
11949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11950 | result = (bool)(arg1)->HaveRects(); | |
11951 | wxPyEndAllowThreads(__tstate); | |
11952 | if (PyErr_Occurred()) SWIG_fail; | |
11953 | } | |
11954 | { | |
11955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11956 | } | |
11957 | return resultobj; | |
11958 | fail: | |
11959 | return NULL; | |
093d3ff1 RD |
11960 | } |
11961 | ||
11962 | ||
0085ce49 RD |
11963 | SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11964 | PyObject *resultobj = 0; | |
11965 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11966 | void *argp1 = 0 ; | |
11967 | int res1 = 0 ; | |
11968 | PyObject *swig_obj[1] ; | |
11969 | ||
11970 | if (!args) SWIG_fail; | |
11971 | swig_obj[0] = args; | |
11972 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11973 | if (!SWIG_IsOK(res1)) { | |
11974 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11975 | } | |
11976 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11977 | { | |
11978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11979 | (arg1)->Reset(); | |
11980 | wxPyEndAllowThreads(__tstate); | |
11981 | if (PyErr_Occurred()) SWIG_fail; | |
11982 | } | |
11983 | resultobj = SWIG_Py_Void(); | |
11984 | return resultobj; | |
11985 | fail: | |
11986 | return NULL; | |
d14a1e28 RD |
11987 | } |
11988 | ||
11989 | ||
0085ce49 RD |
11990 | SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11991 | PyObject *resultobj = 0; | |
11992 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11993 | void *argp1 = 0 ; | |
11994 | int res1 = 0 ; | |
11995 | PyObject *swig_obj[1] ; | |
11996 | ||
11997 | if (!args) SWIG_fail; | |
11998 | swig_obj[0] = args; | |
11999 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12000 | if (!SWIG_IsOK(res1)) { | |
12001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12002 | } | |
12003 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12004 | { | |
12005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12006 | wxRegionIterator_Next(arg1); | |
12007 | wxPyEndAllowThreads(__tstate); | |
12008 | if (PyErr_Occurred()) SWIG_fail; | |
12009 | } | |
12010 | resultobj = SWIG_Py_Void(); | |
12011 | return resultobj; | |
12012 | fail: | |
12013 | return NULL; | |
d14a1e28 RD |
12014 | } |
12015 | ||
12016 | ||
0085ce49 RD |
12017 | SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12018 | PyObject *resultobj = 0; | |
12019 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12020 | bool result; | |
12021 | void *argp1 = 0 ; | |
12022 | int res1 = 0 ; | |
12023 | PyObject *swig_obj[1] ; | |
12024 | ||
12025 | if (!args) SWIG_fail; | |
12026 | swig_obj[0] = args; | |
12027 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12028 | if (!SWIG_IsOK(res1)) { | |
12029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12030 | } | |
12031 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12032 | { | |
12033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12034 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
12035 | wxPyEndAllowThreads(__tstate); | |
12036 | if (PyErr_Occurred()) SWIG_fail; | |
12037 | } | |
12038 | { | |
12039 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12040 | } | |
12041 | return resultobj; | |
12042 | fail: | |
12043 | return NULL; | |
d14a1e28 RD |
12044 | } |
12045 | ||
12046 | ||
0085ce49 RD |
12047 | SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12048 | PyObject *obj; | |
12049 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12050 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj)); | |
12051 | return SWIG_Py_Void(); | |
d14a1e28 RD |
12052 | } |
12053 | ||
0085ce49 RD |
12054 | SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12055 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
12056 | } |
12057 | ||
0085ce49 RD |
12058 | SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12059 | PyObject *resultobj = 0; | |
12060 | wxNativeFontInfo *result = 0 ; | |
12061 | ||
12062 | if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail; | |
12063 | { | |
12064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12065 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
12066 | wxPyEndAllowThreads(__tstate); | |
12067 | if (PyErr_Occurred()) SWIG_fail; | |
12068 | } | |
12069 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 ); | |
12070 | return resultobj; | |
12071 | fail: | |
12072 | return NULL; | |
d14a1e28 RD |
12073 | } |
12074 | ||
12075 | ||
0085ce49 RD |
12076 | SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12077 | PyObject *resultobj = 0; | |
12078 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12079 | void *argp1 = 0 ; | |
12080 | int res1 = 0 ; | |
12081 | PyObject *swig_obj[1] ; | |
12082 | ||
12083 | if (!args) SWIG_fail; | |
12084 | swig_obj[0] = args; | |
12085 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 ); | |
12086 | if (!SWIG_IsOK(res1)) { | |
12087 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12088 | } | |
12089 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12090 | { | |
12091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12092 | delete arg1; | |
d14a1e28 | 12093 | |
0085ce49 RD |
12094 | wxPyEndAllowThreads(__tstate); |
12095 | if (PyErr_Occurred()) SWIG_fail; | |
12096 | } | |
12097 | resultobj = SWIG_Py_Void(); | |
12098 | return resultobj; | |
12099 | fail: | |
12100 | return NULL; | |
d14a1e28 RD |
12101 | } |
12102 | ||
12103 | ||
0085ce49 RD |
12104 | SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12105 | PyObject *resultobj = 0; | |
12106 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12107 | void *argp1 = 0 ; | |
12108 | int res1 = 0 ; | |
12109 | PyObject *swig_obj[1] ; | |
12110 | ||
12111 | if (!args) SWIG_fail; | |
12112 | swig_obj[0] = args; | |
12113 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12114 | if (!SWIG_IsOK(res1)) { | |
12115 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12116 | } | |
12117 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12118 | { | |
12119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12120 | (arg1)->Init(); | |
12121 | wxPyEndAllowThreads(__tstate); | |
12122 | if (PyErr_Occurred()) SWIG_fail; | |
12123 | } | |
12124 | resultobj = SWIG_Py_Void(); | |
12125 | return resultobj; | |
12126 | fail: | |
12127 | return NULL; | |
12128 | } | |
12129 | ||
12130 | ||
12131 | SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12132 | PyObject *resultobj = 0; | |
12133 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12134 | wxFont *arg2 = 0 ; | |
12135 | void *argp1 = 0 ; | |
12136 | int res1 = 0 ; | |
12137 | void *argp2 = 0 ; | |
12138 | int res2 = 0 ; | |
12139 | PyObject * obj0 = 0 ; | |
12140 | PyObject * obj1 = 0 ; | |
12141 | char * kwnames[] = { | |
12142 | (char *) "self",(char *) "font", NULL | |
12143 | }; | |
12144 | ||
12145 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
12146 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12147 | if (!SWIG_IsOK(res1)) { | |
12148 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12149 | } | |
12150 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12151 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
12152 | if (!SWIG_IsOK(res2)) { | |
12153 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
12154 | } | |
12155 | if (!argp2) { | |
12156 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
12157 | } | |
12158 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
12159 | { | |
12160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12161 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
12162 | wxPyEndAllowThreads(__tstate); | |
12163 | if (PyErr_Occurred()) SWIG_fail; | |
12164 | } | |
12165 | resultobj = SWIG_Py_Void(); | |
12166 | return resultobj; | |
12167 | fail: | |
12168 | return NULL; | |
e6ffcedd RD |
12169 | } |
12170 | ||
12171 | ||
0085ce49 RD |
12172 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12173 | PyObject *resultobj = 0; | |
12174 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12175 | int result; | |
12176 | void *argp1 = 0 ; | |
12177 | int res1 = 0 ; | |
12178 | PyObject *swig_obj[1] ; | |
12179 | ||
12180 | if (!args) SWIG_fail; | |
12181 | swig_obj[0] = args; | |
12182 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12183 | if (!SWIG_IsOK(res1)) { | |
12184 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12185 | } | |
12186 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12187 | { | |
12188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12189 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
12190 | wxPyEndAllowThreads(__tstate); | |
12191 | if (PyErr_Occurred()) SWIG_fail; | |
12192 | } | |
12193 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12194 | return resultobj; | |
12195 | fail: | |
12196 | return NULL; | |
d14a1e28 RD |
12197 | } |
12198 | ||
12199 | ||
0085ce49 RD |
12200 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12201 | PyObject *resultobj = 0; | |
12202 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12203 | wxFontStyle result; | |
12204 | void *argp1 = 0 ; | |
12205 | int res1 = 0 ; | |
12206 | PyObject *swig_obj[1] ; | |
12207 | ||
12208 | if (!args) SWIG_fail; | |
12209 | swig_obj[0] = args; | |
12210 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12211 | if (!SWIG_IsOK(res1)) { | |
12212 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12213 | } | |
12214 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12215 | { | |
12216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12217 | result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
12218 | wxPyEndAllowThreads(__tstate); | |
12219 | if (PyErr_Occurred()) SWIG_fail; | |
12220 | } | |
12221 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12222 | return resultobj; | |
12223 | fail: | |
12224 | return NULL; | |
d14a1e28 RD |
12225 | } |
12226 | ||
12227 | ||
0085ce49 RD |
12228 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12229 | PyObject *resultobj = 0; | |
12230 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12231 | wxFontWeight result; | |
12232 | void *argp1 = 0 ; | |
12233 | int res1 = 0 ; | |
12234 | PyObject *swig_obj[1] ; | |
12235 | ||
12236 | if (!args) SWIG_fail; | |
12237 | swig_obj[0] = args; | |
12238 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12239 | if (!SWIG_IsOK(res1)) { | |
12240 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12241 | } | |
12242 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12243 | { | |
12244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12245 | result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
12246 | wxPyEndAllowThreads(__tstate); | |
12247 | if (PyErr_Occurred()) SWIG_fail; | |
12248 | } | |
12249 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12250 | return resultobj; | |
12251 | fail: | |
12252 | return NULL; | |
d14a1e28 RD |
12253 | } |
12254 | ||
12255 | ||
0085ce49 RD |
12256 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12257 | PyObject *resultobj = 0; | |
12258 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12259 | bool result; | |
12260 | void *argp1 = 0 ; | |
12261 | int res1 = 0 ; | |
12262 | PyObject *swig_obj[1] ; | |
12263 | ||
12264 | if (!args) SWIG_fail; | |
12265 | swig_obj[0] = args; | |
12266 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12267 | if (!SWIG_IsOK(res1)) { | |
12268 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12269 | } | |
12270 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12271 | { | |
12272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12273 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
12274 | wxPyEndAllowThreads(__tstate); | |
12275 | if (PyErr_Occurred()) SWIG_fail; | |
12276 | } | |
12277 | { | |
12278 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12279 | } | |
12280 | return resultobj; | |
12281 | fail: | |
12282 | return NULL; | |
d14a1e28 RD |
12283 | } |
12284 | ||
12285 | ||
0085ce49 RD |
12286 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12287 | PyObject *resultobj = 0; | |
12288 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12289 | wxString result; | |
12290 | void *argp1 = 0 ; | |
12291 | int res1 = 0 ; | |
12292 | PyObject *swig_obj[1] ; | |
12293 | ||
12294 | if (!args) SWIG_fail; | |
12295 | swig_obj[0] = args; | |
12296 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12297 | if (!SWIG_IsOK(res1)) { | |
12298 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12299 | } | |
12300 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12301 | { | |
12302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12303 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
12304 | wxPyEndAllowThreads(__tstate); | |
12305 | if (PyErr_Occurred()) SWIG_fail; | |
12306 | } | |
12307 | { | |
12308 | #if wxUSE_UNICODE | |
12309 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12310 | #else | |
12311 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12312 | #endif | |
12313 | } | |
12314 | return resultobj; | |
12315 | fail: | |
12316 | return NULL; | |
d14a1e28 RD |
12317 | } |
12318 | ||
12319 | ||
0085ce49 RD |
12320 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12321 | PyObject *resultobj = 0; | |
12322 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12323 | wxFontFamily result; | |
12324 | void *argp1 = 0 ; | |
12325 | int res1 = 0 ; | |
12326 | PyObject *swig_obj[1] ; | |
12327 | ||
12328 | if (!args) SWIG_fail; | |
12329 | swig_obj[0] = args; | |
12330 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12331 | if (!SWIG_IsOK(res1)) { | |
12332 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12333 | } | |
12334 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12335 | { | |
12336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12337 | result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
12338 | wxPyEndAllowThreads(__tstate); | |
12339 | if (PyErr_Occurred()) SWIG_fail; | |
12340 | } | |
12341 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12342 | return resultobj; | |
12343 | fail: | |
12344 | return NULL; | |
d14a1e28 RD |
12345 | } |
12346 | ||
12347 | ||
0085ce49 RD |
12348 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12349 | PyObject *resultobj = 0; | |
12350 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12351 | wxFontEncoding result; | |
12352 | void *argp1 = 0 ; | |
12353 | int res1 = 0 ; | |
12354 | PyObject *swig_obj[1] ; | |
12355 | ||
12356 | if (!args) SWIG_fail; | |
12357 | swig_obj[0] = args; | |
12358 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12359 | if (!SWIG_IsOK(res1)) { | |
12360 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12361 | } | |
12362 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12363 | { | |
12364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12365 | result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
12366 | wxPyEndAllowThreads(__tstate); | |
12367 | if (PyErr_Occurred()) SWIG_fail; | |
12368 | } | |
12369 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12370 | return resultobj; | |
12371 | fail: | |
12372 | return NULL; | |
12373 | } | |
12374 | ||
12375 | ||
12376 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12377 | PyObject *resultobj = 0; | |
12378 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12379 | int arg2 ; | |
12380 | void *argp1 = 0 ; | |
12381 | int res1 = 0 ; | |
12382 | int val2 ; | |
12383 | int ecode2 = 0 ; | |
12384 | PyObject * obj0 = 0 ; | |
12385 | PyObject * obj1 = 0 ; | |
12386 | char * kwnames[] = { | |
12387 | (char *) "self",(char *) "pointsize", NULL | |
12388 | }; | |
12389 | ||
12390 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12391 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12392 | if (!SWIG_IsOK(res1)) { | |
12393 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12394 | } | |
12395 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12396 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12397 | if (!SWIG_IsOK(ecode2)) { | |
12398 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
12399 | } | |
12400 | arg2 = static_cast< int >(val2); | |
12401 | { | |
12402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12403 | (arg1)->SetPointSize(arg2); | |
12404 | wxPyEndAllowThreads(__tstate); | |
12405 | if (PyErr_Occurred()) SWIG_fail; | |
12406 | } | |
12407 | resultobj = SWIG_Py_Void(); | |
12408 | return resultobj; | |
12409 | fail: | |
12410 | return NULL; | |
12411 | } | |
12412 | ||
12413 | ||
12414 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12415 | PyObject *resultobj = 0; | |
12416 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12417 | wxFontStyle arg2 ; | |
12418 | void *argp1 = 0 ; | |
12419 | int res1 = 0 ; | |
12420 | int val2 ; | |
12421 | int ecode2 = 0 ; | |
12422 | PyObject * obj0 = 0 ; | |
12423 | PyObject * obj1 = 0 ; | |
12424 | char * kwnames[] = { | |
12425 | (char *) "self",(char *) "style", NULL | |
12426 | }; | |
12427 | ||
12428 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
12429 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12430 | if (!SWIG_IsOK(res1)) { | |
12431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12432 | } | |
12433 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12434 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12435 | if (!SWIG_IsOK(ecode2)) { | |
12436 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'"); | |
12437 | } | |
12438 | arg2 = static_cast< wxFontStyle >(val2); | |
12439 | { | |
12440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12441 | (arg1)->SetStyle(arg2); | |
12442 | wxPyEndAllowThreads(__tstate); | |
12443 | if (PyErr_Occurred()) SWIG_fail; | |
12444 | } | |
12445 | resultobj = SWIG_Py_Void(); | |
12446 | return resultobj; | |
12447 | fail: | |
12448 | return NULL; | |
12449 | } | |
12450 | ||
12451 | ||
12452 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12453 | PyObject *resultobj = 0; | |
12454 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12455 | wxFontWeight arg2 ; | |
12456 | void *argp1 = 0 ; | |
12457 | int res1 = 0 ; | |
12458 | int val2 ; | |
12459 | int ecode2 = 0 ; | |
12460 | PyObject * obj0 = 0 ; | |
12461 | PyObject * obj1 = 0 ; | |
12462 | char * kwnames[] = { | |
12463 | (char *) "self",(char *) "weight", NULL | |
12464 | }; | |
12465 | ||
12466 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
12467 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12468 | if (!SWIG_IsOK(res1)) { | |
12469 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12470 | } | |
12471 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12472 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12473 | if (!SWIG_IsOK(ecode2)) { | |
12474 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'"); | |
12475 | } | |
12476 | arg2 = static_cast< wxFontWeight >(val2); | |
12477 | { | |
12478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12479 | (arg1)->SetWeight(arg2); | |
12480 | wxPyEndAllowThreads(__tstate); | |
12481 | if (PyErr_Occurred()) SWIG_fail; | |
12482 | } | |
12483 | resultobj = SWIG_Py_Void(); | |
12484 | return resultobj; | |
12485 | fail: | |
12486 | return NULL; | |
12487 | } | |
12488 | ||
12489 | ||
12490 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12491 | PyObject *resultobj = 0; | |
12492 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12493 | bool arg2 ; | |
12494 | void *argp1 = 0 ; | |
12495 | int res1 = 0 ; | |
12496 | bool val2 ; | |
12497 | int ecode2 = 0 ; | |
12498 | PyObject * obj0 = 0 ; | |
12499 | PyObject * obj1 = 0 ; | |
12500 | char * kwnames[] = { | |
12501 | (char *) "self",(char *) "underlined", NULL | |
12502 | }; | |
12503 | ||
12504 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
12505 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12506 | if (!SWIG_IsOK(res1)) { | |
12507 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12508 | } | |
12509 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12510 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
12511 | if (!SWIG_IsOK(ecode2)) { | |
12512 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
12513 | } | |
12514 | arg2 = static_cast< bool >(val2); | |
12515 | { | |
12516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12517 | (arg1)->SetUnderlined(arg2); | |
12518 | wxPyEndAllowThreads(__tstate); | |
12519 | if (PyErr_Occurred()) SWIG_fail; | |
12520 | } | |
12521 | resultobj = SWIG_Py_Void(); | |
12522 | return resultobj; | |
12523 | fail: | |
12524 | return NULL; | |
12525 | } | |
12526 | ||
12527 | ||
12528 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12529 | PyObject *resultobj = 0; | |
12530 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12531 | wxString arg2 ; | |
704eda0c | 12532 | bool result; |
0085ce49 RD |
12533 | void *argp1 = 0 ; |
12534 | int res1 = 0 ; | |
12535 | PyObject * obj0 = 0 ; | |
12536 | PyObject * obj1 = 0 ; | |
12537 | char * kwnames[] = { | |
12538 | (char *) "self",(char *) "facename", NULL | |
12539 | }; | |
12540 | ||
12541 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
12542 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12543 | if (!SWIG_IsOK(res1)) { | |
12544 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12545 | } | |
12546 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12547 | { | |
12548 | wxString* sptr = wxString_in_helper(obj1); | |
12549 | if (sptr == NULL) SWIG_fail; | |
12550 | arg2 = *sptr; | |
12551 | delete sptr; | |
12552 | } | |
12553 | { | |
12554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 12555 | result = (bool)(arg1)->SetFaceName(arg2); |
0085ce49 RD |
12556 | wxPyEndAllowThreads(__tstate); |
12557 | if (PyErr_Occurred()) SWIG_fail; | |
12558 | } | |
704eda0c RD |
12559 | { |
12560 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12561 | } | |
0085ce49 RD |
12562 | return resultobj; |
12563 | fail: | |
12564 | return NULL; | |
12565 | } | |
12566 | ||
12567 | ||
12568 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12569 | PyObject *resultobj = 0; | |
12570 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12571 | wxFontFamily arg2 ; | |
12572 | void *argp1 = 0 ; | |
12573 | int res1 = 0 ; | |
12574 | int val2 ; | |
12575 | int ecode2 = 0 ; | |
12576 | PyObject * obj0 = 0 ; | |
12577 | PyObject * obj1 = 0 ; | |
12578 | char * kwnames[] = { | |
12579 | (char *) "self",(char *) "family", NULL | |
12580 | }; | |
12581 | ||
12582 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
12583 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12584 | if (!SWIG_IsOK(res1)) { | |
12585 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12586 | } | |
12587 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12588 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12589 | if (!SWIG_IsOK(ecode2)) { | |
12590 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
12591 | } | |
12592 | arg2 = static_cast< wxFontFamily >(val2); | |
12593 | { | |
12594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12595 | (arg1)->SetFamily(arg2); | |
12596 | wxPyEndAllowThreads(__tstate); | |
12597 | if (PyErr_Occurred()) SWIG_fail; | |
12598 | } | |
12599 | resultobj = SWIG_Py_Void(); | |
12600 | return resultobj; | |
12601 | fail: | |
12602 | return NULL; | |
12603 | } | |
12604 | ||
12605 | ||
12606 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12607 | PyObject *resultobj = 0; | |
12608 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12609 | wxFontEncoding arg2 ; | |
12610 | void *argp1 = 0 ; | |
12611 | int res1 = 0 ; | |
12612 | int val2 ; | |
12613 | int ecode2 = 0 ; | |
12614 | PyObject * obj0 = 0 ; | |
12615 | PyObject * obj1 = 0 ; | |
12616 | char * kwnames[] = { | |
12617 | (char *) "self",(char *) "encoding", NULL | |
12618 | }; | |
12619 | ||
12620 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
12621 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12622 | if (!SWIG_IsOK(res1)) { | |
12623 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12624 | } | |
12625 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12626 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12627 | if (!SWIG_IsOK(ecode2)) { | |
12628 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
12629 | } | |
12630 | arg2 = static_cast< wxFontEncoding >(val2); | |
12631 | { | |
12632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12633 | (arg1)->SetEncoding(arg2); | |
12634 | wxPyEndAllowThreads(__tstate); | |
12635 | if (PyErr_Occurred()) SWIG_fail; | |
12636 | } | |
12637 | resultobj = SWIG_Py_Void(); | |
12638 | return resultobj; | |
12639 | fail: | |
12640 | return NULL; | |
12641 | } | |
12642 | ||
12643 | ||
12644 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12645 | PyObject *resultobj = 0; | |
12646 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12647 | wxString *arg2 = 0 ; | |
12648 | bool result; | |
12649 | void *argp1 = 0 ; | |
12650 | int res1 = 0 ; | |
12651 | bool temp2 = false ; | |
12652 | PyObject * obj0 = 0 ; | |
12653 | PyObject * obj1 = 0 ; | |
12654 | char * kwnames[] = { | |
12655 | (char *) "self",(char *) "s", NULL | |
12656 | }; | |
12657 | ||
12658 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
12659 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12660 | if (!SWIG_IsOK(res1)) { | |
12661 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12662 | } | |
12663 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12664 | { | |
12665 | arg2 = wxString_in_helper(obj1); | |
12666 | if (arg2 == NULL) SWIG_fail; | |
12667 | temp2 = true; | |
12668 | } | |
12669 | { | |
12670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12671 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
12672 | wxPyEndAllowThreads(__tstate); | |
12673 | if (PyErr_Occurred()) SWIG_fail; | |
12674 | } | |
12675 | { | |
12676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12677 | } | |
12678 | { | |
12679 | if (temp2) | |
12680 | delete arg2; | |
12681 | } | |
12682 | return resultobj; | |
12683 | fail: | |
12684 | { | |
12685 | if (temp2) | |
12686 | delete arg2; | |
12687 | } | |
12688 | return NULL; | |
d14a1e28 RD |
12689 | } |
12690 | ||
12691 | ||
0085ce49 RD |
12692 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12693 | PyObject *resultobj = 0; | |
12694 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12695 | wxString result; | |
12696 | void *argp1 = 0 ; | |
12697 | int res1 = 0 ; | |
12698 | PyObject *swig_obj[1] ; | |
12699 | ||
12700 | if (!args) SWIG_fail; | |
12701 | swig_obj[0] = args; | |
12702 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12703 | if (!SWIG_IsOK(res1)) { | |
12704 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12705 | } | |
12706 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12707 | { | |
12708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12709 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
12710 | wxPyEndAllowThreads(__tstate); | |
12711 | if (PyErr_Occurred()) SWIG_fail; | |
12712 | } | |
12713 | { | |
12714 | #if wxUSE_UNICODE | |
12715 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12716 | #else | |
12717 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12718 | #endif | |
12719 | } | |
12720 | return resultobj; | |
12721 | fail: | |
12722 | return NULL; | |
d14a1e28 RD |
12723 | } |
12724 | ||
12725 | ||
0085ce49 RD |
12726 | SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12727 | PyObject *resultobj = 0; | |
12728 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12729 | wxString result; | |
12730 | void *argp1 = 0 ; | |
12731 | int res1 = 0 ; | |
12732 | PyObject *swig_obj[1] ; | |
12733 | ||
12734 | if (!args) SWIG_fail; | |
12735 | swig_obj[0] = args; | |
12736 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12737 | if (!SWIG_IsOK(res1)) { | |
12738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12739 | } | |
12740 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12741 | { | |
12742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12743 | result = wxNativeFontInfo___str__(arg1); | |
12744 | wxPyEndAllowThreads(__tstate); | |
12745 | if (PyErr_Occurred()) SWIG_fail; | |
12746 | } | |
12747 | { | |
12748 | #if wxUSE_UNICODE | |
12749 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12750 | #else | |
12751 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12752 | #endif | |
12753 | } | |
12754 | return resultobj; | |
12755 | fail: | |
12756 | return NULL; | |
12757 | } | |
12758 | ||
12759 | ||
12760 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12761 | PyObject *resultobj = 0; | |
12762 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12763 | wxString *arg2 = 0 ; | |
12764 | bool result; | |
12765 | void *argp1 = 0 ; | |
12766 | int res1 = 0 ; | |
12767 | bool temp2 = false ; | |
12768 | PyObject * obj0 = 0 ; | |
12769 | PyObject * obj1 = 0 ; | |
12770 | char * kwnames[] = { | |
12771 | (char *) "self",(char *) "s", NULL | |
12772 | }; | |
12773 | ||
12774 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail; | |
12775 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12776 | if (!SWIG_IsOK(res1)) { | |
12777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12778 | } | |
12779 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12780 | { | |
12781 | arg2 = wxString_in_helper(obj1); | |
12782 | if (arg2 == NULL) SWIG_fail; | |
12783 | temp2 = true; | |
12784 | } | |
12785 | { | |
12786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12787 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
12788 | wxPyEndAllowThreads(__tstate); | |
12789 | if (PyErr_Occurred()) SWIG_fail; | |
12790 | } | |
12791 | { | |
12792 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12793 | } | |
12794 | { | |
12795 | if (temp2) | |
12796 | delete arg2; | |
12797 | } | |
12798 | return resultobj; | |
12799 | fail: | |
12800 | { | |
12801 | if (temp2) | |
12802 | delete arg2; | |
12803 | } | |
12804 | return NULL; | |
d14a1e28 RD |
12805 | } |
12806 | ||
12807 | ||
0085ce49 RD |
12808 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12809 | PyObject *resultobj = 0; | |
12810 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12811 | wxString result; | |
12812 | void *argp1 = 0 ; | |
12813 | int res1 = 0 ; | |
12814 | PyObject *swig_obj[1] ; | |
12815 | ||
12816 | if (!args) SWIG_fail; | |
12817 | swig_obj[0] = args; | |
12818 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12819 | if (!SWIG_IsOK(res1)) { | |
12820 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12821 | } | |
12822 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12823 | { | |
12824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12825 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
12826 | wxPyEndAllowThreads(__tstate); | |
12827 | if (PyErr_Occurred()) SWIG_fail; | |
12828 | } | |
12829 | { | |
12830 | #if wxUSE_UNICODE | |
12831 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12832 | #else | |
12833 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12834 | #endif | |
12835 | } | |
12836 | return resultobj; | |
12837 | fail: | |
12838 | return NULL; | |
d14a1e28 RD |
12839 | } |
12840 | ||
12841 | ||
0085ce49 RD |
12842 | SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12843 | PyObject *obj; | |
12844 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12845 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj)); | |
12846 | return SWIG_Py_Void(); | |
d14a1e28 RD |
12847 | } |
12848 | ||
0085ce49 RD |
12849 | SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12850 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
12851 | } |
12852 | ||
0085ce49 RD |
12853 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12854 | PyObject *resultobj = 0; | |
12855 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12856 | wxString *arg2 = (wxString *) 0 ; | |
12857 | void *argp1 = 0 ; | |
12858 | int res1 = 0 ; | |
12859 | bool temp2 = false ; | |
12860 | PyObject *swig_obj[2] ; | |
12861 | ||
12862 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail; | |
12863 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12864 | if (!SWIG_IsOK(res1)) { | |
12865 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12866 | } | |
12867 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12868 | { | |
12869 | arg2 = wxString_in_helper(swig_obj[1]); | |
12870 | if (arg2 == NULL) SWIG_fail; | |
12871 | temp2 = true; | |
12872 | } | |
12873 | if (arg1) (arg1)->facename = *arg2; | |
12874 | ||
12875 | resultobj = SWIG_Py_Void(); | |
12876 | { | |
12877 | if (temp2) | |
12878 | delete arg2; | |
12879 | } | |
12880 | return resultobj; | |
12881 | fail: | |
12882 | { | |
12883 | if (temp2) | |
12884 | delete arg2; | |
12885 | } | |
12886 | return NULL; | |
d14a1e28 RD |
12887 | } |
12888 | ||
12889 | ||
0085ce49 RD |
12890 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12891 | PyObject *resultobj = 0; | |
12892 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12893 | wxString *result = 0 ; | |
12894 | void *argp1 = 0 ; | |
12895 | int res1 = 0 ; | |
12896 | PyObject *swig_obj[1] ; | |
12897 | ||
12898 | if (!args) SWIG_fail; | |
12899 | swig_obj[0] = args; | |
12900 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12901 | if (!SWIG_IsOK(res1)) { | |
12902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12903 | } | |
12904 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12905 | result = (wxString *)& ((arg1)->facename); | |
12906 | { | |
12907 | #if wxUSE_UNICODE | |
12908 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12909 | #else | |
12910 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12911 | #endif | |
12912 | } | |
12913 | return resultobj; | |
12914 | fail: | |
12915 | return NULL; | |
d14a1e28 RD |
12916 | } |
12917 | ||
12918 | ||
0085ce49 RD |
12919 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12920 | PyObject *resultobj = 0; | |
12921 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12922 | wxFontEncoding arg2 ; | |
12923 | void *argp1 = 0 ; | |
12924 | int res1 = 0 ; | |
12925 | int val2 ; | |
12926 | int ecode2 = 0 ; | |
12927 | PyObject *swig_obj[2] ; | |
12928 | ||
12929 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail; | |
12930 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12931 | if (!SWIG_IsOK(res1)) { | |
12932 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12933 | } | |
12934 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12935 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
12936 | if (!SWIG_IsOK(ecode2)) { | |
12937 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
12938 | } | |
12939 | arg2 = static_cast< wxFontEncoding >(val2); | |
12940 | if (arg1) (arg1)->encoding = arg2; | |
12941 | ||
12942 | resultobj = SWIG_Py_Void(); | |
12943 | return resultobj; | |
12944 | fail: | |
12945 | return NULL; | |
d14a1e28 RD |
12946 | } |
12947 | ||
12948 | ||
0085ce49 RD |
12949 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12950 | PyObject *resultobj = 0; | |
12951 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12952 | wxFontEncoding result; | |
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, 0 | 0 ); | |
12960 | if (!SWIG_IsOK(res1)) { | |
12961 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12962 | } | |
12963 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12964 | result = (wxFontEncoding) ((arg1)->encoding); | |
12965 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12966 | return resultobj; | |
12967 | fail: | |
12968 | return NULL; | |
d14a1e28 RD |
12969 | } |
12970 | ||
12971 | ||
0085ce49 RD |
12972 | SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12973 | PyObject *resultobj = 0; | |
12974 | wxNativeEncodingInfo *result = 0 ; | |
12975 | ||
12976 | if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail; | |
12977 | { | |
12978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12979 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
12980 | wxPyEndAllowThreads(__tstate); | |
12981 | if (PyErr_Occurred()) SWIG_fail; | |
12982 | } | |
12983 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 ); | |
12984 | return resultobj; | |
12985 | fail: | |
12986 | return NULL; | |
d14a1e28 RD |
12987 | } |
12988 | ||
12989 | ||
0085ce49 RD |
12990 | SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12991 | PyObject *resultobj = 0; | |
12992 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12993 | void *argp1 = 0 ; | |
12994 | int res1 = 0 ; | |
12995 | PyObject *swig_obj[1] ; | |
12996 | ||
12997 | if (!args) SWIG_fail; | |
12998 | swig_obj[0] = args; | |
12999 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 ); | |
13000 | if (!SWIG_IsOK(res1)) { | |
13001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13002 | } | |
13003 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13004 | { | |
13005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13006 | delete arg1; | |
d14a1e28 | 13007 | |
0085ce49 RD |
13008 | wxPyEndAllowThreads(__tstate); |
13009 | if (PyErr_Occurred()) SWIG_fail; | |
13010 | } | |
13011 | resultobj = SWIG_Py_Void(); | |
13012 | return resultobj; | |
13013 | fail: | |
13014 | return NULL; | |
13015 | } | |
13016 | ||
13017 | ||
13018 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13019 | PyObject *resultobj = 0; | |
13020 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13021 | wxString *arg2 = 0 ; | |
13022 | bool result; | |
13023 | void *argp1 = 0 ; | |
13024 | int res1 = 0 ; | |
13025 | bool temp2 = false ; | |
13026 | PyObject * obj0 = 0 ; | |
13027 | PyObject * obj1 = 0 ; | |
13028 | char * kwnames[] = { | |
13029 | (char *) "self",(char *) "s", NULL | |
13030 | }; | |
13031 | ||
13032 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
13033 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13034 | if (!SWIG_IsOK(res1)) { | |
13035 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13036 | } | |
13037 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13038 | { | |
13039 | arg2 = wxString_in_helper(obj1); | |
13040 | if (arg2 == NULL) SWIG_fail; | |
13041 | temp2 = true; | |
13042 | } | |
13043 | { | |
13044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13045 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
13046 | wxPyEndAllowThreads(__tstate); | |
13047 | if (PyErr_Occurred()) SWIG_fail; | |
13048 | } | |
13049 | { | |
13050 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13051 | } | |
13052 | { | |
13053 | if (temp2) | |
13054 | delete arg2; | |
13055 | } | |
13056 | return resultobj; | |
13057 | fail: | |
13058 | { | |
13059 | if (temp2) | |
13060 | delete arg2; | |
13061 | } | |
13062 | return NULL; | |
d14a1e28 RD |
13063 | } |
13064 | ||
13065 | ||
0085ce49 RD |
13066 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13067 | PyObject *resultobj = 0; | |
13068 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13069 | wxString result; | |
13070 | void *argp1 = 0 ; | |
13071 | int res1 = 0 ; | |
13072 | PyObject *swig_obj[1] ; | |
13073 | ||
13074 | if (!args) SWIG_fail; | |
13075 | swig_obj[0] = args; | |
13076 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13077 | if (!SWIG_IsOK(res1)) { | |
13078 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'"); | |
13079 | } | |
13080 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13081 | { | |
13082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13083 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
13084 | wxPyEndAllowThreads(__tstate); | |
13085 | if (PyErr_Occurred()) SWIG_fail; | |
13086 | } | |
13087 | { | |
13088 | #if wxUSE_UNICODE | |
13089 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13090 | #else | |
13091 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13092 | #endif | |
13093 | } | |
13094 | return resultobj; | |
13095 | fail: | |
13096 | return NULL; | |
d14a1e28 RD |
13097 | } |
13098 | ||
13099 | ||
0085ce49 RD |
13100 | SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13101 | PyObject *obj; | |
13102 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13103 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj)); | |
13104 | return SWIG_Py_Void(); | |
d14a1e28 RD |
13105 | } |
13106 | ||
0085ce49 RD |
13107 | SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13108 | return SWIG_Python_InitShadowInstance(args); | |
13109 | } | |
d14a1e28 | 13110 | |
0085ce49 RD |
13111 | SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13112 | PyObject *resultobj = 0; | |
13113 | wxFontEncoding arg1 ; | |
13114 | wxNativeEncodingInfo *result = 0 ; | |
13115 | int val1 ; | |
13116 | int ecode1 = 0 ; | |
13117 | PyObject * obj0 = 0 ; | |
13118 | char * kwnames[] = { | |
13119 | (char *) "encoding", NULL | |
13120 | }; | |
13121 | ||
13122 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail; | |
13123 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13124 | if (!SWIG_IsOK(ecode1)) { | |
13125 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
13126 | } | |
13127 | arg1 = static_cast< wxFontEncoding >(val1); | |
13128 | { | |
13129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13130 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1); | |
13131 | wxPyEndAllowThreads(__tstate); | |
13132 | if (PyErr_Occurred()) SWIG_fail; | |
13133 | } | |
13134 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13135 | return resultobj; | |
13136 | fail: | |
13137 | return NULL; | |
13138 | } | |
13139 | ||
13140 | ||
13141 | SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13142 | PyObject *resultobj = 0; | |
13143 | wxNativeEncodingInfo *arg1 = 0 ; | |
13144 | bool result; | |
13145 | void *argp1 = 0 ; | |
13146 | int res1 = 0 ; | |
13147 | PyObject * obj0 = 0 ; | |
13148 | char * kwnames[] = { | |
13149 | (char *) "info", NULL | |
13150 | }; | |
13151 | ||
13152 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail; | |
13153 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0); | |
13154 | if (!SWIG_IsOK(res1)) { | |
13155 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
13156 | } | |
13157 | if (!argp1) { | |
13158 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
13159 | } | |
13160 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13161 | { | |
13162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13163 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
13164 | wxPyEndAllowThreads(__tstate); | |
13165 | if (PyErr_Occurred()) SWIG_fail; | |
13166 | } | |
13167 | { | |
13168 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13169 | } | |
13170 | return resultobj; | |
13171 | fail: | |
13172 | return NULL; | |
d14a1e28 RD |
13173 | } |
13174 | ||
13175 | ||
0085ce49 RD |
13176 | SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13177 | PyObject *resultobj = 0; | |
13178 | wxFontMapper *result = 0 ; | |
13179 | ||
13180 | if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail; | |
13181 | { | |
13182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13183 | result = (wxFontMapper *)new wxFontMapper(); | |
13184 | wxPyEndAllowThreads(__tstate); | |
13185 | if (PyErr_Occurred()) SWIG_fail; | |
13186 | } | |
13187 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 ); | |
13188 | return resultobj; | |
13189 | fail: | |
13190 | return NULL; | |
d14a1e28 RD |
13191 | } |
13192 | ||
13193 | ||
0085ce49 RD |
13194 | SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13195 | PyObject *resultobj = 0; | |
13196 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13197 | void *argp1 = 0 ; | |
13198 | int res1 = 0 ; | |
13199 | PyObject *swig_obj[1] ; | |
13200 | ||
13201 | if (!args) SWIG_fail; | |
13202 | swig_obj[0] = args; | |
13203 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 ); | |
13204 | if (!SWIG_IsOK(res1)) { | |
13205 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13206 | } | |
13207 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13208 | { | |
13209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13210 | delete arg1; | |
d14a1e28 | 13211 | |
0085ce49 RD |
13212 | wxPyEndAllowThreads(__tstate); |
13213 | if (PyErr_Occurred()) SWIG_fail; | |
13214 | } | |
13215 | resultobj = SWIG_Py_Void(); | |
13216 | return resultobj; | |
13217 | fail: | |
13218 | return NULL; | |
d14a1e28 RD |
13219 | } |
13220 | ||
13221 | ||
0085ce49 RD |
13222 | SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13223 | PyObject *resultobj = 0; | |
13224 | wxFontMapper *result = 0 ; | |
13225 | ||
13226 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail; | |
13227 | { | |
13228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13229 | result = (wxFontMapper *)wxFontMapper::Get(); | |
13230 | wxPyEndAllowThreads(__tstate); | |
13231 | if (PyErr_Occurred()) SWIG_fail; | |
13232 | } | |
13233 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13234 | return resultobj; | |
13235 | fail: | |
13236 | return NULL; | |
13237 | } | |
13238 | ||
13239 | ||
13240 | SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13241 | PyObject *resultobj = 0; | |
13242 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13243 | wxFontMapper *result = 0 ; | |
13244 | void *argp1 = 0 ; | |
13245 | int res1 = 0 ; | |
13246 | PyObject * obj0 = 0 ; | |
13247 | char * kwnames[] = { | |
13248 | (char *) "mapper", NULL | |
13249 | }; | |
13250 | ||
13251 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail; | |
13252 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13253 | if (!SWIG_IsOK(res1)) { | |
13254 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13255 | } | |
13256 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13257 | { | |
13258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13259 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
13260 | wxPyEndAllowThreads(__tstate); | |
13261 | if (PyErr_Occurred()) SWIG_fail; | |
13262 | } | |
13263 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13264 | return resultobj; | |
13265 | fail: | |
13266 | return NULL; | |
13267 | } | |
13268 | ||
13269 | ||
13270 | SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13271 | PyObject *resultobj = 0; | |
13272 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13273 | wxString *arg2 = 0 ; | |
13274 | bool arg3 = (bool) true ; | |
13275 | wxFontEncoding result; | |
13276 | void *argp1 = 0 ; | |
13277 | int res1 = 0 ; | |
13278 | bool temp2 = false ; | |
13279 | bool val3 ; | |
13280 | int ecode3 = 0 ; | |
13281 | PyObject * obj0 = 0 ; | |
13282 | PyObject * obj1 = 0 ; | |
13283 | PyObject * obj2 = 0 ; | |
13284 | char * kwnames[] = { | |
13285 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
13286 | }; | |
13287 | ||
13288 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13289 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13290 | if (!SWIG_IsOK(res1)) { | |
13291 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13292 | } | |
13293 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13294 | { | |
13295 | arg2 = wxString_in_helper(obj1); | |
13296 | if (arg2 == NULL) SWIG_fail; | |
13297 | temp2 = true; | |
13298 | } | |
13299 | if (obj2) { | |
13300 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
13301 | if (!SWIG_IsOK(ecode3)) { | |
13302 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'"); | |
13303 | } | |
13304 | arg3 = static_cast< bool >(val3); | |
13305 | } | |
13306 | { | |
13307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13308 | result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
13309 | wxPyEndAllowThreads(__tstate); | |
13310 | if (PyErr_Occurred()) SWIG_fail; | |
13311 | } | |
13312 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13313 | { | |
13314 | if (temp2) | |
13315 | delete arg2; | |
13316 | } | |
13317 | return resultobj; | |
13318 | fail: | |
13319 | { | |
13320 | if (temp2) | |
13321 | delete arg2; | |
13322 | } | |
13323 | return NULL; | |
e6ffcedd RD |
13324 | } |
13325 | ||
13326 | ||
0085ce49 RD |
13327 | SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13328 | PyObject *resultobj = 0; | |
13329 | size_t result; | |
13330 | ||
13331 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail; | |
13332 | { | |
13333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13334 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
13335 | wxPyEndAllowThreads(__tstate); | |
13336 | if (PyErr_Occurred()) SWIG_fail; | |
13337 | } | |
13338 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
13339 | return resultobj; | |
13340 | fail: | |
13341 | return NULL; | |
13342 | } | |
13343 | ||
13344 | ||
13345 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13346 | PyObject *resultobj = 0; | |
13347 | size_t arg1 ; | |
13348 | wxFontEncoding result; | |
13349 | size_t val1 ; | |
13350 | int ecode1 = 0 ; | |
13351 | PyObject * obj0 = 0 ; | |
13352 | char * kwnames[] = { | |
13353 | (char *) "n", NULL | |
13354 | }; | |
13355 | ||
13356 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail; | |
13357 | ecode1 = SWIG_AsVal_size_t(obj0, &val1); | |
13358 | if (!SWIG_IsOK(ecode1)) { | |
13359 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'"); | |
13360 | } | |
13361 | arg1 = static_cast< size_t >(val1); | |
13362 | { | |
13363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13364 | result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1); | |
13365 | wxPyEndAllowThreads(__tstate); | |
13366 | if (PyErr_Occurred()) SWIG_fail; | |
13367 | } | |
13368 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13369 | return resultobj; | |
13370 | fail: | |
13371 | return NULL; | |
13372 | } | |
13373 | ||
13374 | ||
13375 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13376 | PyObject *resultobj = 0; | |
13377 | wxFontEncoding arg1 ; | |
13378 | wxString result; | |
13379 | int val1 ; | |
13380 | int ecode1 = 0 ; | |
13381 | PyObject * obj0 = 0 ; | |
13382 | char * kwnames[] = { | |
13383 | (char *) "encoding", NULL | |
13384 | }; | |
13385 | ||
13386 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail; | |
13387 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13388 | if (!SWIG_IsOK(ecode1)) { | |
13389 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
13390 | } | |
13391 | arg1 = static_cast< wxFontEncoding >(val1); | |
13392 | { | |
13393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13394 | result = wxFontMapper::GetEncodingName(arg1); | |
13395 | wxPyEndAllowThreads(__tstate); | |
13396 | if (PyErr_Occurred()) SWIG_fail; | |
13397 | } | |
13398 | { | |
13399 | #if wxUSE_UNICODE | |
13400 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13401 | #else | |
13402 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13403 | #endif | |
13404 | } | |
13405 | return resultobj; | |
13406 | fail: | |
13407 | return NULL; | |
d14a1e28 RD |
13408 | } |
13409 | ||
13410 | ||
0085ce49 RD |
13411 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13412 | PyObject *resultobj = 0; | |
13413 | wxFontEncoding arg1 ; | |
13414 | wxString result; | |
13415 | int val1 ; | |
13416 | int ecode1 = 0 ; | |
13417 | PyObject * obj0 = 0 ; | |
13418 | char * kwnames[] = { | |
13419 | (char *) "encoding", NULL | |
13420 | }; | |
13421 | ||
13422 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail; | |
13423 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13424 | if (!SWIG_IsOK(ecode1)) { | |
13425 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
13426 | } | |
13427 | arg1 = static_cast< wxFontEncoding >(val1); | |
13428 | { | |
13429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13430 | result = wxFontMapper::GetEncodingDescription(arg1); | |
13431 | wxPyEndAllowThreads(__tstate); | |
13432 | if (PyErr_Occurred()) SWIG_fail; | |
13433 | } | |
13434 | { | |
13435 | #if wxUSE_UNICODE | |
13436 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13437 | #else | |
13438 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13439 | #endif | |
13440 | } | |
13441 | return resultobj; | |
13442 | fail: | |
13443 | return NULL; | |
d14a1e28 RD |
13444 | } |
13445 | ||
13446 | ||
0085ce49 RD |
13447 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13448 | PyObject *resultobj = 0; | |
13449 | wxString *arg1 = 0 ; | |
13450 | wxFontEncoding result; | |
13451 | bool temp1 = false ; | |
13452 | PyObject * obj0 = 0 ; | |
13453 | char * kwnames[] = { | |
13454 | (char *) "name", NULL | |
13455 | }; | |
13456 | ||
13457 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail; | |
13458 | { | |
13459 | arg1 = wxString_in_helper(obj0); | |
13460 | if (arg1 == NULL) SWIG_fail; | |
13461 | temp1 = true; | |
13462 | } | |
13463 | { | |
13464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13465 | result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); | |
13466 | wxPyEndAllowThreads(__tstate); | |
13467 | if (PyErr_Occurred()) SWIG_fail; | |
13468 | } | |
13469 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13470 | { | |
13471 | if (temp1) | |
13472 | delete arg1; | |
13473 | } | |
13474 | return resultobj; | |
13475 | fail: | |
13476 | { | |
13477 | if (temp1) | |
13478 | delete arg1; | |
13479 | } | |
13480 | return NULL; | |
d14a1e28 RD |
13481 | } |
13482 | ||
13483 | ||
0085ce49 RD |
13484 | SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13485 | PyObject *resultobj = 0; | |
13486 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13487 | wxString *arg2 = 0 ; | |
13488 | void *argp1 = 0 ; | |
13489 | int res1 = 0 ; | |
13490 | bool temp2 = false ; | |
13491 | PyObject * obj0 = 0 ; | |
13492 | PyObject * obj1 = 0 ; | |
13493 | char * kwnames[] = { | |
13494 | (char *) "self",(char *) "prefix", NULL | |
13495 | }; | |
13496 | ||
13497 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
13498 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13499 | if (!SWIG_IsOK(res1)) { | |
13500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13501 | } | |
13502 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13503 | { | |
13504 | arg2 = wxString_in_helper(obj1); | |
13505 | if (arg2 == NULL) SWIG_fail; | |
13506 | temp2 = true; | |
13507 | } | |
13508 | { | |
13509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13510 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
13511 | wxPyEndAllowThreads(__tstate); | |
13512 | if (PyErr_Occurred()) SWIG_fail; | |
13513 | } | |
13514 | resultobj = SWIG_Py_Void(); | |
13515 | { | |
13516 | if (temp2) | |
13517 | delete arg2; | |
13518 | } | |
13519 | return resultobj; | |
13520 | fail: | |
13521 | { | |
13522 | if (temp2) | |
13523 | delete arg2; | |
13524 | } | |
13525 | return NULL; | |
d14a1e28 RD |
13526 | } |
13527 | ||
13528 | ||
0085ce49 RD |
13529 | SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13530 | PyObject *resultobj = 0; | |
13531 | wxString result; | |
13532 | ||
13533 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail; | |
13534 | { | |
13535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13536 | result = wxFontMapper::GetDefaultConfigPath(); | |
13537 | wxPyEndAllowThreads(__tstate); | |
13538 | if (PyErr_Occurred()) SWIG_fail; | |
13539 | } | |
13540 | { | |
13541 | #if wxUSE_UNICODE | |
13542 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13543 | #else | |
13544 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13545 | #endif | |
13546 | } | |
13547 | return resultobj; | |
13548 | fail: | |
13549 | return NULL; | |
13550 | } | |
13551 | ||
13552 | ||
13553 | SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13554 | PyObject *resultobj = 0; | |
13555 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13556 | wxFontEncoding arg2 ; | |
13557 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13558 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13559 | bool arg4 = (bool) true ; | |
13560 | PyObject *result = 0 ; | |
13561 | void *argp1 = 0 ; | |
13562 | int res1 = 0 ; | |
13563 | int val2 ; | |
13564 | int ecode2 = 0 ; | |
13565 | bool temp3 = false ; | |
13566 | bool val4 ; | |
13567 | int ecode4 = 0 ; | |
13568 | PyObject * obj0 = 0 ; | |
13569 | PyObject * obj1 = 0 ; | |
13570 | PyObject * obj2 = 0 ; | |
13571 | PyObject * obj3 = 0 ; | |
13572 | char * kwnames[] = { | |
13573 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
13574 | }; | |
13575 | ||
13576 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
13577 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13578 | if (!SWIG_IsOK(res1)) { | |
13579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13580 | } | |
13581 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13582 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13583 | if (!SWIG_IsOK(ecode2)) { | |
13584 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13585 | } | |
13586 | arg2 = static_cast< wxFontEncoding >(val2); | |
13587 | if (obj2) { | |
093d3ff1 | 13588 | { |
0085ce49 RD |
13589 | arg3 = wxString_in_helper(obj2); |
13590 | if (arg3 == NULL) SWIG_fail; | |
13591 | temp3 = true; | |
093d3ff1 | 13592 | } |
0085ce49 RD |
13593 | } |
13594 | if (obj3) { | |
13595 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
13596 | if (!SWIG_IsOK(ecode4)) { | |
13597 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'"); | |
13598 | } | |
13599 | arg4 = static_cast< bool >(val4); | |
13600 | } | |
13601 | { | |
13602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13603 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4); | |
13604 | wxPyEndAllowThreads(__tstate); | |
13605 | if (PyErr_Occurred()) SWIG_fail; | |
13606 | } | |
13607 | resultobj = result; | |
13608 | { | |
13609 | if (temp3) | |
13610 | delete arg3; | |
13611 | } | |
13612 | return resultobj; | |
13613 | fail: | |
13614 | { | |
13615 | if (temp3) | |
13616 | delete arg3; | |
13617 | } | |
13618 | return NULL; | |
13619 | } | |
13620 | ||
13621 | ||
13622 | SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13623 | PyObject *resultobj = 0; | |
13624 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13625 | wxFontEncoding arg2 ; | |
13626 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13627 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13628 | bool result; | |
13629 | void *argp1 = 0 ; | |
13630 | int res1 = 0 ; | |
13631 | int val2 ; | |
13632 | int ecode2 = 0 ; | |
13633 | bool temp3 = false ; | |
13634 | PyObject * obj0 = 0 ; | |
13635 | PyObject * obj1 = 0 ; | |
13636 | PyObject * obj2 = 0 ; | |
13637 | char * kwnames[] = { | |
13638 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
13639 | }; | |
13640 | ||
13641 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13642 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13643 | if (!SWIG_IsOK(res1)) { | |
13644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13645 | } | |
13646 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13647 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13648 | if (!SWIG_IsOK(ecode2)) { | |
13649 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13650 | } | |
13651 | arg2 = static_cast< wxFontEncoding >(val2); | |
13652 | if (obj2) { | |
d14a1e28 | 13653 | { |
0085ce49 RD |
13654 | arg3 = wxString_in_helper(obj2); |
13655 | if (arg3 == NULL) SWIG_fail; | |
13656 | temp3 = true; | |
d14a1e28 | 13657 | } |
0085ce49 RD |
13658 | } |
13659 | { | |
13660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13661 | result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3); | |
13662 | wxPyEndAllowThreads(__tstate); | |
13663 | if (PyErr_Occurred()) SWIG_fail; | |
13664 | } | |
13665 | { | |
13666 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13667 | } | |
13668 | { | |
13669 | if (temp3) | |
13670 | delete arg3; | |
13671 | } | |
13672 | return resultobj; | |
13673 | fail: | |
13674 | { | |
13675 | if (temp3) | |
13676 | delete arg3; | |
13677 | } | |
13678 | return NULL; | |
13679 | } | |
13680 | ||
13681 | ||
13682 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13683 | PyObject *resultobj = 0; | |
13684 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13685 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13686 | void *argp1 = 0 ; | |
13687 | int res1 = 0 ; | |
13688 | void *argp2 = 0 ; | |
13689 | int res2 = 0 ; | |
13690 | PyObject * obj0 = 0 ; | |
13691 | PyObject * obj1 = 0 ; | |
13692 | char * kwnames[] = { | |
13693 | (char *) "self",(char *) "parent", NULL | |
13694 | }; | |
13695 | ||
13696 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
13697 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13698 | if (!SWIG_IsOK(res1)) { | |
13699 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13700 | } | |
13701 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13702 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13703 | if (!SWIG_IsOK(res2)) { | |
13704 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
13705 | } | |
13706 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
13707 | { | |
13708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13709 | (arg1)->SetDialogParent(arg2); | |
13710 | wxPyEndAllowThreads(__tstate); | |
13711 | if (PyErr_Occurred()) SWIG_fail; | |
13712 | } | |
13713 | resultobj = SWIG_Py_Void(); | |
13714 | return resultobj; | |
13715 | fail: | |
13716 | return NULL; | |
13717 | } | |
13718 | ||
13719 | ||
13720 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13721 | PyObject *resultobj = 0; | |
13722 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13723 | wxString *arg2 = 0 ; | |
13724 | void *argp1 = 0 ; | |
13725 | int res1 = 0 ; | |
13726 | bool temp2 = false ; | |
13727 | PyObject * obj0 = 0 ; | |
13728 | PyObject * obj1 = 0 ; | |
13729 | char * kwnames[] = { | |
13730 | (char *) "self",(char *) "title", NULL | |
13731 | }; | |
13732 | ||
13733 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail; | |
13734 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13735 | if (!SWIG_IsOK(res1)) { | |
13736 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13737 | } | |
13738 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13739 | { | |
13740 | arg2 = wxString_in_helper(obj1); | |
13741 | if (arg2 == NULL) SWIG_fail; | |
13742 | temp2 = true; | |
13743 | } | |
13744 | { | |
13745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13746 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
13747 | wxPyEndAllowThreads(__tstate); | |
13748 | if (PyErr_Occurred()) SWIG_fail; | |
13749 | } | |
13750 | resultobj = SWIG_Py_Void(); | |
13751 | { | |
13752 | if (temp2) | |
13753 | delete arg2; | |
13754 | } | |
13755 | return resultobj; | |
13756 | fail: | |
13757 | { | |
13758 | if (temp2) | |
13759 | delete arg2; | |
13760 | } | |
13761 | return NULL; | |
13762 | } | |
13763 | ||
13764 | ||
13765 | SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13766 | PyObject *obj; | |
13767 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13768 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj)); | |
13769 | return SWIG_Py_Void(); | |
13770 | } | |
13771 | ||
13772 | SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13773 | return SWIG_Python_InitShadowInstance(args); | |
13774 | } | |
13775 | ||
13776 | SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13777 | PyObject *resultobj = 0; | |
13778 | int arg1 ; | |
13779 | int arg2 ; | |
13780 | int arg3 ; | |
13781 | int arg4 ; | |
13782 | bool arg5 = (bool) false ; | |
13783 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
13784 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
13785 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
13786 | wxFont *result = 0 ; | |
13787 | int val1 ; | |
13788 | int ecode1 = 0 ; | |
13789 | int val2 ; | |
13790 | int ecode2 = 0 ; | |
13791 | int val3 ; | |
13792 | int ecode3 = 0 ; | |
13793 | int val4 ; | |
13794 | int ecode4 = 0 ; | |
13795 | bool val5 ; | |
13796 | int ecode5 = 0 ; | |
13797 | bool temp6 = false ; | |
13798 | int val7 ; | |
13799 | int ecode7 = 0 ; | |
13800 | PyObject * obj0 = 0 ; | |
13801 | PyObject * obj1 = 0 ; | |
13802 | PyObject * obj2 = 0 ; | |
13803 | PyObject * obj3 = 0 ; | |
13804 | PyObject * obj4 = 0 ; | |
13805 | PyObject * obj5 = 0 ; | |
13806 | PyObject * obj6 = 0 ; | |
13807 | char * kwnames[] = { | |
13808 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
13809 | }; | |
13810 | ||
13811 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
13812 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13813 | if (!SWIG_IsOK(ecode1)) { | |
13814 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'"); | |
13815 | } | |
13816 | arg1 = static_cast< int >(val1); | |
13817 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13818 | if (!SWIG_IsOK(ecode2)) { | |
13819 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'"); | |
13820 | } | |
13821 | arg2 = static_cast< int >(val2); | |
13822 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13823 | if (!SWIG_IsOK(ecode3)) { | |
13824 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'"); | |
13825 | } | |
13826 | arg3 = static_cast< int >(val3); | |
13827 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
13828 | if (!SWIG_IsOK(ecode4)) { | |
13829 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'"); | |
13830 | } | |
13831 | arg4 = static_cast< int >(val4); | |
13832 | if (obj4) { | |
13833 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
13834 | if (!SWIG_IsOK(ecode5)) { | |
13835 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'"); | |
13836 | } | |
13837 | arg5 = static_cast< bool >(val5); | |
13838 | } | |
13839 | if (obj5) { | |
093d3ff1 | 13840 | { |
0085ce49 RD |
13841 | arg6 = wxString_in_helper(obj5); |
13842 | if (arg6 == NULL) SWIG_fail; | |
13843 | temp6 = true; | |
093d3ff1 | 13844 | } |
0085ce49 RD |
13845 | } |
13846 | if (obj6) { | |
13847 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
13848 | if (!SWIG_IsOK(ecode7)) { | |
13849 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
13850 | } | |
13851 | arg7 = static_cast< wxFontEncoding >(val7); | |
13852 | } | |
13853 | { | |
13854 | if (!wxPyCheckForApp()) SWIG_fail; | |
13855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13856 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
13857 | wxPyEndAllowThreads(__tstate); | |
13858 | if (PyErr_Occurred()) SWIG_fail; | |
13859 | } | |
13860 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 ); | |
13861 | { | |
13862 | if (temp6) | |
13863 | delete arg6; | |
13864 | } | |
13865 | return resultobj; | |
13866 | fail: | |
13867 | { | |
13868 | if (temp6) | |
13869 | delete arg6; | |
13870 | } | |
13871 | return NULL; | |
d14a1e28 RD |
13872 | } |
13873 | ||
13874 | ||
0085ce49 RD |
13875 | SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13876 | PyObject *resultobj = 0; | |
13877 | wxFont *arg1 = (wxFont *) 0 ; | |
13878 | void *argp1 = 0 ; | |
13879 | int res1 = 0 ; | |
13880 | PyObject *swig_obj[1] ; | |
13881 | ||
13882 | if (!args) SWIG_fail; | |
13883 | swig_obj[0] = args; | |
13884 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 ); | |
13885 | if (!SWIG_IsOK(res1)) { | |
13886 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'"); | |
13887 | } | |
13888 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13889 | { | |
13890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13891 | delete arg1; | |
d14a1e28 | 13892 | |
0085ce49 RD |
13893 | wxPyEndAllowThreads(__tstate); |
13894 | if (PyErr_Occurred()) SWIG_fail; | |
13895 | } | |
13896 | resultobj = SWIG_Py_Void(); | |
13897 | return resultobj; | |
13898 | fail: | |
13899 | return NULL; | |
13900 | } | |
13901 | ||
13902 | ||
13903 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13904 | PyObject *resultobj = 0; | |
13905 | wxNativeFontInfo *arg1 = 0 ; | |
13906 | wxFont *result = 0 ; | |
13907 | void *argp1 = 0 ; | |
13908 | int res1 = 0 ; | |
13909 | PyObject * obj0 = 0 ; | |
13910 | char * kwnames[] = { | |
13911 | (char *) "info", NULL | |
13912 | }; | |
13913 | ||
13914 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail; | |
13915 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
13916 | if (!SWIG_IsOK(res1)) { | |
13917 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
13918 | } | |
13919 | if (!argp1) { | |
13920 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
13921 | } | |
13922 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13923 | { | |
13924 | if (!wxPyCheckForApp()) SWIG_fail; | |
13925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13926 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
13927 | wxPyEndAllowThreads(__tstate); | |
13928 | if (PyErr_Occurred()) SWIG_fail; | |
13929 | } | |
13930 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
13931 | return resultobj; | |
13932 | fail: | |
13933 | return NULL; | |
d14a1e28 RD |
13934 | } |
13935 | ||
13936 | ||
0085ce49 RD |
13937 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13938 | PyObject *resultobj = 0; | |
13939 | wxString *arg1 = 0 ; | |
13940 | wxFont *result = 0 ; | |
13941 | bool temp1 = false ; | |
13942 | PyObject * obj0 = 0 ; | |
13943 | char * kwnames[] = { | |
13944 | (char *) "info", NULL | |
13945 | }; | |
13946 | ||
13947 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail; | |
13948 | { | |
13949 | arg1 = wxString_in_helper(obj0); | |
13950 | if (arg1 == NULL) SWIG_fail; | |
13951 | temp1 = true; | |
13952 | } | |
13953 | { | |
13954 | if (!wxPyCheckForApp()) SWIG_fail; | |
13955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13956 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
13957 | wxPyEndAllowThreads(__tstate); | |
13958 | if (PyErr_Occurred()) SWIG_fail; | |
13959 | } | |
13960 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
13961 | { | |
13962 | if (temp1) | |
13963 | delete arg1; | |
13964 | } | |
13965 | return resultobj; | |
13966 | fail: | |
13967 | { | |
13968 | if (temp1) | |
13969 | delete arg1; | |
13970 | } | |
13971 | return NULL; | |
13972 | } | |
13973 | ||
13974 | ||
13975 | SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13976 | PyObject *resultobj = 0; | |
13977 | int arg1 ; | |
13978 | wxFontFamily arg2 ; | |
13979 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
13980 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13981 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
13982 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
13983 | wxFont *result = 0 ; | |
13984 | int val1 ; | |
13985 | int ecode1 = 0 ; | |
13986 | int val2 ; | |
13987 | int ecode2 = 0 ; | |
13988 | int val3 ; | |
13989 | int ecode3 = 0 ; | |
13990 | bool temp4 = false ; | |
13991 | int val5 ; | |
13992 | int ecode5 = 0 ; | |
13993 | PyObject * obj0 = 0 ; | |
13994 | PyObject * obj1 = 0 ; | |
13995 | PyObject * obj2 = 0 ; | |
13996 | PyObject * obj3 = 0 ; | |
13997 | PyObject * obj4 = 0 ; | |
13998 | char * kwnames[] = { | |
13999 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
14000 | }; | |
14001 | ||
14002 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
14003 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14004 | if (!SWIG_IsOK(ecode1)) { | |
14005 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'"); | |
14006 | } | |
14007 | arg1 = static_cast< int >(val1); | |
14008 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14009 | if (!SWIG_IsOK(ecode2)) { | |
14010 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
14011 | } | |
14012 | arg2 = static_cast< wxFontFamily >(val2); | |
14013 | if (obj2) { | |
14014 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14015 | if (!SWIG_IsOK(ecode3)) { | |
14016 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'"); | |
14017 | } | |
14018 | arg3 = static_cast< int >(val3); | |
14019 | } | |
14020 | if (obj3) { | |
093d3ff1 | 14021 | { |
0085ce49 RD |
14022 | arg4 = wxString_in_helper(obj3); |
14023 | if (arg4 == NULL) SWIG_fail; | |
14024 | temp4 = true; | |
093d3ff1 | 14025 | } |
0085ce49 RD |
14026 | } |
14027 | if (obj4) { | |
14028 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
14029 | if (!SWIG_IsOK(ecode5)) { | |
14030 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
14031 | } | |
14032 | arg5 = static_cast< wxFontEncoding >(val5); | |
14033 | } | |
14034 | { | |
14035 | if (!wxPyCheckForApp()) SWIG_fail; | |
14036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14037 | result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
14038 | wxPyEndAllowThreads(__tstate); | |
14039 | if (PyErr_Occurred()) SWIG_fail; | |
14040 | } | |
14041 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14042 | { | |
14043 | if (temp4) | |
14044 | delete arg4; | |
14045 | } | |
14046 | return resultobj; | |
14047 | fail: | |
14048 | { | |
14049 | if (temp4) | |
14050 | delete arg4; | |
14051 | } | |
14052 | return NULL; | |
14053 | } | |
14054 | ||
14055 | ||
14056 | SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14057 | PyObject *resultobj = 0; | |
14058 | wxSize *arg1 = 0 ; | |
14059 | int arg2 ; | |
14060 | int arg3 ; | |
14061 | int arg4 ; | |
14062 | bool arg5 = (bool) false ; | |
14063 | wxString const &arg6_defvalue = wxEmptyString ; | |
14064 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14065 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14066 | wxFont *result = 0 ; | |
14067 | wxSize temp1 ; | |
14068 | int val2 ; | |
14069 | int ecode2 = 0 ; | |
14070 | int val3 ; | |
14071 | int ecode3 = 0 ; | |
14072 | int val4 ; | |
14073 | int ecode4 = 0 ; | |
14074 | bool val5 ; | |
14075 | int ecode5 = 0 ; | |
14076 | bool temp6 = false ; | |
14077 | int val7 ; | |
14078 | int ecode7 = 0 ; | |
14079 | PyObject * obj0 = 0 ; | |
14080 | PyObject * obj1 = 0 ; | |
14081 | PyObject * obj2 = 0 ; | |
14082 | PyObject * obj3 = 0 ; | |
14083 | PyObject * obj4 = 0 ; | |
14084 | PyObject * obj5 = 0 ; | |
14085 | PyObject * obj6 = 0 ; | |
14086 | char * kwnames[] = { | |
14087 | (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL | |
14088 | }; | |
14089 | ||
14090 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14091 | { | |
14092 | arg1 = &temp1; | |
14093 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
14094 | } | |
14095 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14096 | if (!SWIG_IsOK(ecode2)) { | |
14097 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'"); | |
14098 | } | |
14099 | arg2 = static_cast< int >(val2); | |
14100 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14101 | if (!SWIG_IsOK(ecode3)) { | |
14102 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
14103 | } | |
14104 | arg3 = static_cast< int >(val3); | |
14105 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
14106 | if (!SWIG_IsOK(ecode4)) { | |
14107 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'"); | |
14108 | } | |
14109 | arg4 = static_cast< int >(val4); | |
14110 | if (obj4) { | |
14111 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
14112 | if (!SWIG_IsOK(ecode5)) { | |
14113 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'"); | |
14114 | } | |
14115 | arg5 = static_cast< bool >(val5); | |
14116 | } | |
14117 | if (obj5) { | |
d14a1e28 | 14118 | { |
0085ce49 RD |
14119 | arg6 = wxString_in_helper(obj5); |
14120 | if (arg6 == NULL) SWIG_fail; | |
14121 | temp6 = true; | |
d14a1e28 | 14122 | } |
0085ce49 RD |
14123 | } |
14124 | if (obj6) { | |
14125 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
14126 | if (!SWIG_IsOK(ecode7)) { | |
14127 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
14128 | } | |
14129 | arg7 = static_cast< wxFontEncoding >(val7); | |
14130 | } | |
14131 | { | |
14132 | if (!wxPyCheckForApp()) SWIG_fail; | |
14133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14134 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
14135 | wxPyEndAllowThreads(__tstate); | |
14136 | if (PyErr_Occurred()) SWIG_fail; | |
14137 | } | |
14138 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14139 | { | |
14140 | if (temp6) | |
14141 | delete arg6; | |
14142 | } | |
14143 | return resultobj; | |
14144 | fail: | |
14145 | { | |
14146 | if (temp6) | |
14147 | delete arg6; | |
14148 | } | |
14149 | return NULL; | |
14150 | } | |
14151 | ||
14152 | ||
14153 | SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14154 | PyObject *resultobj = 0; | |
14155 | wxSize *arg1 = 0 ; | |
14156 | wxFontFamily arg2 ; | |
14157 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
14158 | wxString const &arg4_defvalue = wxEmptyString ; | |
14159 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14160 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14161 | wxFont *result = 0 ; | |
14162 | wxSize temp1 ; | |
14163 | int val2 ; | |
14164 | int ecode2 = 0 ; | |
14165 | int val3 ; | |
14166 | int ecode3 = 0 ; | |
14167 | bool temp4 = false ; | |
14168 | int val5 ; | |
14169 | int ecode5 = 0 ; | |
14170 | PyObject * obj0 = 0 ; | |
14171 | PyObject * obj1 = 0 ; | |
14172 | PyObject * obj2 = 0 ; | |
14173 | PyObject * obj3 = 0 ; | |
14174 | PyObject * obj4 = 0 ; | |
14175 | char * kwnames[] = { | |
14176 | (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
14177 | }; | |
14178 | ||
14179 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
14180 | { | |
14181 | arg1 = &temp1; | |
14182 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
14183 | } | |
14184 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14185 | if (!SWIG_IsOK(ecode2)) { | |
14186 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
14187 | } | |
14188 | arg2 = static_cast< wxFontFamily >(val2); | |
14189 | if (obj2) { | |
14190 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14191 | if (!SWIG_IsOK(ecode3)) { | |
14192 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
14193 | } | |
14194 | arg3 = static_cast< int >(val3); | |
14195 | } | |
14196 | if (obj3) { | |
093d3ff1 | 14197 | { |
0085ce49 RD |
14198 | arg4 = wxString_in_helper(obj3); |
14199 | if (arg4 == NULL) SWIG_fail; | |
14200 | temp4 = true; | |
093d3ff1 | 14201 | } |
0085ce49 RD |
14202 | } |
14203 | if (obj4) { | |
14204 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
14205 | if (!SWIG_IsOK(ecode5)) { | |
14206 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
14207 | } | |
14208 | arg5 = static_cast< wxFontEncoding >(val5); | |
14209 | } | |
14210 | { | |
14211 | if (!wxPyCheckForApp()) SWIG_fail; | |
14212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14213 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
14214 | wxPyEndAllowThreads(__tstate); | |
14215 | if (PyErr_Occurred()) SWIG_fail; | |
14216 | } | |
14217 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14218 | { | |
14219 | if (temp4) | |
14220 | delete arg4; | |
14221 | } | |
14222 | return resultobj; | |
14223 | fail: | |
14224 | { | |
14225 | if (temp4) | |
14226 | delete arg4; | |
14227 | } | |
14228 | return NULL; | |
d14a1e28 RD |
14229 | } |
14230 | ||
14231 | ||
b39fe951 | 14232 | SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
14233 | PyObject *resultobj = 0; |
14234 | wxFont *arg1 = (wxFont *) 0 ; | |
14235 | bool result; | |
14236 | void *argp1 = 0 ; | |
14237 | int res1 = 0 ; | |
14238 | PyObject *swig_obj[1] ; | |
14239 | ||
14240 | if (!args) SWIG_fail; | |
14241 | swig_obj[0] = args; | |
14242 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14243 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 14244 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'"); |
0085ce49 RD |
14245 | } |
14246 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14247 | { | |
14248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 14249 | result = (bool)((wxFont const *)arg1)->IsOk(); |
0085ce49 RD |
14250 | wxPyEndAllowThreads(__tstate); |
14251 | if (PyErr_Occurred()) SWIG_fail; | |
14252 | } | |
14253 | { | |
14254 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14255 | } | |
14256 | return resultobj; | |
14257 | fail: | |
14258 | return NULL; | |
14259 | } | |
14260 | ||
14261 | ||
14262 | SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14263 | PyObject *resultobj = 0; | |
14264 | wxFont *arg1 = (wxFont *) 0 ; | |
14265 | wxFont *arg2 = (wxFont *) 0 ; | |
14266 | bool result; | |
14267 | void *argp1 = 0 ; | |
14268 | int res1 = 0 ; | |
14269 | void *argp2 = 0 ; | |
14270 | int res2 = 0 ; | |
14271 | PyObject * obj0 = 0 ; | |
14272 | PyObject * obj1 = 0 ; | |
14273 | char * kwnames[] = { | |
14274 | (char *) "self",(char *) "other", NULL | |
14275 | }; | |
14276 | ||
14277 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
14278 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14279 | if (!SWIG_IsOK(res1)) { | |
14280 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14281 | } | |
14282 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14283 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14284 | if (!SWIG_IsOK(res2)) { | |
14285 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
14286 | } | |
14287 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
14288 | { | |
14289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14290 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); | |
14291 | wxPyEndAllowThreads(__tstate); | |
14292 | if (PyErr_Occurred()) SWIG_fail; | |
14293 | } | |
14294 | { | |
14295 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14296 | } | |
14297 | return resultobj; | |
14298 | fail: | |
14299 | return NULL; | |
14300 | } | |
14301 | ||
14302 | ||
14303 | SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14304 | PyObject *resultobj = 0; | |
14305 | wxFont *arg1 = (wxFont *) 0 ; | |
14306 | wxFont *arg2 = (wxFont *) 0 ; | |
14307 | bool result; | |
14308 | void *argp1 = 0 ; | |
14309 | int res1 = 0 ; | |
14310 | void *argp2 = 0 ; | |
14311 | int res2 = 0 ; | |
14312 | PyObject * obj0 = 0 ; | |
14313 | PyObject * obj1 = 0 ; | |
14314 | char * kwnames[] = { | |
14315 | (char *) "self",(char *) "other", NULL | |
14316 | }; | |
14317 | ||
14318 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
14319 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14320 | if (!SWIG_IsOK(res1)) { | |
14321 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14322 | } | |
14323 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14324 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14325 | if (!SWIG_IsOK(res2)) { | |
14326 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
14327 | } | |
14328 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
14329 | { | |
14330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14331 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); | |
14332 | wxPyEndAllowThreads(__tstate); | |
14333 | if (PyErr_Occurred()) SWIG_fail; | |
14334 | } | |
14335 | { | |
14336 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14337 | } | |
14338 | return resultobj; | |
14339 | fail: | |
14340 | return NULL; | |
d14a1e28 RD |
14341 | } |
14342 | ||
14343 | ||
0085ce49 RD |
14344 | SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14345 | PyObject *resultobj = 0; | |
14346 | wxFont *arg1 = (wxFont *) 0 ; | |
14347 | int result; | |
14348 | void *argp1 = 0 ; | |
14349 | int res1 = 0 ; | |
14350 | PyObject *swig_obj[1] ; | |
14351 | ||
14352 | if (!args) SWIG_fail; | |
14353 | swig_obj[0] = args; | |
14354 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14355 | if (!SWIG_IsOK(res1)) { | |
14356 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14357 | } | |
14358 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14359 | { | |
14360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14361 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
14362 | wxPyEndAllowThreads(__tstate); | |
14363 | if (PyErr_Occurred()) SWIG_fail; | |
14364 | } | |
14365 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14366 | return resultobj; | |
14367 | fail: | |
14368 | return NULL; | |
d14a1e28 RD |
14369 | } |
14370 | ||
14371 | ||
0085ce49 RD |
14372 | SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14373 | PyObject *resultobj = 0; | |
14374 | wxFont *arg1 = (wxFont *) 0 ; | |
14375 | wxSize result; | |
14376 | void *argp1 = 0 ; | |
14377 | int res1 = 0 ; | |
14378 | PyObject *swig_obj[1] ; | |
14379 | ||
14380 | if (!args) SWIG_fail; | |
14381 | swig_obj[0] = args; | |
14382 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14383 | if (!SWIG_IsOK(res1)) { | |
14384 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14385 | } | |
14386 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14387 | { | |
14388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14389 | result = ((wxFont const *)arg1)->GetPixelSize(); | |
14390 | wxPyEndAllowThreads(__tstate); | |
14391 | if (PyErr_Occurred()) SWIG_fail; | |
14392 | } | |
14393 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
14394 | return resultobj; | |
14395 | fail: | |
14396 | return NULL; | |
d14a1e28 RD |
14397 | } |
14398 | ||
14399 | ||
0085ce49 RD |
14400 | SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14401 | PyObject *resultobj = 0; | |
14402 | wxFont *arg1 = (wxFont *) 0 ; | |
14403 | bool result; | |
14404 | void *argp1 = 0 ; | |
14405 | int res1 = 0 ; | |
14406 | PyObject *swig_obj[1] ; | |
14407 | ||
14408 | if (!args) SWIG_fail; | |
14409 | swig_obj[0] = args; | |
14410 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14411 | if (!SWIG_IsOK(res1)) { | |
14412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14413 | } | |
14414 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14415 | { | |
14416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14417 | result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels(); | |
14418 | wxPyEndAllowThreads(__tstate); | |
14419 | if (PyErr_Occurred()) SWIG_fail; | |
14420 | } | |
14421 | { | |
14422 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14423 | } | |
14424 | return resultobj; | |
14425 | fail: | |
14426 | return NULL; | |
d14a1e28 RD |
14427 | } |
14428 | ||
14429 | ||
0085ce49 RD |
14430 | SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14431 | PyObject *resultobj = 0; | |
14432 | wxFont *arg1 = (wxFont *) 0 ; | |
14433 | int result; | |
14434 | void *argp1 = 0 ; | |
14435 | int res1 = 0 ; | |
14436 | PyObject *swig_obj[1] ; | |
14437 | ||
14438 | if (!args) SWIG_fail; | |
14439 | swig_obj[0] = args; | |
14440 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14441 | if (!SWIG_IsOK(res1)) { | |
14442 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14443 | } | |
14444 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14445 | { | |
14446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14447 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
14448 | wxPyEndAllowThreads(__tstate); | |
14449 | if (PyErr_Occurred()) SWIG_fail; | |
14450 | } | |
14451 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14452 | return resultobj; | |
14453 | fail: | |
14454 | return NULL; | |
d14a1e28 RD |
14455 | } |
14456 | ||
14457 | ||
0085ce49 RD |
14458 | SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14459 | PyObject *resultobj = 0; | |
14460 | wxFont *arg1 = (wxFont *) 0 ; | |
14461 | int result; | |
14462 | void *argp1 = 0 ; | |
14463 | int res1 = 0 ; | |
14464 | PyObject *swig_obj[1] ; | |
14465 | ||
14466 | if (!args) SWIG_fail; | |
14467 | swig_obj[0] = args; | |
14468 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14469 | if (!SWIG_IsOK(res1)) { | |
14470 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14471 | } | |
14472 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14473 | { | |
14474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14475 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
14476 | wxPyEndAllowThreads(__tstate); | |
14477 | if (PyErr_Occurred()) SWIG_fail; | |
14478 | } | |
14479 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14480 | return resultobj; | |
14481 | fail: | |
14482 | return NULL; | |
d14a1e28 RD |
14483 | } |
14484 | ||
14485 | ||
0085ce49 RD |
14486 | SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14487 | PyObject *resultobj = 0; | |
14488 | wxFont *arg1 = (wxFont *) 0 ; | |
14489 | int result; | |
14490 | void *argp1 = 0 ; | |
14491 | int res1 = 0 ; | |
14492 | PyObject *swig_obj[1] ; | |
14493 | ||
14494 | if (!args) SWIG_fail; | |
14495 | swig_obj[0] = args; | |
14496 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14497 | if (!SWIG_IsOK(res1)) { | |
14498 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14499 | } | |
14500 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14501 | { | |
14502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14503 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
14504 | wxPyEndAllowThreads(__tstate); | |
14505 | if (PyErr_Occurred()) SWIG_fail; | |
14506 | } | |
14507 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14508 | return resultobj; | |
14509 | fail: | |
14510 | return NULL; | |
d14a1e28 RD |
14511 | } |
14512 | ||
14513 | ||
0085ce49 RD |
14514 | SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14515 | PyObject *resultobj = 0; | |
14516 | wxFont *arg1 = (wxFont *) 0 ; | |
14517 | bool result; | |
14518 | void *argp1 = 0 ; | |
14519 | int res1 = 0 ; | |
14520 | PyObject *swig_obj[1] ; | |
14521 | ||
14522 | if (!args) SWIG_fail; | |
14523 | swig_obj[0] = args; | |
14524 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14525 | if (!SWIG_IsOK(res1)) { | |
14526 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14527 | } | |
14528 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14529 | { | |
14530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14531 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
14532 | wxPyEndAllowThreads(__tstate); | |
14533 | if (PyErr_Occurred()) SWIG_fail; | |
14534 | } | |
14535 | { | |
14536 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14537 | } | |
14538 | return resultobj; | |
14539 | fail: | |
14540 | return NULL; | |
d14a1e28 RD |
14541 | } |
14542 | ||
14543 | ||
0085ce49 RD |
14544 | SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14545 | PyObject *resultobj = 0; | |
14546 | wxFont *arg1 = (wxFont *) 0 ; | |
14547 | wxString result; | |
14548 | void *argp1 = 0 ; | |
14549 | int res1 = 0 ; | |
14550 | PyObject *swig_obj[1] ; | |
14551 | ||
14552 | if (!args) SWIG_fail; | |
14553 | swig_obj[0] = args; | |
14554 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14555 | if (!SWIG_IsOK(res1)) { | |
14556 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14557 | } | |
14558 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14559 | { | |
14560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14561 | result = ((wxFont const *)arg1)->GetFaceName(); | |
14562 | wxPyEndAllowThreads(__tstate); | |
14563 | if (PyErr_Occurred()) SWIG_fail; | |
14564 | } | |
14565 | { | |
14566 | #if wxUSE_UNICODE | |
14567 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14568 | #else | |
14569 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14570 | #endif | |
14571 | } | |
14572 | return resultobj; | |
14573 | fail: | |
14574 | return NULL; | |
d14a1e28 RD |
14575 | } |
14576 | ||
14577 | ||
0085ce49 RD |
14578 | SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14579 | PyObject *resultobj = 0; | |
14580 | wxFont *arg1 = (wxFont *) 0 ; | |
14581 | wxFontEncoding result; | |
14582 | void *argp1 = 0 ; | |
14583 | int res1 = 0 ; | |
14584 | PyObject *swig_obj[1] ; | |
14585 | ||
14586 | if (!args) SWIG_fail; | |
14587 | swig_obj[0] = args; | |
14588 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14589 | if (!SWIG_IsOK(res1)) { | |
14590 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14591 | } | |
14592 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14593 | { | |
14594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14595 | result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding(); | |
14596 | wxPyEndAllowThreads(__tstate); | |
14597 | if (PyErr_Occurred()) SWIG_fail; | |
14598 | } | |
14599 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14600 | return resultobj; | |
14601 | fail: | |
14602 | return NULL; | |
d14a1e28 RD |
14603 | } |
14604 | ||
14605 | ||
0085ce49 RD |
14606 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14607 | PyObject *resultobj = 0; | |
14608 | wxFont *arg1 = (wxFont *) 0 ; | |
14609 | wxNativeFontInfo *result = 0 ; | |
14610 | void *argp1 = 0 ; | |
14611 | int res1 = 0 ; | |
14612 | PyObject *swig_obj[1] ; | |
14613 | ||
14614 | if (!args) SWIG_fail; | |
14615 | swig_obj[0] = args; | |
14616 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14617 | if (!SWIG_IsOK(res1)) { | |
14618 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14619 | } | |
14620 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14621 | { | |
14622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14623 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
14624 | wxPyEndAllowThreads(__tstate); | |
14625 | if (PyErr_Occurred()) SWIG_fail; | |
14626 | } | |
14627 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
14628 | return resultobj; | |
14629 | fail: | |
14630 | return NULL; | |
d14a1e28 RD |
14631 | } |
14632 | ||
14633 | ||
0085ce49 RD |
14634 | SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14635 | PyObject *resultobj = 0; | |
14636 | wxFont *arg1 = (wxFont *) 0 ; | |
14637 | bool result; | |
14638 | void *argp1 = 0 ; | |
14639 | int res1 = 0 ; | |
14640 | PyObject *swig_obj[1] ; | |
14641 | ||
14642 | if (!args) SWIG_fail; | |
14643 | swig_obj[0] = args; | |
14644 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14645 | if (!SWIG_IsOK(res1)) { | |
14646 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14647 | } | |
14648 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14649 | { | |
14650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14651 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
14652 | wxPyEndAllowThreads(__tstate); | |
14653 | if (PyErr_Occurred()) SWIG_fail; | |
14654 | } | |
14655 | { | |
14656 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14657 | } | |
14658 | return resultobj; | |
14659 | fail: | |
14660 | return NULL; | |
d14a1e28 RD |
14661 | } |
14662 | ||
14663 | ||
0085ce49 RD |
14664 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14665 | PyObject *resultobj = 0; | |
14666 | wxFont *arg1 = (wxFont *) 0 ; | |
14667 | wxString result; | |
14668 | void *argp1 = 0 ; | |
14669 | int res1 = 0 ; | |
14670 | PyObject *swig_obj[1] ; | |
14671 | ||
14672 | if (!args) SWIG_fail; | |
14673 | swig_obj[0] = args; | |
14674 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14675 | if (!SWIG_IsOK(res1)) { | |
14676 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14677 | } | |
14678 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14679 | { | |
14680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14681 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
14682 | wxPyEndAllowThreads(__tstate); | |
14683 | if (PyErr_Occurred()) SWIG_fail; | |
14684 | } | |
14685 | { | |
14686 | #if wxUSE_UNICODE | |
14687 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14688 | #else | |
14689 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14690 | #endif | |
14691 | } | |
14692 | return resultobj; | |
14693 | fail: | |
14694 | return NULL; | |
d14a1e28 RD |
14695 | } |
14696 | ||
14697 | ||
0085ce49 RD |
14698 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14699 | PyObject *resultobj = 0; | |
14700 | wxFont *arg1 = (wxFont *) 0 ; | |
14701 | wxString result; | |
14702 | void *argp1 = 0 ; | |
14703 | int res1 = 0 ; | |
14704 | PyObject *swig_obj[1] ; | |
14705 | ||
14706 | if (!args) SWIG_fail; | |
14707 | swig_obj[0] = args; | |
14708 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14709 | if (!SWIG_IsOK(res1)) { | |
14710 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14711 | } | |
14712 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14713 | { | |
14714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14715 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
14716 | wxPyEndAllowThreads(__tstate); | |
14717 | if (PyErr_Occurred()) SWIG_fail; | |
14718 | } | |
14719 | { | |
14720 | #if wxUSE_UNICODE | |
14721 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14722 | #else | |
14723 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14724 | #endif | |
14725 | } | |
14726 | return resultobj; | |
14727 | fail: | |
14728 | return NULL; | |
14729 | } | |
14730 | ||
14731 | ||
14732 | SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14733 | PyObject *resultobj = 0; | |
14734 | wxFont *arg1 = (wxFont *) 0 ; | |
14735 | int arg2 ; | |
14736 | void *argp1 = 0 ; | |
14737 | int res1 = 0 ; | |
14738 | int val2 ; | |
14739 | int ecode2 = 0 ; | |
14740 | PyObject * obj0 = 0 ; | |
14741 | PyObject * obj1 = 0 ; | |
14742 | char * kwnames[] = { | |
14743 | (char *) "self",(char *) "pointSize", NULL | |
14744 | }; | |
14745 | ||
14746 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
14747 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14748 | if (!SWIG_IsOK(res1)) { | |
14749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14750 | } | |
14751 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14752 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14753 | if (!SWIG_IsOK(ecode2)) { | |
14754 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
14755 | } | |
14756 | arg2 = static_cast< int >(val2); | |
14757 | { | |
14758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14759 | (arg1)->SetPointSize(arg2); | |
14760 | wxPyEndAllowThreads(__tstate); | |
14761 | if (PyErr_Occurred()) SWIG_fail; | |
14762 | } | |
14763 | resultobj = SWIG_Py_Void(); | |
14764 | return resultobj; | |
14765 | fail: | |
14766 | return NULL; | |
14767 | } | |
14768 | ||
14769 | ||
14770 | SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14771 | PyObject *resultobj = 0; | |
14772 | wxFont *arg1 = (wxFont *) 0 ; | |
14773 | wxSize *arg2 = 0 ; | |
14774 | void *argp1 = 0 ; | |
14775 | int res1 = 0 ; | |
14776 | wxSize temp2 ; | |
14777 | PyObject * obj0 = 0 ; | |
14778 | PyObject * obj1 = 0 ; | |
14779 | char * kwnames[] = { | |
14780 | (char *) "self",(char *) "pixelSize", NULL | |
14781 | }; | |
14782 | ||
14783 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
14784 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14785 | if (!SWIG_IsOK(res1)) { | |
14786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14787 | } | |
14788 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14789 | { | |
14790 | arg2 = &temp2; | |
14791 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14792 | } | |
14793 | { | |
14794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14795 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
14796 | wxPyEndAllowThreads(__tstate); | |
14797 | if (PyErr_Occurred()) SWIG_fail; | |
14798 | } | |
14799 | resultobj = SWIG_Py_Void(); | |
14800 | return resultobj; | |
14801 | fail: | |
14802 | return NULL; | |
14803 | } | |
14804 | ||
14805 | ||
14806 | SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14807 | PyObject *resultobj = 0; | |
14808 | wxFont *arg1 = (wxFont *) 0 ; | |
14809 | int arg2 ; | |
14810 | void *argp1 = 0 ; | |
14811 | int res1 = 0 ; | |
14812 | int val2 ; | |
14813 | int ecode2 = 0 ; | |
14814 | PyObject * obj0 = 0 ; | |
14815 | PyObject * obj1 = 0 ; | |
14816 | char * kwnames[] = { | |
14817 | (char *) "self",(char *) "family", NULL | |
14818 | }; | |
14819 | ||
14820 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
14821 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14822 | if (!SWIG_IsOK(res1)) { | |
14823 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14824 | } | |
14825 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14826 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14827 | if (!SWIG_IsOK(ecode2)) { | |
14828 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'"); | |
14829 | } | |
14830 | arg2 = static_cast< int >(val2); | |
14831 | { | |
14832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14833 | (arg1)->SetFamily(arg2); | |
14834 | wxPyEndAllowThreads(__tstate); | |
14835 | if (PyErr_Occurred()) SWIG_fail; | |
14836 | } | |
14837 | resultobj = SWIG_Py_Void(); | |
14838 | return resultobj; | |
14839 | fail: | |
14840 | return NULL; | |
14841 | } | |
14842 | ||
14843 | ||
14844 | SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14845 | PyObject *resultobj = 0; | |
14846 | wxFont *arg1 = (wxFont *) 0 ; | |
14847 | int arg2 ; | |
14848 | void *argp1 = 0 ; | |
14849 | int res1 = 0 ; | |
14850 | int val2 ; | |
14851 | int ecode2 = 0 ; | |
14852 | PyObject * obj0 = 0 ; | |
14853 | PyObject * obj1 = 0 ; | |
14854 | char * kwnames[] = { | |
14855 | (char *) "self",(char *) "style", NULL | |
14856 | }; | |
14857 | ||
14858 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
14859 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14860 | if (!SWIG_IsOK(res1)) { | |
14861 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14862 | } | |
14863 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14864 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14865 | if (!SWIG_IsOK(ecode2)) { | |
14866 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
14867 | } | |
14868 | arg2 = static_cast< int >(val2); | |
14869 | { | |
14870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14871 | (arg1)->SetStyle(arg2); | |
14872 | wxPyEndAllowThreads(__tstate); | |
14873 | if (PyErr_Occurred()) SWIG_fail; | |
14874 | } | |
14875 | resultobj = SWIG_Py_Void(); | |
14876 | return resultobj; | |
14877 | fail: | |
14878 | return NULL; | |
14879 | } | |
14880 | ||
14881 | ||
14882 | SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14883 | PyObject *resultobj = 0; | |
14884 | wxFont *arg1 = (wxFont *) 0 ; | |
14885 | int arg2 ; | |
14886 | void *argp1 = 0 ; | |
14887 | int res1 = 0 ; | |
14888 | int val2 ; | |
14889 | int ecode2 = 0 ; | |
14890 | PyObject * obj0 = 0 ; | |
14891 | PyObject * obj1 = 0 ; | |
14892 | char * kwnames[] = { | |
14893 | (char *) "self",(char *) "weight", NULL | |
14894 | }; | |
14895 | ||
14896 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
14897 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14898 | if (!SWIG_IsOK(res1)) { | |
14899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14900 | } | |
14901 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14902 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14903 | if (!SWIG_IsOK(ecode2)) { | |
14904 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'"); | |
14905 | } | |
14906 | arg2 = static_cast< int >(val2); | |
14907 | { | |
14908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14909 | (arg1)->SetWeight(arg2); | |
14910 | wxPyEndAllowThreads(__tstate); | |
14911 | if (PyErr_Occurred()) SWIG_fail; | |
14912 | } | |
14913 | resultobj = SWIG_Py_Void(); | |
14914 | return resultobj; | |
14915 | fail: | |
14916 | return NULL; | |
14917 | } | |
14918 | ||
14919 | ||
14920 | SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14921 | PyObject *resultobj = 0; | |
14922 | wxFont *arg1 = (wxFont *) 0 ; | |
14923 | wxString *arg2 = 0 ; | |
704eda0c | 14924 | bool result; |
0085ce49 RD |
14925 | void *argp1 = 0 ; |
14926 | int res1 = 0 ; | |
14927 | bool temp2 = false ; | |
14928 | PyObject * obj0 = 0 ; | |
14929 | PyObject * obj1 = 0 ; | |
14930 | char * kwnames[] = { | |
14931 | (char *) "self",(char *) "faceName", NULL | |
14932 | }; | |
14933 | ||
14934 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
14935 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14936 | if (!SWIG_IsOK(res1)) { | |
14937 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14938 | } | |
14939 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14940 | { | |
14941 | arg2 = wxString_in_helper(obj1); | |
14942 | if (arg2 == NULL) SWIG_fail; | |
14943 | temp2 = true; | |
14944 | } | |
14945 | { | |
14946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 14947 | result = (bool)(arg1)->SetFaceName((wxString const &)*arg2); |
0085ce49 RD |
14948 | wxPyEndAllowThreads(__tstate); |
14949 | if (PyErr_Occurred()) SWIG_fail; | |
14950 | } | |
704eda0c RD |
14951 | { |
14952 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14953 | } | |
0085ce49 RD |
14954 | { |
14955 | if (temp2) | |
14956 | delete arg2; | |
14957 | } | |
14958 | return resultobj; | |
14959 | fail: | |
14960 | { | |
14961 | if (temp2) | |
14962 | delete arg2; | |
14963 | } | |
14964 | return NULL; | |
14965 | } | |
14966 | ||
14967 | ||
14968 | SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14969 | PyObject *resultobj = 0; | |
14970 | wxFont *arg1 = (wxFont *) 0 ; | |
14971 | bool arg2 ; | |
14972 | void *argp1 = 0 ; | |
14973 | int res1 = 0 ; | |
14974 | bool val2 ; | |
14975 | int ecode2 = 0 ; | |
14976 | PyObject * obj0 = 0 ; | |
14977 | PyObject * obj1 = 0 ; | |
14978 | char * kwnames[] = { | |
14979 | (char *) "self",(char *) "underlined", NULL | |
14980 | }; | |
14981 | ||
14982 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
14983 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14984 | if (!SWIG_IsOK(res1)) { | |
14985 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14986 | } | |
14987 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14988 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
14989 | if (!SWIG_IsOK(ecode2)) { | |
14990 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
14991 | } | |
14992 | arg2 = static_cast< bool >(val2); | |
14993 | { | |
14994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14995 | (arg1)->SetUnderlined(arg2); | |
14996 | wxPyEndAllowThreads(__tstate); | |
14997 | if (PyErr_Occurred()) SWIG_fail; | |
14998 | } | |
14999 | resultobj = SWIG_Py_Void(); | |
15000 | return resultobj; | |
15001 | fail: | |
15002 | return NULL; | |
15003 | } | |
15004 | ||
15005 | ||
15006 | SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15007 | PyObject *resultobj = 0; | |
15008 | wxFont *arg1 = (wxFont *) 0 ; | |
15009 | wxFontEncoding arg2 ; | |
15010 | void *argp1 = 0 ; | |
15011 | int res1 = 0 ; | |
15012 | int val2 ; | |
15013 | int ecode2 = 0 ; | |
15014 | PyObject * obj0 = 0 ; | |
15015 | PyObject * obj1 = 0 ; | |
15016 | char * kwnames[] = { | |
15017 | (char *) "self",(char *) "encoding", NULL | |
15018 | }; | |
15019 | ||
15020 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
15021 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15022 | if (!SWIG_IsOK(res1)) { | |
15023 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15024 | } | |
15025 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15026 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15027 | if (!SWIG_IsOK(ecode2)) { | |
15028 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
15029 | } | |
15030 | arg2 = static_cast< wxFontEncoding >(val2); | |
15031 | { | |
15032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15033 | (arg1)->SetEncoding(arg2); | |
15034 | wxPyEndAllowThreads(__tstate); | |
15035 | if (PyErr_Occurred()) SWIG_fail; | |
15036 | } | |
15037 | resultobj = SWIG_Py_Void(); | |
15038 | return resultobj; | |
15039 | fail: | |
15040 | return NULL; | |
15041 | } | |
15042 | ||
15043 | ||
15044 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15045 | PyObject *resultobj = 0; | |
15046 | wxFont *arg1 = (wxFont *) 0 ; | |
15047 | wxNativeFontInfo *arg2 = 0 ; | |
15048 | void *argp1 = 0 ; | |
15049 | int res1 = 0 ; | |
15050 | void *argp2 = 0 ; | |
15051 | int res2 = 0 ; | |
15052 | PyObject * obj0 = 0 ; | |
15053 | PyObject * obj1 = 0 ; | |
15054 | char * kwnames[] = { | |
15055 | (char *) "self",(char *) "info", NULL | |
15056 | }; | |
15057 | ||
15058 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail; | |
15059 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15060 | if (!SWIG_IsOK(res1)) { | |
15061 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15062 | } | |
15063 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15064 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
15065 | if (!SWIG_IsOK(res2)) { | |
15066 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
15067 | } | |
15068 | if (!argp2) { | |
15069 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
15070 | } | |
15071 | arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2); | |
15072 | { | |
15073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15074 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
15075 | wxPyEndAllowThreads(__tstate); | |
15076 | if (PyErr_Occurred()) SWIG_fail; | |
15077 | } | |
15078 | resultobj = SWIG_Py_Void(); | |
15079 | return resultobj; | |
15080 | fail: | |
15081 | return NULL; | |
15082 | } | |
15083 | ||
15084 | ||
15085 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15086 | PyObject *resultobj = 0; | |
15087 | wxFont *arg1 = (wxFont *) 0 ; | |
15088 | wxString *arg2 = 0 ; | |
704eda0c | 15089 | bool result; |
0085ce49 RD |
15090 | void *argp1 = 0 ; |
15091 | int res1 = 0 ; | |
15092 | bool temp2 = false ; | |
15093 | PyObject * obj0 = 0 ; | |
15094 | PyObject * obj1 = 0 ; | |
15095 | char * kwnames[] = { | |
15096 | (char *) "self",(char *) "info", NULL | |
15097 | }; | |
15098 | ||
15099 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
15100 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15101 | if (!SWIG_IsOK(res1)) { | |
15102 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15103 | } | |
15104 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15105 | { | |
15106 | arg2 = wxString_in_helper(obj1); | |
15107 | if (arg2 == NULL) SWIG_fail; | |
15108 | temp2 = true; | |
15109 | } | |
15110 | { | |
15111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15112 | result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2); |
0085ce49 RD |
15113 | wxPyEndAllowThreads(__tstate); |
15114 | if (PyErr_Occurred()) SWIG_fail; | |
15115 | } | |
704eda0c RD |
15116 | { |
15117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15118 | } | |
0085ce49 RD |
15119 | { |
15120 | if (temp2) | |
15121 | delete arg2; | |
15122 | } | |
15123 | return resultobj; | |
15124 | fail: | |
15125 | { | |
15126 | if (temp2) | |
15127 | delete arg2; | |
15128 | } | |
15129 | return NULL; | |
d14a1e28 RD |
15130 | } |
15131 | ||
15132 | ||
0085ce49 RD |
15133 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15134 | PyObject *resultobj = 0; | |
15135 | wxFont *arg1 = (wxFont *) 0 ; | |
15136 | wxString *arg2 = 0 ; | |
704eda0c | 15137 | bool result; |
0085ce49 RD |
15138 | void *argp1 = 0 ; |
15139 | int res1 = 0 ; | |
15140 | bool temp2 = false ; | |
15141 | PyObject * obj0 = 0 ; | |
15142 | PyObject * obj1 = 0 ; | |
15143 | char * kwnames[] = { | |
15144 | (char *) "self",(char *) "info", NULL | |
15145 | }; | |
15146 | ||
15147 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail; | |
15148 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15149 | if (!SWIG_IsOK(res1)) { | |
15150 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15151 | } | |
15152 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15153 | { | |
15154 | arg2 = wxString_in_helper(obj1); | |
15155 | if (arg2 == NULL) SWIG_fail; | |
15156 | temp2 = true; | |
15157 | } | |
15158 | { | |
15159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15160 | result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); |
0085ce49 RD |
15161 | wxPyEndAllowThreads(__tstate); |
15162 | if (PyErr_Occurred()) SWIG_fail; | |
15163 | } | |
704eda0c RD |
15164 | { |
15165 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15166 | } | |
0085ce49 RD |
15167 | { |
15168 | if (temp2) | |
15169 | delete arg2; | |
15170 | } | |
15171 | return resultobj; | |
15172 | fail: | |
15173 | { | |
15174 | if (temp2) | |
15175 | delete arg2; | |
15176 | } | |
15177 | return NULL; | |
d14a1e28 RD |
15178 | } |
15179 | ||
15180 | ||
0085ce49 RD |
15181 | SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15182 | PyObject *resultobj = 0; | |
15183 | wxFont *arg1 = (wxFont *) 0 ; | |
15184 | wxString result; | |
15185 | void *argp1 = 0 ; | |
15186 | int res1 = 0 ; | |
15187 | PyObject *swig_obj[1] ; | |
15188 | ||
15189 | if (!args) SWIG_fail; | |
15190 | swig_obj[0] = args; | |
15191 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15192 | if (!SWIG_IsOK(res1)) { | |
15193 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15194 | } | |
15195 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15196 | { | |
15197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15198 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
15199 | wxPyEndAllowThreads(__tstate); | |
15200 | if (PyErr_Occurred()) SWIG_fail; | |
15201 | } | |
15202 | { | |
15203 | #if wxUSE_UNICODE | |
15204 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15205 | #else | |
15206 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15207 | #endif | |
15208 | } | |
15209 | return resultobj; | |
15210 | fail: | |
15211 | return NULL; | |
d14a1e28 RD |
15212 | } |
15213 | ||
15214 | ||
0085ce49 RD |
15215 | SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15216 | PyObject *resultobj = 0; | |
15217 | wxFont *arg1 = (wxFont *) 0 ; | |
15218 | wxString result; | |
15219 | void *argp1 = 0 ; | |
15220 | int res1 = 0 ; | |
15221 | PyObject *swig_obj[1] ; | |
15222 | ||
15223 | if (!args) SWIG_fail; | |
15224 | swig_obj[0] = args; | |
15225 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15226 | if (!SWIG_IsOK(res1)) { | |
15227 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15228 | } | |
15229 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15230 | { | |
15231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15232 | result = ((wxFont const *)arg1)->GetStyleString(); | |
15233 | wxPyEndAllowThreads(__tstate); | |
15234 | if (PyErr_Occurred()) SWIG_fail; | |
15235 | } | |
15236 | { | |
15237 | #if wxUSE_UNICODE | |
15238 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15239 | #else | |
15240 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15241 | #endif | |
15242 | } | |
15243 | return resultobj; | |
15244 | fail: | |
15245 | return NULL; | |
d14a1e28 RD |
15246 | } |
15247 | ||
15248 | ||
0085ce49 RD |
15249 | SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15250 | PyObject *resultobj = 0; | |
15251 | wxFont *arg1 = (wxFont *) 0 ; | |
15252 | wxString result; | |
15253 | void *argp1 = 0 ; | |
15254 | int res1 = 0 ; | |
15255 | PyObject *swig_obj[1] ; | |
15256 | ||
15257 | if (!args) SWIG_fail; | |
15258 | swig_obj[0] = args; | |
15259 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15260 | if (!SWIG_IsOK(res1)) { | |
15261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15262 | } | |
15263 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15264 | { | |
15265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15266 | result = ((wxFont const *)arg1)->GetWeightString(); | |
15267 | wxPyEndAllowThreads(__tstate); | |
15268 | if (PyErr_Occurred()) SWIG_fail; | |
15269 | } | |
15270 | { | |
d14a1e28 | 15271 | #if wxUSE_UNICODE |
0085ce49 | 15272 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 15273 | #else |
0085ce49 | 15274 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 15275 | #endif |
0085ce49 RD |
15276 | } |
15277 | return resultobj; | |
15278 | fail: | |
15279 | return NULL; | |
15280 | } | |
15281 | ||
15282 | ||
15283 | SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15284 | PyObject *resultobj = 0; | |
15285 | wxFont *arg1 = (wxFont *) 0 ; | |
15286 | bool arg2 = (bool) true ; | |
15287 | void *argp1 = 0 ; | |
15288 | int res1 = 0 ; | |
15289 | bool val2 ; | |
15290 | int ecode2 = 0 ; | |
15291 | PyObject * obj0 = 0 ; | |
15292 | PyObject * obj1 = 0 ; | |
15293 | char * kwnames[] = { | |
15294 | (char *) "self",(char *) "no", NULL | |
15295 | }; | |
15296 | ||
15297 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail; | |
15298 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15299 | if (!SWIG_IsOK(res1)) { | |
15300 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15301 | } | |
15302 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15303 | if (obj1) { | |
15304 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
15305 | if (!SWIG_IsOK(ecode2)) { | |
15306 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'"); | |
15307 | } | |
15308 | arg2 = static_cast< bool >(val2); | |
15309 | } | |
15310 | { | |
15311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15312 | (arg1)->SetNoAntiAliasing(arg2); | |
15313 | wxPyEndAllowThreads(__tstate); | |
15314 | if (PyErr_Occurred()) SWIG_fail; | |
15315 | } | |
15316 | resultobj = SWIG_Py_Void(); | |
15317 | return resultobj; | |
15318 | fail: | |
15319 | return NULL; | |
d14a1e28 RD |
15320 | } |
15321 | ||
15322 | ||
0085ce49 RD |
15323 | SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15324 | PyObject *resultobj = 0; | |
15325 | wxFont *arg1 = (wxFont *) 0 ; | |
15326 | bool result; | |
15327 | void *argp1 = 0 ; | |
15328 | int res1 = 0 ; | |
15329 | PyObject *swig_obj[1] ; | |
15330 | ||
15331 | if (!args) SWIG_fail; | |
15332 | swig_obj[0] = args; | |
15333 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15334 | if (!SWIG_IsOK(res1)) { | |
15335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15336 | } | |
15337 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15338 | { | |
15339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15340 | result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing(); | |
15341 | wxPyEndAllowThreads(__tstate); | |
15342 | if (PyErr_Occurred()) SWIG_fail; | |
15343 | } | |
15344 | { | |
15345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15346 | } | |
15347 | return resultobj; | |
15348 | fail: | |
15349 | return NULL; | |
d14a1e28 RD |
15350 | } |
15351 | ||
15352 | ||
0085ce49 RD |
15353 | SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15354 | PyObject *resultobj = 0; | |
15355 | wxFontEncoding result; | |
15356 | ||
15357 | if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail; | |
15358 | { | |
15359 | if (!wxPyCheckForApp()) SWIG_fail; | |
15360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15361 | result = (wxFontEncoding)wxFont::GetDefaultEncoding(); | |
15362 | wxPyEndAllowThreads(__tstate); | |
15363 | if (PyErr_Occurred()) SWIG_fail; | |
15364 | } | |
15365 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15366 | return resultobj; | |
15367 | fail: | |
15368 | return NULL; | |
d14a1e28 RD |
15369 | } |
15370 | ||
15371 | ||
0085ce49 RD |
15372 | SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15373 | PyObject *resultobj = 0; | |
15374 | wxFontEncoding arg1 ; | |
15375 | int val1 ; | |
15376 | int ecode1 = 0 ; | |
15377 | PyObject * obj0 = 0 ; | |
15378 | char * kwnames[] = { | |
15379 | (char *) "encoding", NULL | |
15380 | }; | |
15381 | ||
15382 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail; | |
15383 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15384 | if (!SWIG_IsOK(ecode1)) { | |
15385 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
15386 | } | |
15387 | arg1 = static_cast< wxFontEncoding >(val1); | |
15388 | { | |
15389 | if (!wxPyCheckForApp()) SWIG_fail; | |
15390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15391 | wxFont::SetDefaultEncoding(arg1); | |
15392 | wxPyEndAllowThreads(__tstate); | |
15393 | if (PyErr_Occurred()) SWIG_fail; | |
15394 | } | |
15395 | resultobj = SWIG_Py_Void(); | |
15396 | return resultobj; | |
15397 | fail: | |
15398 | return NULL; | |
d14a1e28 RD |
15399 | } |
15400 | ||
15401 | ||
0085ce49 RD |
15402 | SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15403 | PyObject *obj; | |
15404 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15405 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj)); | |
15406 | return SWIG_Py_Void(); | |
d14a1e28 RD |
15407 | } |
15408 | ||
0085ce49 RD |
15409 | SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15410 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
15411 | } |
15412 | ||
0085ce49 RD |
15413 | SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15414 | PyObject *resultobj = 0; | |
15415 | wxPyFontEnumerator *result = 0 ; | |
15416 | ||
15417 | if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail; | |
15418 | { | |
15419 | if (!wxPyCheckForApp()) SWIG_fail; | |
15420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15421 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
15422 | wxPyEndAllowThreads(__tstate); | |
15423 | if (PyErr_Occurred()) SWIG_fail; | |
15424 | } | |
15425 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 ); | |
15426 | return resultobj; | |
15427 | fail: | |
15428 | return NULL; | |
d14a1e28 RD |
15429 | } |
15430 | ||
15431 | ||
0085ce49 RD |
15432 | SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15433 | PyObject *resultobj = 0; | |
15434 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15435 | void *argp1 = 0 ; | |
15436 | int res1 = 0 ; | |
15437 | PyObject *swig_obj[1] ; | |
15438 | ||
15439 | if (!args) SWIG_fail; | |
15440 | swig_obj[0] = args; | |
15441 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 ); | |
15442 | if (!SWIG_IsOK(res1)) { | |
15443 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15444 | } | |
15445 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15446 | { | |
15447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15448 | delete arg1; | |
d14a1e28 | 15449 | |
0085ce49 RD |
15450 | wxPyEndAllowThreads(__tstate); |
15451 | if (PyErr_Occurred()) SWIG_fail; | |
15452 | } | |
15453 | resultobj = SWIG_Py_Void(); | |
15454 | return resultobj; | |
15455 | fail: | |
15456 | return NULL; | |
15457 | } | |
15458 | ||
15459 | ||
15460 | SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15461 | PyObject *resultobj = 0; | |
15462 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15463 | PyObject *arg2 = (PyObject *) 0 ; | |
15464 | PyObject *arg3 = (PyObject *) 0 ; | |
c25f90f6 | 15465 | int arg4 = (int) 0 ; |
0085ce49 RD |
15466 | void *argp1 = 0 ; |
15467 | int res1 = 0 ; | |
c25f90f6 | 15468 | int val4 ; |
0085ce49 RD |
15469 | int ecode4 = 0 ; |
15470 | PyObject * obj0 = 0 ; | |
15471 | PyObject * obj1 = 0 ; | |
15472 | PyObject * obj2 = 0 ; | |
15473 | PyObject * obj3 = 0 ; | |
15474 | char * kwnames[] = { | |
15475 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
15476 | }; | |
15477 | ||
c25f90f6 | 15478 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
0085ce49 RD |
15479 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); |
15480 | if (!SWIG_IsOK(res1)) { | |
15481 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15482 | } | |
15483 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15484 | arg2 = obj1; | |
15485 | arg3 = obj2; | |
c25f90f6 RD |
15486 | if (obj3) { |
15487 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
15488 | if (!SWIG_IsOK(ecode4)) { | |
15489 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'"); | |
15490 | } | |
15491 | arg4 = static_cast< int >(val4); | |
15492 | } | |
0085ce49 RD |
15493 | { |
15494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15495 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
15496 | wxPyEndAllowThreads(__tstate); | |
15497 | if (PyErr_Occurred()) SWIG_fail; | |
15498 | } | |
15499 | resultobj = SWIG_Py_Void(); | |
15500 | return resultobj; | |
15501 | fail: | |
15502 | return NULL; | |
15503 | } | |
15504 | ||
15505 | ||
15506 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15507 | PyObject *resultobj = 0; | |
15508 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15509 | wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ; | |
15510 | bool arg3 = (bool) false ; | |
15511 | bool result; | |
15512 | void *argp1 = 0 ; | |
15513 | int res1 = 0 ; | |
15514 | int val2 ; | |
15515 | int ecode2 = 0 ; | |
15516 | bool val3 ; | |
15517 | int ecode3 = 0 ; | |
15518 | PyObject * obj0 = 0 ; | |
15519 | PyObject * obj1 = 0 ; | |
15520 | PyObject * obj2 = 0 ; | |
15521 | char * kwnames[] = { | |
15522 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
15523 | }; | |
15524 | ||
15525 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15526 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
15527 | if (!SWIG_IsOK(res1)) { | |
15528 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15529 | } | |
15530 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15531 | if (obj1) { | |
15532 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15533 | if (!SWIG_IsOK(ecode2)) { | |
15534 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
15535 | } | |
15536 | arg2 = static_cast< wxFontEncoding >(val2); | |
15537 | } | |
15538 | if (obj2) { | |
15539 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
15540 | if (!SWIG_IsOK(ecode3)) { | |
15541 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'"); | |
15542 | } | |
15543 | arg3 = static_cast< bool >(val3); | |
15544 | } | |
15545 | { | |
15546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15547 | result = (bool)(arg1)->EnumerateFacenames(arg2,arg3); | |
15548 | wxPyEndAllowThreads(__tstate); | |
15549 | if (PyErr_Occurred()) SWIG_fail; | |
15550 | } | |
15551 | { | |
15552 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15553 | } | |
15554 | return resultobj; | |
15555 | fail: | |
15556 | return NULL; | |
15557 | } | |
15558 | ||
15559 | ||
15560 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15561 | PyObject *resultobj = 0; | |
15562 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15563 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
15564 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
15565 | bool result; | |
15566 | void *argp1 = 0 ; | |
15567 | int res1 = 0 ; | |
15568 | bool temp2 = false ; | |
15569 | PyObject * obj0 = 0 ; | |
15570 | PyObject * obj1 = 0 ; | |
15571 | char * kwnames[] = { | |
15572 | (char *) "self",(char *) "facename", NULL | |
15573 | }; | |
15574 | ||
15575 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail; | |
15576 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
15577 | if (!SWIG_IsOK(res1)) { | |
15578 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15579 | } | |
15580 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15581 | if (obj1) { | |
d14a1e28 | 15582 | { |
0085ce49 RD |
15583 | arg2 = wxString_in_helper(obj1); |
15584 | if (arg2 == NULL) SWIG_fail; | |
15585 | temp2 = true; | |
d14a1e28 | 15586 | } |
0085ce49 RD |
15587 | } |
15588 | { | |
15589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15590 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
15591 | wxPyEndAllowThreads(__tstate); | |
15592 | if (PyErr_Occurred()) SWIG_fail; | |
15593 | } | |
15594 | { | |
15595 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15596 | } | |
15597 | { | |
15598 | if (temp2) | |
15599 | delete arg2; | |
15600 | } | |
15601 | return resultobj; | |
15602 | fail: | |
15603 | { | |
15604 | if (temp2) | |
15605 | delete arg2; | |
15606 | } | |
15607 | return NULL; | |
d14a1e28 RD |
15608 | } |
15609 | ||
15610 | ||
0085ce49 RD |
15611 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15612 | PyObject *resultobj = 0; | |
0085ce49 | 15613 | PyObject *result = 0 ; |
0085ce49 | 15614 | |
704eda0c | 15615 | if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail; |
0085ce49 RD |
15616 | { |
15617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15618 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(); |
0085ce49 RD |
15619 | wxPyEndAllowThreads(__tstate); |
15620 | if (PyErr_Occurred()) SWIG_fail; | |
15621 | } | |
15622 | resultobj = result; | |
15623 | return resultobj; | |
15624 | fail: | |
15625 | return NULL; | |
d14a1e28 RD |
15626 | } |
15627 | ||
15628 | ||
0085ce49 RD |
15629 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15630 | PyObject *resultobj = 0; | |
0085ce49 | 15631 | PyObject *result = 0 ; |
0085ce49 | 15632 | |
704eda0c | 15633 | if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail; |
0085ce49 RD |
15634 | { |
15635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15636 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(); |
0085ce49 RD |
15637 | wxPyEndAllowThreads(__tstate); |
15638 | if (PyErr_Occurred()) SWIG_fail; | |
15639 | } | |
15640 | resultobj = result; | |
15641 | return resultobj; | |
15642 | fail: | |
15643 | return NULL; | |
d14a1e28 RD |
15644 | } |
15645 | ||
15646 | ||
704eda0c RD |
15647 | SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15648 | PyObject *resultobj = 0; | |
15649 | wxString *arg1 = 0 ; | |
15650 | bool result; | |
15651 | bool temp1 = false ; | |
15652 | PyObject * obj0 = 0 ; | |
15653 | char * kwnames[] = { | |
15654 | (char *) "str", NULL | |
15655 | }; | |
15656 | ||
15657 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail; | |
15658 | { | |
15659 | arg1 = wxString_in_helper(obj0); | |
15660 | if (arg1 == NULL) SWIG_fail; | |
15661 | temp1 = true; | |
15662 | } | |
15663 | { | |
15664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15665 | result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1); | |
15666 | wxPyEndAllowThreads(__tstate); | |
15667 | if (PyErr_Occurred()) SWIG_fail; | |
15668 | } | |
15669 | { | |
15670 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15671 | } | |
15672 | { | |
15673 | if (temp1) | |
15674 | delete arg1; | |
15675 | } | |
15676 | return resultobj; | |
15677 | fail: | |
15678 | { | |
15679 | if (temp1) | |
15680 | delete arg1; | |
15681 | } | |
15682 | return NULL; | |
15683 | } | |
15684 | ||
15685 | ||
0085ce49 RD |
15686 | SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15687 | PyObject *obj; | |
15688 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15689 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj)); | |
15690 | return SWIG_Py_Void(); | |
d14a1e28 RD |
15691 | } |
15692 | ||
0085ce49 RD |
15693 | SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15694 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
15695 | } |
15696 | ||
0085ce49 RD |
15697 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15698 | PyObject *resultobj = 0; | |
15699 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15700 | int arg2 ; | |
15701 | void *argp1 = 0 ; | |
15702 | int res1 = 0 ; | |
15703 | int val2 ; | |
15704 | int ecode2 = 0 ; | |
15705 | PyObject *swig_obj[2] ; | |
15706 | ||
15707 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail; | |
15708 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15709 | if (!SWIG_IsOK(res1)) { | |
15710 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15711 | } | |
15712 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15713 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
15714 | if (!SWIG_IsOK(ecode2)) { | |
15715 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'"); | |
15716 | } | |
15717 | arg2 = static_cast< int >(val2); | |
15718 | if (arg1) (arg1)->Language = arg2; | |
15719 | ||
15720 | resultobj = SWIG_Py_Void(); | |
15721 | return resultobj; | |
15722 | fail: | |
15723 | return NULL; | |
d14a1e28 RD |
15724 | } |
15725 | ||
15726 | ||
0085ce49 RD |
15727 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15728 | PyObject *resultobj = 0; | |
15729 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15730 | int result; | |
15731 | void *argp1 = 0 ; | |
15732 | int res1 = 0 ; | |
15733 | PyObject *swig_obj[1] ; | |
15734 | ||
15735 | if (!args) SWIG_fail; | |
15736 | swig_obj[0] = args; | |
15737 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15738 | if (!SWIG_IsOK(res1)) { | |
15739 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15740 | } | |
15741 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15742 | result = (int) ((arg1)->Language); | |
15743 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15744 | return resultobj; | |
15745 | fail: | |
15746 | return NULL; | |
15747 | } | |
15748 | ||
15749 | ||
15750 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15751 | PyObject *resultobj = 0; | |
15752 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15753 | wxString *arg2 = (wxString *) 0 ; | |
15754 | void *argp1 = 0 ; | |
15755 | int res1 = 0 ; | |
15756 | bool temp2 = false ; | |
15757 | PyObject *swig_obj[2] ; | |
15758 | ||
15759 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail; | |
15760 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15761 | if (!SWIG_IsOK(res1)) { | |
15762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15763 | } | |
15764 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15765 | { | |
15766 | arg2 = wxString_in_helper(swig_obj[1]); | |
15767 | if (arg2 == NULL) SWIG_fail; | |
15768 | temp2 = true; | |
15769 | } | |
15770 | if (arg1) (arg1)->CanonicalName = *arg2; | |
15771 | ||
15772 | resultobj = SWIG_Py_Void(); | |
15773 | { | |
15774 | if (temp2) | |
15775 | delete arg2; | |
15776 | } | |
15777 | return resultobj; | |
15778 | fail: | |
15779 | { | |
15780 | if (temp2) | |
15781 | delete arg2; | |
15782 | } | |
15783 | return NULL; | |
d14a1e28 RD |
15784 | } |
15785 | ||
15786 | ||
0085ce49 RD |
15787 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15788 | PyObject *resultobj = 0; | |
15789 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15790 | wxString *result = 0 ; | |
15791 | void *argp1 = 0 ; | |
15792 | int res1 = 0 ; | |
15793 | PyObject *swig_obj[1] ; | |
15794 | ||
15795 | if (!args) SWIG_fail; | |
15796 | swig_obj[0] = args; | |
15797 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15798 | if (!SWIG_IsOK(res1)) { | |
15799 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15800 | } | |
15801 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15802 | result = (wxString *)& ((arg1)->CanonicalName); | |
15803 | { | |
093d3ff1 | 15804 | #if wxUSE_UNICODE |
0085ce49 | 15805 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
093d3ff1 | 15806 | #else |
0085ce49 | 15807 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
093d3ff1 | 15808 | #endif |
0085ce49 RD |
15809 | } |
15810 | return resultobj; | |
15811 | fail: | |
15812 | return NULL; | |
d14a1e28 RD |
15813 | } |
15814 | ||
15815 | ||
0085ce49 RD |
15816 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15817 | PyObject *resultobj = 0; | |
15818 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15819 | wxString *arg2 = (wxString *) 0 ; | |
15820 | void *argp1 = 0 ; | |
15821 | int res1 = 0 ; | |
15822 | bool temp2 = false ; | |
15823 | PyObject *swig_obj[2] ; | |
15824 | ||
15825 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail; | |
15826 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15827 | if (!SWIG_IsOK(res1)) { | |
15828 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15829 | } | |
15830 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15831 | { | |
15832 | arg2 = wxString_in_helper(swig_obj[1]); | |
15833 | if (arg2 == NULL) SWIG_fail; | |
15834 | temp2 = true; | |
15835 | } | |
15836 | if (arg1) (arg1)->Description = *arg2; | |
15837 | ||
15838 | resultobj = SWIG_Py_Void(); | |
15839 | { | |
15840 | if (temp2) | |
15841 | delete arg2; | |
15842 | } | |
15843 | return resultobj; | |
15844 | fail: | |
15845 | { | |
15846 | if (temp2) | |
15847 | delete arg2; | |
15848 | } | |
15849 | return NULL; | |
d14a1e28 RD |
15850 | } |
15851 | ||
15852 | ||
0085ce49 RD |
15853 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15854 | PyObject *resultobj = 0; | |
15855 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15856 | wxString *result = 0 ; | |
15857 | void *argp1 = 0 ; | |
15858 | int res1 = 0 ; | |
15859 | PyObject *swig_obj[1] ; | |
15860 | ||
15861 | if (!args) SWIG_fail; | |
15862 | swig_obj[0] = args; | |
15863 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15864 | if (!SWIG_IsOK(res1)) { | |
15865 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15866 | } | |
15867 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15868 | result = (wxString *)& ((arg1)->Description); | |
15869 | { | |
d14a1e28 | 15870 | #if wxUSE_UNICODE |
0085ce49 | 15871 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 15872 | #else |
0085ce49 | 15873 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 | 15874 | #endif |
0085ce49 RD |
15875 | } |
15876 | return resultobj; | |
15877 | fail: | |
15878 | return NULL; | |
15879 | } | |
15880 | ||
15881 | ||
15882 | SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15883 | PyObject *obj; | |
15884 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15885 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj)); | |
15886 | return SWIG_Py_Void(); | |
15887 | } | |
15888 | ||
15889 | SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15890 | PyObject *resultobj = 0; | |
15891 | int arg1 = (int) -1 ; | |
15892 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
15893 | wxLocale *result = 0 ; | |
15894 | int val1 ; | |
15895 | int ecode1 = 0 ; | |
15896 | int val2 ; | |
15897 | int ecode2 = 0 ; | |
15898 | PyObject * obj0 = 0 ; | |
15899 | PyObject * obj1 = 0 ; | |
15900 | char * kwnames[] = { | |
15901 | (char *) "language",(char *) "flags", NULL | |
15902 | }; | |
15903 | ||
15904 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail; | |
15905 | if (obj0) { | |
15906 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15907 | if (!SWIG_IsOK(ecode1)) { | |
15908 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'"); | |
15909 | } | |
15910 | arg1 = static_cast< int >(val1); | |
15911 | } | |
15912 | if (obj1) { | |
15913 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15914 | if (!SWIG_IsOK(ecode2)) { | |
15915 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'"); | |
15916 | } | |
15917 | arg2 = static_cast< int >(val2); | |
15918 | } | |
15919 | { | |
15920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15921 | result = (wxLocale *)new_wxLocale(arg1,arg2); | |
15922 | wxPyEndAllowThreads(__tstate); | |
15923 | if (PyErr_Occurred()) SWIG_fail; | |
15924 | } | |
15925 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 ); | |
15926 | return resultobj; | |
15927 | fail: | |
15928 | return NULL; | |
d14a1e28 RD |
15929 | } |
15930 | ||
15931 | ||
0085ce49 RD |
15932 | SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15933 | PyObject *resultobj = 0; | |
15934 | wxLocale *arg1 = (wxLocale *) 0 ; | |
15935 | void *argp1 = 0 ; | |
15936 | int res1 = 0 ; | |
15937 | PyObject *swig_obj[1] ; | |
15938 | ||
15939 | if (!args) SWIG_fail; | |
15940 | swig_obj[0] = args; | |
15941 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 ); | |
15942 | if (!SWIG_IsOK(res1)) { | |
15943 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
15944 | } | |
15945 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
15946 | { | |
15947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15948 | delete arg1; | |
d14a1e28 | 15949 | |
0085ce49 RD |
15950 | wxPyEndAllowThreads(__tstate); |
15951 | if (PyErr_Occurred()) SWIG_fail; | |
15952 | } | |
15953 | resultobj = SWIG_Py_Void(); | |
15954 | return resultobj; | |
15955 | fail: | |
15956 | return NULL; | |
15957 | } | |
15958 | ||
15959 | ||
15960 | SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15961 | PyObject *resultobj = 0; | |
15962 | wxLocale *arg1 = (wxLocale *) 0 ; | |
15963 | wxString *arg2 = 0 ; | |
15964 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15965 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15966 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15967 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15968 | bool arg5 = (bool) true ; | |
15969 | bool arg6 = (bool) false ; | |
15970 | bool result; | |
15971 | void *argp1 = 0 ; | |
15972 | int res1 = 0 ; | |
15973 | bool temp2 = false ; | |
15974 | bool temp3 = false ; | |
15975 | bool temp4 = false ; | |
15976 | bool val5 ; | |
15977 | int ecode5 = 0 ; | |
15978 | bool val6 ; | |
15979 | int ecode6 = 0 ; | |
15980 | PyObject * obj0 = 0 ; | |
15981 | PyObject * obj1 = 0 ; | |
15982 | PyObject * obj2 = 0 ; | |
15983 | PyObject * obj3 = 0 ; | |
15984 | PyObject * obj4 = 0 ; | |
15985 | PyObject * obj5 = 0 ; | |
15986 | char * kwnames[] = { | |
15987 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
15988 | }; | |
15989 | ||
15990 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
15991 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
15992 | if (!SWIG_IsOK(res1)) { | |
15993 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
15994 | } | |
15995 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
15996 | { | |
15997 | arg2 = wxString_in_helper(obj1); | |
15998 | if (arg2 == NULL) SWIG_fail; | |
15999 | temp2 = true; | |
16000 | } | |
16001 | if (obj2) { | |
d14a1e28 | 16002 | { |
0085ce49 RD |
16003 | arg3 = wxString_in_helper(obj2); |
16004 | if (arg3 == NULL) SWIG_fail; | |
16005 | temp3 = true; | |
d14a1e28 | 16006 | } |
0085ce49 RD |
16007 | } |
16008 | if (obj3) { | |
093d3ff1 | 16009 | { |
0085ce49 RD |
16010 | arg4 = wxString_in_helper(obj3); |
16011 | if (arg4 == NULL) SWIG_fail; | |
16012 | temp4 = true; | |
093d3ff1 | 16013 | } |
0085ce49 RD |
16014 | } |
16015 | if (obj4) { | |
16016 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
16017 | if (!SWIG_IsOK(ecode5)) { | |
16018 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'"); | |
16019 | } | |
16020 | arg5 = static_cast< bool >(val5); | |
16021 | } | |
16022 | if (obj5) { | |
16023 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
16024 | if (!SWIG_IsOK(ecode6)) { | |
16025 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'"); | |
16026 | } | |
16027 | arg6 = static_cast< bool >(val6); | |
16028 | } | |
16029 | { | |
16030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16031 | result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
16032 | wxPyEndAllowThreads(__tstate); | |
16033 | if (PyErr_Occurred()) SWIG_fail; | |
16034 | } | |
16035 | { | |
16036 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16037 | } | |
16038 | { | |
16039 | if (temp2) | |
16040 | delete arg2; | |
16041 | } | |
16042 | { | |
16043 | if (temp3) | |
16044 | delete arg3; | |
16045 | } | |
16046 | { | |
16047 | if (temp4) | |
16048 | delete arg4; | |
16049 | } | |
16050 | return resultobj; | |
16051 | fail: | |
16052 | { | |
16053 | if (temp2) | |
16054 | delete arg2; | |
16055 | } | |
16056 | { | |
16057 | if (temp3) | |
16058 | delete arg3; | |
16059 | } | |
16060 | { | |
16061 | if (temp4) | |
16062 | delete arg4; | |
16063 | } | |
16064 | return NULL; | |
16065 | } | |
16066 | ||
16067 | ||
16068 | SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16069 | PyObject *resultobj = 0; | |
16070 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16071 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
16072 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
16073 | bool result; | |
16074 | void *argp1 = 0 ; | |
16075 | int res1 = 0 ; | |
16076 | int val2 ; | |
16077 | int ecode2 = 0 ; | |
16078 | int val3 ; | |
16079 | int ecode3 = 0 ; | |
16080 | PyObject * obj0 = 0 ; | |
16081 | PyObject * obj1 = 0 ; | |
16082 | PyObject * obj2 = 0 ; | |
16083 | char * kwnames[] = { | |
16084 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
16085 | }; | |
16086 | ||
16087 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16088 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16089 | if (!SWIG_IsOK(res1)) { | |
16090 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16091 | } | |
16092 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16093 | if (obj1) { | |
16094 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16095 | if (!SWIG_IsOK(ecode2)) { | |
16096 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'"); | |
16097 | } | |
16098 | arg2 = static_cast< int >(val2); | |
16099 | } | |
16100 | if (obj2) { | |
16101 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16102 | if (!SWIG_IsOK(ecode3)) { | |
16103 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'"); | |
16104 | } | |
16105 | arg3 = static_cast< int >(val3); | |
16106 | } | |
16107 | { | |
16108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16109 | result = (bool)wxLocale_Init2(arg1,arg2,arg3); | |
16110 | wxPyEndAllowThreads(__tstate); | |
16111 | if (PyErr_Occurred()) SWIG_fail; | |
16112 | } | |
16113 | { | |
16114 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16115 | } | |
16116 | return resultobj; | |
16117 | fail: | |
16118 | return NULL; | |
093d3ff1 RD |
16119 | } |
16120 | ||
16121 | ||
0085ce49 RD |
16122 | SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16123 | PyObject *resultobj = 0; | |
16124 | int result; | |
16125 | ||
16126 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail; | |
16127 | { | |
16128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16129 | result = (int)wxLocale::GetSystemLanguage(); | |
16130 | wxPyEndAllowThreads(__tstate); | |
16131 | if (PyErr_Occurred()) SWIG_fail; | |
16132 | } | |
16133 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16134 | return resultobj; | |
16135 | fail: | |
16136 | return NULL; | |
d14a1e28 RD |
16137 | } |
16138 | ||
16139 | ||
0085ce49 RD |
16140 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16141 | PyObject *resultobj = 0; | |
16142 | wxFontEncoding result; | |
16143 | ||
16144 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail; | |
16145 | { | |
16146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16147 | result = (wxFontEncoding)wxLocale::GetSystemEncoding(); | |
16148 | wxPyEndAllowThreads(__tstate); | |
16149 | if (PyErr_Occurred()) SWIG_fail; | |
16150 | } | |
16151 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16152 | return resultobj; | |
16153 | fail: | |
16154 | return NULL; | |
d14a1e28 RD |
16155 | } |
16156 | ||
16157 | ||
0085ce49 RD |
16158 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16159 | PyObject *resultobj = 0; | |
16160 | wxString result; | |
16161 | ||
16162 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail; | |
16163 | { | |
16164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16165 | result = wxLocale::GetSystemEncodingName(); | |
16166 | wxPyEndAllowThreads(__tstate); | |
16167 | if (PyErr_Occurred()) SWIG_fail; | |
16168 | } | |
16169 | { | |
d14a1e28 | 16170 | #if wxUSE_UNICODE |
0085ce49 | 16171 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 16172 | #else |
0085ce49 | 16173 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 16174 | #endif |
0085ce49 RD |
16175 | } |
16176 | return resultobj; | |
16177 | fail: | |
16178 | return NULL; | |
d14a1e28 RD |
16179 | } |
16180 | ||
16181 | ||
0085ce49 RD |
16182 | SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16183 | PyObject *resultobj = 0; | |
16184 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16185 | bool result; | |
16186 | void *argp1 = 0 ; | |
16187 | int res1 = 0 ; | |
16188 | PyObject *swig_obj[1] ; | |
16189 | ||
16190 | if (!args) SWIG_fail; | |
16191 | swig_obj[0] = args; | |
16192 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16193 | if (!SWIG_IsOK(res1)) { | |
16194 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16195 | } | |
16196 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16197 | { | |
16198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16199 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
16200 | wxPyEndAllowThreads(__tstate); | |
16201 | if (PyErr_Occurred()) SWIG_fail; | |
16202 | } | |
16203 | { | |
16204 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16205 | } | |
16206 | return resultobj; | |
16207 | fail: | |
16208 | return NULL; | |
093d3ff1 | 16209 | } |
0085ce49 RD |
16210 | |
16211 | ||
16212 | SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16213 | PyObject *resultobj = 0; | |
16214 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16215 | wxString result; | |
16216 | void *argp1 = 0 ; | |
16217 | int res1 = 0 ; | |
16218 | PyObject *swig_obj[1] ; | |
16219 | ||
16220 | if (!args) SWIG_fail; | |
16221 | swig_obj[0] = args; | |
16222 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16223 | if (!SWIG_IsOK(res1)) { | |
16224 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16225 | } | |
16226 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16227 | { | |
16228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16229 | result = ((wxLocale const *)arg1)->GetLocale(); | |
16230 | wxPyEndAllowThreads(__tstate); | |
16231 | if (PyErr_Occurred()) SWIG_fail; | |
16232 | } | |
16233 | { | |
16234 | #if wxUSE_UNICODE | |
16235 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16236 | #else | |
16237 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16238 | #endif | |
16239 | } | |
16240 | return resultobj; | |
16241 | fail: | |
16242 | return NULL; | |
d14a1e28 RD |
16243 | } |
16244 | ||
16245 | ||
0085ce49 RD |
16246 | SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16247 | PyObject *resultobj = 0; | |
16248 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16249 | int result; | |
16250 | void *argp1 = 0 ; | |
16251 | int res1 = 0 ; | |
16252 | PyObject *swig_obj[1] ; | |
16253 | ||
16254 | if (!args) SWIG_fail; | |
16255 | swig_obj[0] = args; | |
16256 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16257 | if (!SWIG_IsOK(res1)) { | |
16258 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16259 | } | |
16260 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16261 | { | |
16262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16263 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
16264 | wxPyEndAllowThreads(__tstate); | |
16265 | if (PyErr_Occurred()) SWIG_fail; | |
16266 | } | |
16267 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16268 | return resultobj; | |
16269 | fail: | |
16270 | return NULL; | |
d14a1e28 RD |
16271 | } |
16272 | ||
16273 | ||
0085ce49 RD |
16274 | SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16275 | PyObject *resultobj = 0; | |
16276 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16277 | wxString result; | |
16278 | void *argp1 = 0 ; | |
16279 | int res1 = 0 ; | |
16280 | PyObject *swig_obj[1] ; | |
16281 | ||
16282 | if (!args) SWIG_fail; | |
16283 | swig_obj[0] = args; | |
16284 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16285 | if (!SWIG_IsOK(res1)) { | |
16286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16287 | } | |
16288 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16289 | { | |
16290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16291 | result = ((wxLocale const *)arg1)->GetSysName(); | |
16292 | wxPyEndAllowThreads(__tstate); | |
16293 | if (PyErr_Occurred()) SWIG_fail; | |
16294 | } | |
16295 | { | |
16296 | #if wxUSE_UNICODE | |
16297 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16298 | #else | |
16299 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16300 | #endif | |
16301 | } | |
16302 | return resultobj; | |
16303 | fail: | |
16304 | return NULL; | |
d14a1e28 RD |
16305 | } |
16306 | ||
16307 | ||
0085ce49 RD |
16308 | SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16309 | PyObject *resultobj = 0; | |
16310 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16311 | wxString result; | |
16312 | void *argp1 = 0 ; | |
16313 | int res1 = 0 ; | |
16314 | PyObject *swig_obj[1] ; | |
16315 | ||
16316 | if (!args) SWIG_fail; | |
16317 | swig_obj[0] = args; | |
16318 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16319 | if (!SWIG_IsOK(res1)) { | |
16320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16321 | } | |
16322 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16323 | { | |
16324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16325 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
16326 | wxPyEndAllowThreads(__tstate); | |
16327 | if (PyErr_Occurred()) SWIG_fail; | |
16328 | } | |
16329 | { | |
16330 | #if wxUSE_UNICODE | |
16331 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16332 | #else | |
16333 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16334 | #endif | |
16335 | } | |
16336 | return resultobj; | |
16337 | fail: | |
16338 | return NULL; | |
d14a1e28 RD |
16339 | } |
16340 | ||
16341 | ||
0085ce49 RD |
16342 | SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16343 | PyObject *resultobj = 0; | |
16344 | wxString *arg1 = 0 ; | |
16345 | bool temp1 = false ; | |
16346 | PyObject * obj0 = 0 ; | |
16347 | char * kwnames[] = { | |
16348 | (char *) "prefix", NULL | |
16349 | }; | |
16350 | ||
16351 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail; | |
16352 | { | |
16353 | arg1 = wxString_in_helper(obj0); | |
16354 | if (arg1 == NULL) SWIG_fail; | |
16355 | temp1 = true; | |
16356 | } | |
16357 | { | |
16358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16359 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
16360 | wxPyEndAllowThreads(__tstate); | |
16361 | if (PyErr_Occurred()) SWIG_fail; | |
16362 | } | |
16363 | resultobj = SWIG_Py_Void(); | |
16364 | { | |
16365 | if (temp1) | |
16366 | delete arg1; | |
16367 | } | |
16368 | return resultobj; | |
16369 | fail: | |
16370 | { | |
16371 | if (temp1) | |
16372 | delete arg1; | |
16373 | } | |
16374 | return NULL; | |
16375 | } | |
16376 | ||
16377 | ||
16378 | SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16379 | PyObject *resultobj = 0; | |
16380 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16381 | wxString *arg2 = 0 ; | |
16382 | bool result; | |
16383 | void *argp1 = 0 ; | |
16384 | int res1 = 0 ; | |
16385 | bool temp2 = false ; | |
16386 | PyObject * obj0 = 0 ; | |
16387 | PyObject * obj1 = 0 ; | |
16388 | char * kwnames[] = { | |
16389 | (char *) "self",(char *) "szDomain", NULL | |
16390 | }; | |
16391 | ||
16392 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail; | |
16393 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16394 | if (!SWIG_IsOK(res1)) { | |
16395 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16396 | } | |
16397 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16398 | { | |
16399 | arg2 = wxString_in_helper(obj1); | |
16400 | if (arg2 == NULL) SWIG_fail; | |
16401 | temp2 = true; | |
16402 | } | |
16403 | { | |
16404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16405 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
16406 | wxPyEndAllowThreads(__tstate); | |
16407 | if (PyErr_Occurred()) SWIG_fail; | |
16408 | } | |
16409 | { | |
16410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16411 | } | |
16412 | { | |
16413 | if (temp2) | |
16414 | delete arg2; | |
16415 | } | |
16416 | return resultobj; | |
16417 | fail: | |
16418 | { | |
16419 | if (temp2) | |
16420 | delete arg2; | |
16421 | } | |
16422 | return NULL; | |
16423 | } | |
16424 | ||
16425 | ||
33d6fd3b RD |
16426 | SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16427 | PyObject *resultobj = 0; | |
16428 | int arg1 ; | |
16429 | bool result; | |
16430 | int val1 ; | |
16431 | int ecode1 = 0 ; | |
16432 | PyObject * obj0 = 0 ; | |
16433 | char * kwnames[] = { | |
16434 | (char *) "lang", NULL | |
16435 | }; | |
16436 | ||
16437 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail; | |
16438 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16439 | if (!SWIG_IsOK(ecode1)) { | |
16440 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'"); | |
16441 | } | |
16442 | arg1 = static_cast< int >(val1); | |
16443 | { | |
16444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16445 | result = (bool)wxLocale::IsAvailable(arg1); | |
16446 | wxPyEndAllowThreads(__tstate); | |
16447 | if (PyErr_Occurred()) SWIG_fail; | |
16448 | } | |
16449 | { | |
16450 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16451 | } | |
16452 | return resultobj; | |
16453 | fail: | |
16454 | return NULL; | |
16455 | } | |
16456 | ||
16457 | ||
0085ce49 RD |
16458 | SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16459 | PyObject *resultobj = 0; | |
16460 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16461 | wxString *arg2 = 0 ; | |
16462 | bool result; | |
16463 | void *argp1 = 0 ; | |
16464 | int res1 = 0 ; | |
16465 | bool temp2 = false ; | |
16466 | PyObject * obj0 = 0 ; | |
16467 | PyObject * obj1 = 0 ; | |
16468 | char * kwnames[] = { | |
16469 | (char *) "self",(char *) "szDomain", NULL | |
16470 | }; | |
16471 | ||
16472 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail; | |
16473 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16474 | if (!SWIG_IsOK(res1)) { | |
16475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16476 | } | |
16477 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16478 | { | |
16479 | arg2 = wxString_in_helper(obj1); | |
16480 | if (arg2 == NULL) SWIG_fail; | |
16481 | temp2 = true; | |
16482 | } | |
16483 | { | |
16484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16485 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
16486 | wxPyEndAllowThreads(__tstate); | |
16487 | if (PyErr_Occurred()) SWIG_fail; | |
16488 | } | |
16489 | { | |
16490 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16491 | } | |
16492 | { | |
16493 | if (temp2) | |
16494 | delete arg2; | |
16495 | } | |
16496 | return resultobj; | |
16497 | fail: | |
16498 | { | |
16499 | if (temp2) | |
16500 | delete arg2; | |
16501 | } | |
16502 | return NULL; | |
d14a1e28 RD |
16503 | } |
16504 | ||
16505 | ||
0085ce49 RD |
16506 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16507 | PyObject *resultobj = 0; | |
16508 | int arg1 ; | |
16509 | wxLanguageInfo *result = 0 ; | |
16510 | int val1 ; | |
16511 | int ecode1 = 0 ; | |
16512 | PyObject * obj0 = 0 ; | |
16513 | char * kwnames[] = { | |
16514 | (char *) "lang", NULL | |
16515 | }; | |
16516 | ||
16517 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
16518 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16519 | if (!SWIG_IsOK(ecode1)) { | |
16520 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'"); | |
16521 | } | |
16522 | arg1 = static_cast< int >(val1); | |
16523 | { | |
16524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16525 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
16526 | wxPyEndAllowThreads(__tstate); | |
16527 | if (PyErr_Occurred()) SWIG_fail; | |
16528 | } | |
16529 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16530 | return resultobj; | |
16531 | fail: | |
16532 | return NULL; | |
16533 | } | |
16534 | ||
16535 | ||
16536 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16537 | PyObject *resultobj = 0; | |
16538 | int arg1 ; | |
16539 | wxString result; | |
16540 | int val1 ; | |
16541 | int ecode1 = 0 ; | |
16542 | PyObject * obj0 = 0 ; | |
16543 | char * kwnames[] = { | |
16544 | (char *) "lang", NULL | |
16545 | }; | |
16546 | ||
16547 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail; | |
16548 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16549 | if (!SWIG_IsOK(ecode1)) { | |
16550 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'"); | |
16551 | } | |
16552 | arg1 = static_cast< int >(val1); | |
16553 | { | |
16554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16555 | result = wxLocale::GetLanguageName(arg1); | |
16556 | wxPyEndAllowThreads(__tstate); | |
16557 | if (PyErr_Occurred()) SWIG_fail; | |
16558 | } | |
16559 | { | |
16560 | #if wxUSE_UNICODE | |
16561 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16562 | #else | |
16563 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16564 | #endif | |
16565 | } | |
16566 | return resultobj; | |
16567 | fail: | |
16568 | return NULL; | |
d14a1e28 RD |
16569 | } |
16570 | ||
16571 | ||
0085ce49 RD |
16572 | SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16573 | PyObject *resultobj = 0; | |
16574 | wxString *arg1 = 0 ; | |
16575 | wxLanguageInfo *result = 0 ; | |
16576 | bool temp1 = false ; | |
16577 | PyObject * obj0 = 0 ; | |
16578 | char * kwnames[] = { | |
16579 | (char *) "locale", NULL | |
16580 | }; | |
16581 | ||
16582 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
16583 | { | |
16584 | arg1 = wxString_in_helper(obj0); | |
16585 | if (arg1 == NULL) SWIG_fail; | |
16586 | temp1 = true; | |
16587 | } | |
16588 | { | |
16589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 RD |
16590 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); |
16591 | wxPyEndAllowThreads(__tstate); | |
16592 | if (PyErr_Occurred()) SWIG_fail; | |
16593 | } | |
16594 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16595 | { | |
16596 | if (temp1) | |
16597 | delete arg1; | |
16598 | } | |
16599 | return resultobj; | |
16600 | fail: | |
16601 | { | |
16602 | if (temp1) | |
16603 | delete arg1; | |
16604 | } | |
16605 | return NULL; | |
16606 | } | |
16607 | ||
16608 | ||
16609 | SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16610 | PyObject *resultobj = 0; | |
16611 | wxLanguageInfo *arg1 = 0 ; | |
16612 | void *argp1 = 0 ; | |
16613 | int res1 = 0 ; | |
16614 | PyObject * obj0 = 0 ; | |
16615 | char * kwnames[] = { | |
16616 | (char *) "info", NULL | |
16617 | }; | |
16618 | ||
16619 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail; | |
16620 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0); | |
16621 | if (!SWIG_IsOK(res1)) { | |
16622 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
16623 | } | |
16624 | if (!argp1) { | |
16625 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
16626 | } | |
16627 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16628 | { | |
16629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16630 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
16631 | wxPyEndAllowThreads(__tstate); | |
16632 | if (PyErr_Occurred()) SWIG_fail; | |
16633 | } | |
16634 | resultobj = SWIG_Py_Void(); | |
16635 | return resultobj; | |
16636 | fail: | |
16637 | return NULL; | |
16638 | } | |
16639 | ||
16640 | ||
16641 | SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16642 | PyObject *resultobj = 0; | |
16643 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16644 | wxString *arg2 = 0 ; | |
16645 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16646 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16647 | wxString result; | |
16648 | void *argp1 = 0 ; | |
16649 | int res1 = 0 ; | |
16650 | bool temp2 = false ; | |
16651 | bool temp3 = false ; | |
16652 | PyObject * obj0 = 0 ; | |
16653 | PyObject * obj1 = 0 ; | |
16654 | PyObject * obj2 = 0 ; | |
16655 | char * kwnames[] = { | |
16656 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
16657 | }; | |
16658 | ||
16659 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16660 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16661 | if (!SWIG_IsOK(res1)) { | |
16662 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16663 | } | |
16664 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16665 | { | |
16666 | arg2 = wxString_in_helper(obj1); | |
16667 | if (arg2 == NULL) SWIG_fail; | |
16668 | temp2 = true; | |
16669 | } | |
16670 | if (obj2) { | |
16671 | { | |
16672 | arg3 = wxString_in_helper(obj2); | |
16673 | if (arg3 == NULL) SWIG_fail; | |
16674 | temp3 = true; | |
16675 | } | |
16676 | } | |
16677 | { | |
16678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16679 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
16680 | wxPyEndAllowThreads(__tstate); | |
16681 | if (PyErr_Occurred()) SWIG_fail; | |
16682 | } | |
16683 | { | |
16684 | #if wxUSE_UNICODE | |
16685 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16686 | #else | |
16687 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16688 | #endif | |
16689 | } | |
16690 | { | |
16691 | if (temp2) | |
16692 | delete arg2; | |
16693 | } | |
16694 | { | |
16695 | if (temp3) | |
16696 | delete arg3; | |
16697 | } | |
16698 | return resultobj; | |
16699 | fail: | |
16700 | { | |
16701 | if (temp2) | |
16702 | delete arg2; | |
16703 | } | |
16704 | { | |
16705 | if (temp3) | |
16706 | delete arg3; | |
16707 | } | |
16708 | return NULL; | |
16709 | } | |
16710 | ||
16711 | ||
16712 | SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16713 | PyObject *resultobj = 0; | |
16714 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16715 | wxString *result = 0 ; | |
16716 | void *argp1 = 0 ; | |
16717 | int res1 = 0 ; | |
16718 | PyObject *swig_obj[1] ; | |
16719 | ||
16720 | if (!args) SWIG_fail; | |
16721 | swig_obj[0] = args; | |
16722 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16723 | if (!SWIG_IsOK(res1)) { | |
16724 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16725 | } | |
16726 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16727 | { | |
16728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16729 | { | |
16730 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
16731 | result = (wxString *) &_result_ref; | |
16732 | } | |
16733 | wxPyEndAllowThreads(__tstate); | |
16734 | if (PyErr_Occurred()) SWIG_fail; | |
16735 | } | |
16736 | { | |
16737 | #if wxUSE_UNICODE | |
16738 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16739 | #else | |
16740 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16741 | #endif | |
16742 | } | |
16743 | return resultobj; | |
16744 | fail: | |
16745 | return NULL; | |
16746 | } | |
16747 | ||
16748 | ||
16749 | SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16750 | PyObject *obj; | |
16751 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16752 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj)); | |
16753 | return SWIG_Py_Void(); | |
16754 | } | |
16755 | ||
16756 | SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16757 | return SWIG_Python_InitShadowInstance(args); | |
16758 | } | |
16759 | ||
16760 | SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16761 | PyObject *resultobj = 0; | |
16762 | int arg1 = (int) -1 ; | |
16763 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
16764 | wxPyLocale *result = 0 ; | |
16765 | int val1 ; | |
16766 | int ecode1 = 0 ; | |
16767 | int val2 ; | |
16768 | int ecode2 = 0 ; | |
16769 | PyObject * obj0 = 0 ; | |
16770 | PyObject * obj1 = 0 ; | |
16771 | char * kwnames[] = { | |
16772 | (char *) "language",(char *) "flags", NULL | |
16773 | }; | |
16774 | ||
16775 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail; | |
16776 | if (obj0) { | |
16777 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16778 | if (!SWIG_IsOK(ecode1)) { | |
16779 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'"); | |
16780 | } | |
16781 | arg1 = static_cast< int >(val1); | |
16782 | } | |
16783 | if (obj1) { | |
16784 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16785 | if (!SWIG_IsOK(ecode2)) { | |
16786 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'"); | |
16787 | } | |
16788 | arg2 = static_cast< int >(val2); | |
16789 | } | |
16790 | { | |
16791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16792 | result = (wxPyLocale *)new_wxPyLocale(arg1,arg2); | |
16793 | wxPyEndAllowThreads(__tstate); | |
16794 | if (PyErr_Occurred()) SWIG_fail; | |
16795 | } | |
16796 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 ); | |
16797 | return resultobj; | |
16798 | fail: | |
16799 | return NULL; | |
16800 | } | |
16801 | ||
16802 | ||
16803 | SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16804 | PyObject *resultobj = 0; | |
16805 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; | |
16806 | void *argp1 = 0 ; | |
16807 | int res1 = 0 ; | |
16808 | PyObject *swig_obj[1] ; | |
16809 | ||
16810 | if (!args) SWIG_fail; | |
16811 | swig_obj[0] = args; | |
16812 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 ); | |
16813 | if (!SWIG_IsOK(res1)) { | |
16814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'"); | |
16815 | } | |
16816 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); | |
16817 | { | |
16818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16819 | delete arg1; | |
16820 | ||
0085ce49 RD |
16821 | wxPyEndAllowThreads(__tstate); |
16822 | if (PyErr_Occurred()) SWIG_fail; | |
16823 | } | |
fc46b7f3 | 16824 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
16825 | return resultobj; |
16826 | fail: | |
0085ce49 | 16827 | return NULL; |
d14a1e28 RD |
16828 | } |
16829 | ||
16830 | ||
fc46b7f3 | 16831 | SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 16832 | PyObject *resultobj = 0; |
fc46b7f3 RD |
16833 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
16834 | PyObject *arg2 = (PyObject *) 0 ; | |
16835 | PyObject *arg3 = (PyObject *) 0 ; | |
0085ce49 RD |
16836 | void *argp1 = 0 ; |
16837 | int res1 = 0 ; | |
16838 | PyObject * obj0 = 0 ; | |
fc46b7f3 RD |
16839 | PyObject * obj1 = 0 ; |
16840 | PyObject * obj2 = 0 ; | |
0085ce49 | 16841 | char * kwnames[] = { |
fc46b7f3 | 16842 | (char *) "self",(char *) "self",(char *) "_class", NULL |
0085ce49 RD |
16843 | }; |
16844 | ||
fc46b7f3 RD |
16845 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
16846 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
0085ce49 | 16847 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 16848 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'"); |
0085ce49 | 16849 | } |
fc46b7f3 RD |
16850 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); |
16851 | arg2 = obj1; | |
16852 | arg3 = obj2; | |
0085ce49 RD |
16853 | { |
16854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 16855 | (arg1)->_setCallbackInfo(arg2,arg3); |
0085ce49 RD |
16856 | wxPyEndAllowThreads(__tstate); |
16857 | if (PyErr_Occurred()) SWIG_fail; | |
16858 | } | |
16859 | resultobj = SWIG_Py_Void(); | |
16860 | return resultobj; | |
16861 | fail: | |
16862 | return NULL; | |
16863 | } | |
16864 | ||
16865 | ||
fc46b7f3 | 16866 | SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 16867 | PyObject *resultobj = 0; |
fc46b7f3 RD |
16868 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
16869 | wxChar *arg2 = (wxChar *) 0 ; | |
16870 | wxChar *arg3 = (wxChar *) NULL ; | |
16871 | wxChar *result = 0 ; | |
0085ce49 RD |
16872 | void *argp1 = 0 ; |
16873 | int res1 = 0 ; | |
fc46b7f3 RD |
16874 | void *argp2 = 0 ; |
16875 | int res2 = 0 ; | |
16876 | void *argp3 = 0 ; | |
16877 | int res3 = 0 ; | |
0085ce49 RD |
16878 | PyObject * obj0 = 0 ; |
16879 | PyObject * obj1 = 0 ; | |
16880 | PyObject * obj2 = 0 ; | |
16881 | char * kwnames[] = { | |
16882 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
16883 | }; | |
16884 | ||
fc46b7f3 RD |
16885 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
16886 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
0085ce49 | 16887 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 16888 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'"); |
0085ce49 | 16889 | } |
fc46b7f3 RD |
16890 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); |
16891 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 ); | |
16892 | if (!SWIG_IsOK(res2)) { | |
16893 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'"); | |
0085ce49 | 16894 | } |
fc46b7f3 | 16895 | arg2 = reinterpret_cast< wxChar * >(argp2); |
0085ce49 | 16896 | if (obj2) { |
fc46b7f3 RD |
16897 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 ); |
16898 | if (!SWIG_IsOK(res3)) { | |
16899 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'"); | |
b6294124 | 16900 | } |
fc46b7f3 | 16901 | arg3 = reinterpret_cast< wxChar * >(argp3); |
0085ce49 RD |
16902 | } |
16903 | { | |
16904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 16905 | result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3); |
0085ce49 RD |
16906 | wxPyEndAllowThreads(__tstate); |
16907 | if (PyErr_Occurred()) SWIG_fail; | |
16908 | } | |
fc46b7f3 | 16909 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 ); |
0085ce49 RD |
16910 | return resultobj; |
16911 | fail: | |
0085ce49 | 16912 | return NULL; |
b6294124 RD |
16913 | } |
16914 | ||
16915 | ||
fc46b7f3 | 16916 | SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 16917 | PyObject *resultobj = 0; |
fc46b7f3 RD |
16918 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
16919 | wxChar *arg2 = (wxChar *) 0 ; | |
16920 | wxChar *arg3 = (wxChar *) 0 ; | |
16921 | size_t arg4 ; | |
16922 | wxChar *arg5 = (wxChar *) NULL ; | |
16923 | wxChar *result = 0 ; | |
0085ce49 RD |
16924 | void *argp1 = 0 ; |
16925 | int res1 = 0 ; | |
fc46b7f3 RD |
16926 | void *argp2 = 0 ; |
16927 | int res2 = 0 ; | |
16928 | void *argp3 = 0 ; | |
16929 | int res3 = 0 ; | |
16930 | size_t val4 ; | |
16931 | int ecode4 = 0 ; | |
16932 | void *argp5 = 0 ; | |
16933 | int res5 = 0 ; | |
16934 | PyObject * obj0 = 0 ; | |
16935 | PyObject * obj1 = 0 ; | |
16936 | PyObject * obj2 = 0 ; | |
16937 | PyObject * obj3 = 0 ; | |
16938 | PyObject * obj4 = 0 ; | |
16939 | char * kwnames[] = { | |
16940 | (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL | |
16941 | }; | |
0085ce49 | 16942 | |
fc46b7f3 RD |
16943 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
16944 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
0085ce49 | 16945 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 RD |
16946 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'"); |
16947 | } | |
16948 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); | |
16949 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 ); | |
16950 | if (!SWIG_IsOK(res2)) { | |
16951 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'"); | |
16952 | } | |
16953 | arg2 = reinterpret_cast< wxChar * >(argp2); | |
16954 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 ); | |
16955 | if (!SWIG_IsOK(res3)) { | |
16956 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'"); | |
16957 | } | |
16958 | arg3 = reinterpret_cast< wxChar * >(argp3); | |
16959 | ecode4 = SWIG_AsVal_size_t(obj3, &val4); | |
16960 | if (!SWIG_IsOK(ecode4)) { | |
16961 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'"); | |
16962 | } | |
16963 | arg4 = static_cast< size_t >(val4); | |
16964 | if (obj4) { | |
16965 | res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 ); | |
16966 | if (!SWIG_IsOK(res5)) { | |
16967 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'"); | |
16968 | } | |
16969 | arg5 = reinterpret_cast< wxChar * >(argp5); | |
0085ce49 | 16970 | } |
0085ce49 RD |
16971 | { |
16972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 16973 | result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5); |
0085ce49 RD |
16974 | wxPyEndAllowThreads(__tstate); |
16975 | if (PyErr_Occurred()) SWIG_fail; | |
16976 | } | |
fc46b7f3 | 16977 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 ); |
0085ce49 RD |
16978 | return resultobj; |
16979 | fail: | |
16980 | return NULL; | |
d14a1e28 RD |
16981 | } |
16982 | ||
16983 | ||
fc46b7f3 | 16984 | SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
16985 | PyObject *obj; |
16986 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
fc46b7f3 | 16987 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj)); |
0085ce49 | 16988 | return SWIG_Py_Void(); |
d14a1e28 RD |
16989 | } |
16990 | ||
fc46b7f3 | 16991 | SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
16992 | return SWIG_Python_InitShadowInstance(args); |
16993 | } | |
d14a1e28 | 16994 | |
0085ce49 RD |
16995 | SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16996 | PyObject *resultobj = 0; | |
16997 | wxLocale *result = 0 ; | |
16998 | ||
16999 | if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail; | |
17000 | { | |
17001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17002 | result = (wxLocale *)wxGetLocale(); | |
17003 | wxPyEndAllowThreads(__tstate); | |
17004 | if (PyErr_Occurred()) SWIG_fail; | |
17005 | } | |
17006 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 ); | |
17007 | return resultobj; | |
17008 | fail: | |
17009 | return NULL; | |
d14a1e28 RD |
17010 | } |
17011 | ||
17012 | ||
0085ce49 RD |
17013 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
17014 | PyObject *resultobj = 0; | |
17015 | wxString *arg1 = 0 ; | |
17016 | wxString result; | |
17017 | bool temp1 = false ; | |
17018 | ||
17019 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
17020 | { | |
17021 | arg1 = wxString_in_helper(swig_obj[0]); | |
17022 | if (arg1 == NULL) SWIG_fail; | |
17023 | temp1 = true; | |
17024 | } | |
17025 | { | |
17026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17027 | result = wxGetTranslation((wxString const &)*arg1); | |
17028 | wxPyEndAllowThreads(__tstate); | |
17029 | if (PyErr_Occurred()) SWIG_fail; | |
17030 | } | |
17031 | { | |
093d3ff1 | 17032 | #if wxUSE_UNICODE |
0085ce49 | 17033 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 17034 | #else |
0085ce49 | 17035 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 17036 | #endif |
0085ce49 RD |
17037 | } |
17038 | { | |
17039 | if (temp1) | |
17040 | delete arg1; | |
17041 | } | |
17042 | return resultobj; | |
17043 | fail: | |
17044 | { | |
17045 | if (temp1) | |
17046 | delete arg1; | |
17047 | } | |
17048 | return NULL; | |
b6294124 RD |
17049 | } |
17050 | ||
17051 | ||
0085ce49 | 17052 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
fc46b7f3 RD |
17053 | PyObject *resultobj = 0; |
17054 | wxString *arg1 = 0 ; | |
17055 | wxString *arg2 = 0 ; | |
17056 | wxString result; | |
17057 | bool temp1 = false ; | |
17058 | bool temp2 = false ; | |
17059 | ||
17060 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
17061 | { | |
17062 | arg1 = wxString_in_helper(swig_obj[0]); | |
17063 | if (arg1 == NULL) SWIG_fail; | |
17064 | temp1 = true; | |
17065 | } | |
17066 | { | |
17067 | arg2 = wxString_in_helper(swig_obj[1]); | |
17068 | if (arg2 == NULL) SWIG_fail; | |
17069 | temp2 = true; | |
17070 | } | |
17071 | { | |
17072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17073 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2); | |
17074 | wxPyEndAllowThreads(__tstate); | |
17075 | if (PyErr_Occurred()) SWIG_fail; | |
17076 | } | |
17077 | { | |
17078 | #if wxUSE_UNICODE | |
17079 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17080 | #else | |
17081 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17082 | #endif | |
17083 | } | |
17084 | { | |
17085 | if (temp1) | |
17086 | delete arg1; | |
17087 | } | |
17088 | { | |
17089 | if (temp2) | |
17090 | delete arg2; | |
17091 | } | |
17092 | return resultobj; | |
17093 | fail: | |
17094 | { | |
17095 | if (temp1) | |
17096 | delete arg1; | |
17097 | } | |
17098 | { | |
17099 | if (temp2) | |
17100 | delete arg2; | |
17101 | } | |
17102 | return NULL; | |
17103 | } | |
17104 | ||
17105 | ||
17106 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
0085ce49 RD |
17107 | PyObject *resultobj = 0; |
17108 | wxString *arg1 = 0 ; | |
17109 | wxString *arg2 = 0 ; | |
17110 | size_t arg3 ; | |
17111 | wxString result; | |
17112 | bool temp1 = false ; | |
17113 | bool temp2 = false ; | |
17114 | size_t val3 ; | |
17115 | int ecode3 = 0 ; | |
17116 | ||
17117 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
17118 | { | |
17119 | arg1 = wxString_in_helper(swig_obj[0]); | |
17120 | if (arg1 == NULL) SWIG_fail; | |
17121 | temp1 = true; | |
17122 | } | |
17123 | { | |
17124 | arg2 = wxString_in_helper(swig_obj[1]); | |
17125 | if (arg2 == NULL) SWIG_fail; | |
17126 | temp2 = true; | |
17127 | } | |
17128 | ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); | |
17129 | if (!SWIG_IsOK(ecode3)) { | |
17130 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'"); | |
17131 | } | |
17132 | arg3 = static_cast< size_t >(val3); | |
17133 | { | |
17134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17135 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
17136 | wxPyEndAllowThreads(__tstate); | |
17137 | if (PyErr_Occurred()) SWIG_fail; | |
17138 | } | |
17139 | { | |
17140 | #if wxUSE_UNICODE | |
17141 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17142 | #else | |
17143 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17144 | #endif | |
17145 | } | |
17146 | { | |
17147 | if (temp1) | |
17148 | delete arg1; | |
17149 | } | |
17150 | { | |
17151 | if (temp2) | |
17152 | delete arg2; | |
17153 | } | |
17154 | return resultobj; | |
17155 | fail: | |
17156 | { | |
17157 | if (temp1) | |
17158 | delete arg1; | |
17159 | } | |
17160 | { | |
17161 | if (temp2) | |
17162 | delete arg2; | |
17163 | } | |
17164 | return NULL; | |
d14a1e28 RD |
17165 | } |
17166 | ||
17167 | ||
fc46b7f3 RD |
17168 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
17169 | PyObject *resultobj = 0; | |
17170 | wxString *arg1 = 0 ; | |
17171 | wxString *arg2 = 0 ; | |
17172 | size_t arg3 ; | |
17173 | wxString *arg4 = 0 ; | |
17174 | wxString result; | |
17175 | bool temp1 = false ; | |
17176 | bool temp2 = false ; | |
17177 | size_t val3 ; | |
17178 | int ecode3 = 0 ; | |
17179 | bool temp4 = false ; | |
17180 | ||
17181 | if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; | |
17182 | { | |
17183 | arg1 = wxString_in_helper(swig_obj[0]); | |
17184 | if (arg1 == NULL) SWIG_fail; | |
17185 | temp1 = true; | |
17186 | } | |
17187 | { | |
17188 | arg2 = wxString_in_helper(swig_obj[1]); | |
17189 | if (arg2 == NULL) SWIG_fail; | |
17190 | temp2 = true; | |
17191 | } | |
17192 | ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); | |
17193 | if (!SWIG_IsOK(ecode3)) { | |
17194 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'"); | |
17195 | } | |
17196 | arg3 = static_cast< size_t >(val3); | |
17197 | { | |
17198 | arg4 = wxString_in_helper(swig_obj[3]); | |
17199 | if (arg4 == NULL) SWIG_fail; | |
17200 | temp4 = true; | |
17201 | } | |
17202 | { | |
17203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17204 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4); | |
17205 | wxPyEndAllowThreads(__tstate); | |
17206 | if (PyErr_Occurred()) SWIG_fail; | |
17207 | } | |
17208 | { | |
17209 | #if wxUSE_UNICODE | |
17210 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17211 | #else | |
17212 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17213 | #endif | |
17214 | } | |
17215 | { | |
17216 | if (temp1) | |
17217 | delete arg1; | |
17218 | } | |
17219 | { | |
17220 | if (temp2) | |
17221 | delete arg2; | |
17222 | } | |
17223 | { | |
17224 | if (temp4) | |
17225 | delete arg4; | |
17226 | } | |
17227 | return resultobj; | |
17228 | fail: | |
17229 | { | |
17230 | if (temp1) | |
17231 | delete arg1; | |
17232 | } | |
17233 | { | |
17234 | if (temp2) | |
17235 | delete arg2; | |
17236 | } | |
17237 | { | |
17238 | if (temp4) | |
17239 | delete arg4; | |
17240 | } | |
17241 | return NULL; | |
17242 | } | |
17243 | ||
17244 | ||
0085ce49 RD |
17245 | SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { |
17246 | int argc; | |
fc46b7f3 | 17247 | PyObject *argv[5]; |
0085ce49 | 17248 | |
fc46b7f3 | 17249 | if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail; |
0085ce49 RD |
17250 | --argc; |
17251 | if (argc == 1) { | |
17252 | return _wrap_GetTranslation__SWIG_0(self, argc, argv); | |
17253 | } | |
fc46b7f3 | 17254 | if (argc == 2) { |
0085ce49 RD |
17255 | return _wrap_GetTranslation__SWIG_1(self, argc, argv); |
17256 | } | |
fc46b7f3 RD |
17257 | if (argc == 3) { |
17258 | return _wrap_GetTranslation__SWIG_2(self, argc, argv); | |
17259 | } | |
17260 | if (argc == 4) { | |
17261 | return _wrap_GetTranslation__SWIG_3(self, argc, argv); | |
17262 | } | |
0085ce49 RD |
17263 | |
17264 | fail: | |
17265 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'"); | |
17266 | return NULL; | |
d14a1e28 RD |
17267 | } |
17268 | ||
17269 | ||
0085ce49 RD |
17270 | SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17271 | PyObject *resultobj = 0; | |
17272 | wxEncodingConverter *result = 0 ; | |
17273 | ||
17274 | if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail; | |
17275 | { | |
17276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17277 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
17278 | wxPyEndAllowThreads(__tstate); | |
17279 | if (PyErr_Occurred()) SWIG_fail; | |
17280 | } | |
17281 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 ); | |
17282 | return resultobj; | |
17283 | fail: | |
17284 | return NULL; | |
d14a1e28 RD |
17285 | } |
17286 | ||
17287 | ||
0085ce49 RD |
17288 | SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17289 | PyObject *resultobj = 0; | |
17290 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17291 | void *argp1 = 0 ; | |
17292 | int res1 = 0 ; | |
17293 | PyObject *swig_obj[1] ; | |
17294 | ||
17295 | if (!args) SWIG_fail; | |
17296 | swig_obj[0] = args; | |
17297 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 ); | |
17298 | if (!SWIG_IsOK(res1)) { | |
17299 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
17300 | } | |
17301 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
17302 | { | |
17303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17304 | delete arg1; | |
d14a1e28 | 17305 | |
0085ce49 RD |
17306 | wxPyEndAllowThreads(__tstate); |
17307 | if (PyErr_Occurred()) SWIG_fail; | |
17308 | } | |
17309 | resultobj = SWIG_Py_Void(); | |
17310 | return resultobj; | |
17311 | fail: | |
17312 | return NULL; | |
17313 | } | |
17314 | ||
17315 | ||
17316 | SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17317 | PyObject *resultobj = 0; | |
17318 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17319 | wxFontEncoding arg2 ; | |
17320 | wxFontEncoding arg3 ; | |
17321 | int arg4 = (int) wxCONVERT_STRICT ; | |
17322 | bool result; | |
17323 | void *argp1 = 0 ; | |
17324 | int res1 = 0 ; | |
17325 | int val2 ; | |
17326 | int ecode2 = 0 ; | |
17327 | int val3 ; | |
17328 | int ecode3 = 0 ; | |
17329 | int val4 ; | |
17330 | int ecode4 = 0 ; | |
17331 | PyObject * obj0 = 0 ; | |
17332 | PyObject * obj1 = 0 ; | |
17333 | PyObject * obj2 = 0 ; | |
17334 | PyObject * obj3 = 0 ; | |
17335 | char * kwnames[] = { | |
17336 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
17337 | }; | |
17338 | ||
17339 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
17340 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
17341 | if (!SWIG_IsOK(res1)) { | |
17342 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
17343 | } | |
17344 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
17345 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17346 | if (!SWIG_IsOK(ecode2)) { | |
17347 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
17348 | } | |
17349 | arg2 = static_cast< wxFontEncoding >(val2); | |
17350 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17351 | if (!SWIG_IsOK(ecode3)) { | |
17352 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'"); | |
17353 | } | |
17354 | arg3 = static_cast< wxFontEncoding >(val3); | |
17355 | if (obj3) { | |
17356 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17357 | if (!SWIG_IsOK(ecode4)) { | |
17358 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'"); | |
17359 | } | |
17360 | arg4 = static_cast< int >(val4); | |
17361 | } | |
17362 | { | |
17363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17364 | result = (bool)(arg1)->Init(arg2,arg3,arg4); | |
17365 | wxPyEndAllowThreads(__tstate); | |
17366 | if (PyErr_Occurred()) SWIG_fail; | |
17367 | } | |
17368 | { | |
17369 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17370 | } | |
17371 | return resultobj; | |
17372 | fail: | |
17373 | return NULL; | |
17374 | } | |
17375 | ||
17376 | ||
17377 | SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17378 | PyObject *resultobj = 0; | |
17379 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17380 | wxString *arg2 = 0 ; | |
17381 | wxString result; | |
17382 | void *argp1 = 0 ; | |
17383 | int res1 = 0 ; | |
17384 | bool temp2 = false ; | |
17385 | PyObject * obj0 = 0 ; | |
17386 | PyObject * obj1 = 0 ; | |
17387 | char * kwnames[] = { | |
17388 | (char *) "self",(char *) "input", NULL | |
17389 | }; | |
17390 | ||
17391 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail; | |
17392 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
17393 | if (!SWIG_IsOK(res1)) { | |
17394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
17395 | } | |
17396 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
17397 | { | |
17398 | arg2 = wxString_in_helper(obj1); | |
17399 | if (arg2 == NULL) SWIG_fail; | |
17400 | temp2 = true; | |
17401 | } | |
17402 | { | |
17403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17404 | result = (arg1)->Convert((wxString const &)*arg2); | |
17405 | wxPyEndAllowThreads(__tstate); | |
17406 | if (PyErr_Occurred()) SWIG_fail; | |
17407 | } | |
17408 | { | |
17409 | #if wxUSE_UNICODE | |
17410 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17411 | #else | |
17412 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17413 | #endif | |
17414 | } | |
17415 | { | |
17416 | if (temp2) | |
17417 | delete arg2; | |
17418 | } | |
17419 | return resultobj; | |
17420 | fail: | |
17421 | { | |
17422 | if (temp2) | |
17423 | delete arg2; | |
17424 | } | |
17425 | return NULL; | |
17426 | } | |
17427 | ||
17428 | ||
17429 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17430 | PyObject *resultobj = 0; | |
17431 | wxFontEncoding arg1 ; | |
17432 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
17433 | wxFontEncodingArray result; | |
17434 | int val1 ; | |
17435 | int ecode1 = 0 ; | |
17436 | int val2 ; | |
17437 | int ecode2 = 0 ; | |
17438 | PyObject * obj0 = 0 ; | |
17439 | PyObject * obj1 = 0 ; | |
17440 | char * kwnames[] = { | |
17441 | (char *) "enc",(char *) "platform", NULL | |
17442 | }; | |
17443 | ||
17444 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail; | |
17445 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17446 | if (!SWIG_IsOK(ecode1)) { | |
17447 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
17448 | } | |
17449 | arg1 = static_cast< wxFontEncoding >(val1); | |
17450 | if (obj1) { | |
17451 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17452 | if (!SWIG_IsOK(ecode2)) { | |
17453 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'"); | |
17454 | } | |
17455 | arg2 = static_cast< int >(val2); | |
17456 | } | |
17457 | { | |
17458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17459 | result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2); | |
17460 | wxPyEndAllowThreads(__tstate); | |
17461 | if (PyErr_Occurred()) SWIG_fail; | |
17462 | } | |
17463 | { | |
17464 | resultobj = PyList_New(0); | |
17465 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
17466 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
17467 | PyList_Append(resultobj, number); | |
17468 | Py_DECREF(number); | |
093d3ff1 | 17469 | } |
0085ce49 RD |
17470 | } |
17471 | return resultobj; | |
17472 | fail: | |
17473 | return NULL; | |
d14a1e28 RD |
17474 | } |
17475 | ||
17476 | ||
0085ce49 RD |
17477 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17478 | PyObject *resultobj = 0; | |
17479 | wxFontEncoding arg1 ; | |
17480 | wxFontEncodingArray result; | |
17481 | int val1 ; | |
17482 | int ecode1 = 0 ; | |
17483 | PyObject * obj0 = 0 ; | |
17484 | char * kwnames[] = { | |
17485 | (char *) "enc", NULL | |
17486 | }; | |
17487 | ||
17488 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail; | |
17489 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17490 | if (!SWIG_IsOK(ecode1)) { | |
17491 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
17492 | } | |
17493 | arg1 = static_cast< wxFontEncoding >(val1); | |
17494 | { | |
17495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17496 | result = wxEncodingConverter::GetAllEquivalents(arg1); | |
17497 | wxPyEndAllowThreads(__tstate); | |
17498 | if (PyErr_Occurred()) SWIG_fail; | |
17499 | } | |
17500 | { | |
17501 | resultobj = PyList_New(0); | |
17502 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
17503 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
17504 | PyList_Append(resultobj, number); | |
17505 | Py_DECREF(number); | |
093d3ff1 | 17506 | } |
0085ce49 RD |
17507 | } |
17508 | return resultobj; | |
17509 | fail: | |
17510 | return NULL; | |
17511 | } | |
17512 | ||
17513 | ||
17514 | SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17515 | PyObject *resultobj = 0; | |
17516 | wxFontEncoding arg1 ; | |
17517 | wxFontEncoding arg2 ; | |
17518 | bool result; | |
17519 | int val1 ; | |
17520 | int ecode1 = 0 ; | |
17521 | int val2 ; | |
17522 | int ecode2 = 0 ; | |
17523 | PyObject * obj0 = 0 ; | |
17524 | PyObject * obj1 = 0 ; | |
17525 | char * kwnames[] = { | |
17526 | (char *) "encIn",(char *) "encOut", NULL | |
17527 | }; | |
17528 | ||
17529 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail; | |
17530 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17531 | if (!SWIG_IsOK(ecode1)) { | |
17532 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
17533 | } | |
17534 | arg1 = static_cast< wxFontEncoding >(val1); | |
17535 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17536 | if (!SWIG_IsOK(ecode2)) { | |
17537 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
17538 | } | |
17539 | arg2 = static_cast< wxFontEncoding >(val2); | |
17540 | { | |
17541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17542 | result = (bool)wxEncodingConverter::CanConvert(arg1,arg2); | |
17543 | wxPyEndAllowThreads(__tstate); | |
17544 | if (PyErr_Occurred()) SWIG_fail; | |
17545 | } | |
17546 | { | |
17547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17548 | } | |
17549 | return resultobj; | |
17550 | fail: | |
17551 | return NULL; | |
d14a1e28 RD |
17552 | } |
17553 | ||
17554 | ||
0085ce49 RD |
17555 | SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17556 | PyObject *obj; | |
17557 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17558 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj)); | |
17559 | return SWIG_Py_Void(); | |
d14a1e28 RD |
17560 | } |
17561 | ||
0085ce49 RD |
17562 | SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17563 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
17564 | } |
17565 | ||
0085ce49 RD |
17566 | SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17567 | PyObject *resultobj = 0; | |
17568 | wxDC *arg1 = (wxDC *) 0 ; | |
17569 | void *argp1 = 0 ; | |
17570 | int res1 = 0 ; | |
17571 | PyObject *swig_obj[1] ; | |
17572 | ||
17573 | if (!args) SWIG_fail; | |
17574 | swig_obj[0] = args; | |
17575 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 ); | |
17576 | if (!SWIG_IsOK(res1)) { | |
17577 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17578 | } | |
17579 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17580 | { | |
17581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17582 | delete arg1; | |
d14a1e28 | 17583 | |
0085ce49 RD |
17584 | wxPyEndAllowThreads(__tstate); |
17585 | if (PyErr_Occurred()) SWIG_fail; | |
17586 | } | |
17587 | resultobj = SWIG_Py_Void(); | |
17588 | return resultobj; | |
17589 | fail: | |
17590 | return NULL; | |
17591 | } | |
17592 | ||
17593 | ||
17594 | SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17595 | PyObject *resultobj = 0; | |
17596 | wxDC *arg1 = (wxDC *) 0 ; | |
17597 | int arg2 ; | |
17598 | int arg3 ; | |
17599 | wxColour *arg4 = 0 ; | |
17600 | int arg5 = (int) wxFLOOD_SURFACE ; | |
17601 | bool result; | |
17602 | void *argp1 = 0 ; | |
17603 | int res1 = 0 ; | |
17604 | int val2 ; | |
17605 | int ecode2 = 0 ; | |
17606 | int val3 ; | |
17607 | int ecode3 = 0 ; | |
17608 | wxColour temp4 ; | |
17609 | int val5 ; | |
17610 | int ecode5 = 0 ; | |
17611 | PyObject * obj0 = 0 ; | |
17612 | PyObject * obj1 = 0 ; | |
17613 | PyObject * obj2 = 0 ; | |
17614 | PyObject * obj3 = 0 ; | |
17615 | PyObject * obj4 = 0 ; | |
17616 | char * kwnames[] = { | |
17617 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
17618 | }; | |
17619 | ||
17620 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17621 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17622 | if (!SWIG_IsOK(res1)) { | |
17623 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17624 | } | |
17625 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17626 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17627 | if (!SWIG_IsOK(ecode2)) { | |
17628 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
17629 | } | |
17630 | arg2 = static_cast< int >(val2); | |
17631 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17632 | if (!SWIG_IsOK(ecode3)) { | |
17633 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
17634 | } | |
17635 | arg3 = static_cast< int >(val3); | |
17636 | { | |
17637 | arg4 = &temp4; | |
17638 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17639 | } | |
17640 | if (obj4) { | |
17641 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17642 | if (!SWIG_IsOK(ecode5)) { | |
17643 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
17644 | } | |
17645 | arg5 = static_cast< int >(val5); | |
17646 | } | |
17647 | { | |
17648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17649 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
17650 | wxPyEndAllowThreads(__tstate); | |
17651 | if (PyErr_Occurred()) SWIG_fail; | |
17652 | } | |
17653 | { | |
17654 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17655 | } | |
17656 | return resultobj; | |
17657 | fail: | |
17658 | return NULL; | |
17659 | } | |
17660 | ||
17661 | ||
17662 | SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17663 | PyObject *resultobj = 0; | |
17664 | wxDC *arg1 = (wxDC *) 0 ; | |
17665 | wxPoint *arg2 = 0 ; | |
17666 | wxColour *arg3 = 0 ; | |
17667 | int arg4 = (int) wxFLOOD_SURFACE ; | |
17668 | bool result; | |
17669 | void *argp1 = 0 ; | |
17670 | int res1 = 0 ; | |
17671 | wxPoint temp2 ; | |
17672 | wxColour temp3 ; | |
17673 | int val4 ; | |
17674 | int ecode4 = 0 ; | |
17675 | PyObject * obj0 = 0 ; | |
17676 | PyObject * obj1 = 0 ; | |
17677 | PyObject * obj2 = 0 ; | |
17678 | PyObject * obj3 = 0 ; | |
17679 | char * kwnames[] = { | |
17680 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
17681 | }; | |
17682 | ||
17683 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
17684 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17685 | if (!SWIG_IsOK(res1)) { | |
17686 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17687 | } | |
17688 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17689 | { | |
17690 | arg2 = &temp2; | |
17691 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17692 | } | |
17693 | { | |
17694 | arg3 = &temp3; | |
17695 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17696 | } | |
17697 | if (obj3) { | |
17698 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17699 | if (!SWIG_IsOK(ecode4)) { | |
17700 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
17701 | } | |
17702 | arg4 = static_cast< int >(val4); | |
17703 | } | |
17704 | { | |
17705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17706 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
17707 | wxPyEndAllowThreads(__tstate); | |
17708 | if (PyErr_Occurred()) SWIG_fail; | |
17709 | } | |
17710 | { | |
17711 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17712 | } | |
17713 | return resultobj; | |
17714 | fail: | |
17715 | return NULL; | |
17716 | } | |
17717 | ||
17718 | ||
17719 | SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17720 | PyObject *resultobj = 0; | |
17721 | wxDC *arg1 = (wxDC *) 0 ; | |
17722 | wxRect *arg2 = 0 ; | |
17723 | wxColour *arg3 = 0 ; | |
17724 | wxColour *arg4 = 0 ; | |
17725 | wxPoint *arg5 = 0 ; | |
17726 | void *argp1 = 0 ; | |
17727 | int res1 = 0 ; | |
17728 | wxRect temp2 ; | |
17729 | wxColour temp3 ; | |
17730 | wxColour temp4 ; | |
17731 | wxPoint temp5 ; | |
17732 | PyObject * obj0 = 0 ; | |
17733 | PyObject * obj1 = 0 ; | |
17734 | PyObject * obj2 = 0 ; | |
17735 | PyObject * obj3 = 0 ; | |
17736 | PyObject * obj4 = 0 ; | |
17737 | char * kwnames[] = { | |
17738 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL | |
17739 | }; | |
17740 | ||
17741 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17742 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17743 | if (!SWIG_IsOK(res1)) { | |
17744 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17745 | } | |
17746 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17747 | { | |
17748 | arg2 = &temp2; | |
17749 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
17750 | } | |
17751 | { | |
17752 | arg3 = &temp3; | |
17753 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17754 | } | |
17755 | { | |
17756 | arg4 = &temp4; | |
17757 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17758 | } | |
17759 | { | |
17760 | arg5 = &temp5; | |
17761 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
17762 | } | |
17763 | { | |
17764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17765 | (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5); | |
17766 | wxPyEndAllowThreads(__tstate); | |
17767 | if (PyErr_Occurred()) SWIG_fail; | |
17768 | } | |
17769 | resultobj = SWIG_Py_Void(); | |
17770 | return resultobj; | |
17771 | fail: | |
17772 | return NULL; | |
17773 | } | |
17774 | ||
17775 | ||
17776 | SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17777 | PyObject *resultobj = 0; | |
17778 | wxDC *arg1 = (wxDC *) 0 ; | |
17779 | wxRect *arg2 = 0 ; | |
17780 | wxColour *arg3 = 0 ; | |
17781 | wxColour *arg4 = 0 ; | |
17782 | wxDirection arg5 = (wxDirection) wxEAST ; | |
17783 | void *argp1 = 0 ; | |
17784 | int res1 = 0 ; | |
17785 | wxRect temp2 ; | |
17786 | wxColour temp3 ; | |
17787 | wxColour temp4 ; | |
17788 | int val5 ; | |
17789 | int ecode5 = 0 ; | |
17790 | PyObject * obj0 = 0 ; | |
17791 | PyObject * obj1 = 0 ; | |
17792 | PyObject * obj2 = 0 ; | |
17793 | PyObject * obj3 = 0 ; | |
17794 | PyObject * obj4 = 0 ; | |
17795 | char * kwnames[] = { | |
17796 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL | |
17797 | }; | |
17798 | ||
17799 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17800 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17801 | if (!SWIG_IsOK(res1)) { | |
17802 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17803 | } | |
17804 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17805 | { | |
17806 | arg2 = &temp2; | |
17807 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
17808 | } | |
17809 | { | |
17810 | arg3 = &temp3; | |
17811 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17812 | } | |
17813 | { | |
17814 | arg4 = &temp4; | |
17815 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17816 | } | |
17817 | if (obj4) { | |
17818 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17819 | if (!SWIG_IsOK(ecode5)) { | |
17820 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'"); | |
17821 | } | |
17822 | arg5 = static_cast< wxDirection >(val5); | |
17823 | } | |
17824 | { | |
17825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17826 | (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5); | |
17827 | wxPyEndAllowThreads(__tstate); | |
17828 | if (PyErr_Occurred()) SWIG_fail; | |
17829 | } | |
17830 | resultobj = SWIG_Py_Void(); | |
17831 | return resultobj; | |
17832 | fail: | |
17833 | return NULL; | |
17834 | } | |
17835 | ||
17836 | ||
17837 | SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17838 | PyObject *resultobj = 0; | |
17839 | wxDC *arg1 = (wxDC *) 0 ; | |
17840 | int arg2 ; | |
17841 | int arg3 ; | |
17842 | wxColour result; | |
17843 | void *argp1 = 0 ; | |
17844 | int res1 = 0 ; | |
17845 | int val2 ; | |
17846 | int ecode2 = 0 ; | |
17847 | int val3 ; | |
17848 | int ecode3 = 0 ; | |
17849 | PyObject * obj0 = 0 ; | |
17850 | PyObject * obj1 = 0 ; | |
17851 | PyObject * obj2 = 0 ; | |
17852 | char * kwnames[] = { | |
17853 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17854 | }; | |
17855 | ||
17856 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17857 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17858 | if (!SWIG_IsOK(res1)) { | |
17859 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17860 | } | |
17861 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17862 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17863 | if (!SWIG_IsOK(ecode2)) { | |
17864 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'"); | |
17865 | } | |
17866 | arg2 = static_cast< int >(val2); | |
17867 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17868 | if (!SWIG_IsOK(ecode3)) { | |
17869 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'"); | |
17870 | } | |
17871 | arg3 = static_cast< int >(val3); | |
17872 | { | |
17873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17874 | result = wxDC_GetPixel(arg1,arg2,arg3); | |
17875 | wxPyEndAllowThreads(__tstate); | |
17876 | if (PyErr_Occurred()) SWIG_fail; | |
17877 | } | |
17878 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
17879 | return resultobj; | |
17880 | fail: | |
17881 | return NULL; | |
17882 | } | |
17883 | ||
17884 | ||
17885 | SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17886 | PyObject *resultobj = 0; | |
17887 | wxDC *arg1 = (wxDC *) 0 ; | |
17888 | wxPoint *arg2 = 0 ; | |
17889 | wxColour result; | |
17890 | void *argp1 = 0 ; | |
17891 | int res1 = 0 ; | |
17892 | wxPoint temp2 ; | |
17893 | PyObject * obj0 = 0 ; | |
17894 | PyObject * obj1 = 0 ; | |
17895 | char * kwnames[] = { | |
17896 | (char *) "self",(char *) "pt", NULL | |
17897 | }; | |
17898 | ||
17899 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
17900 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17901 | if (!SWIG_IsOK(res1)) { | |
17902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17903 | } | |
17904 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17905 | { | |
17906 | arg2 = &temp2; | |
17907 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17908 | } | |
17909 | { | |
17910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17911 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); | |
17912 | wxPyEndAllowThreads(__tstate); | |
17913 | if (PyErr_Occurred()) SWIG_fail; | |
17914 | } | |
17915 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
17916 | return resultobj; | |
17917 | fail: | |
17918 | return NULL; | |
17919 | } | |
17920 | ||
17921 | ||
17922 | SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17923 | PyObject *resultobj = 0; | |
17924 | wxDC *arg1 = (wxDC *) 0 ; | |
17925 | int arg2 ; | |
17926 | int arg3 ; | |
17927 | int arg4 ; | |
17928 | int arg5 ; | |
17929 | void *argp1 = 0 ; | |
17930 | int res1 = 0 ; | |
17931 | int val2 ; | |
17932 | int ecode2 = 0 ; | |
17933 | int val3 ; | |
17934 | int ecode3 = 0 ; | |
17935 | int val4 ; | |
17936 | int ecode4 = 0 ; | |
17937 | int val5 ; | |
17938 | int ecode5 = 0 ; | |
17939 | PyObject * obj0 = 0 ; | |
17940 | PyObject * obj1 = 0 ; | |
17941 | PyObject * obj2 = 0 ; | |
17942 | PyObject * obj3 = 0 ; | |
17943 | PyObject * obj4 = 0 ; | |
17944 | char * kwnames[] = { | |
17945 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
17946 | }; | |
17947 | ||
17948 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17949 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17950 | if (!SWIG_IsOK(res1)) { | |
17951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17952 | } | |
17953 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17954 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17955 | if (!SWIG_IsOK(ecode2)) { | |
17956 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
17957 | } | |
17958 | arg2 = static_cast< int >(val2); | |
17959 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17960 | if (!SWIG_IsOK(ecode3)) { | |
17961 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
17962 | } | |
17963 | arg3 = static_cast< int >(val3); | |
17964 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17965 | if (!SWIG_IsOK(ecode4)) { | |
17966 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
17967 | } | |
17968 | arg4 = static_cast< int >(val4); | |
17969 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17970 | if (!SWIG_IsOK(ecode5)) { | |
17971 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
17972 | } | |
17973 | arg5 = static_cast< int >(val5); | |
17974 | { | |
17975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17976 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
17977 | wxPyEndAllowThreads(__tstate); | |
17978 | if (PyErr_Occurred()) SWIG_fail; | |
17979 | } | |
17980 | resultobj = SWIG_Py_Void(); | |
17981 | return resultobj; | |
17982 | fail: | |
17983 | return NULL; | |
17984 | } | |
17985 | ||
17986 | ||
17987 | SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17988 | PyObject *resultobj = 0; | |
17989 | wxDC *arg1 = (wxDC *) 0 ; | |
17990 | wxPoint *arg2 = 0 ; | |
17991 | wxPoint *arg3 = 0 ; | |
17992 | void *argp1 = 0 ; | |
17993 | int res1 = 0 ; | |
17994 | wxPoint temp2 ; | |
17995 | wxPoint temp3 ; | |
17996 | PyObject * obj0 = 0 ; | |
17997 | PyObject * obj1 = 0 ; | |
17998 | PyObject * obj2 = 0 ; | |
17999 | char * kwnames[] = { | |
18000 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
18001 | }; | |
18002 | ||
18003 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18004 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18005 | if (!SWIG_IsOK(res1)) { | |
18006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18007 | } | |
18008 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18009 | { | |
18010 | arg2 = &temp2; | |
18011 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18012 | } | |
18013 | { | |
18014 | arg3 = &temp3; | |
18015 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18016 | } | |
18017 | { | |
18018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18019 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
18020 | wxPyEndAllowThreads(__tstate); | |
18021 | if (PyErr_Occurred()) SWIG_fail; | |
18022 | } | |
18023 | resultobj = SWIG_Py_Void(); | |
18024 | return resultobj; | |
18025 | fail: | |
18026 | return NULL; | |
18027 | } | |
18028 | ||
18029 | ||
18030 | SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18031 | PyObject *resultobj = 0; | |
18032 | wxDC *arg1 = (wxDC *) 0 ; | |
18033 | int arg2 ; | |
18034 | int arg3 ; | |
18035 | void *argp1 = 0 ; | |
18036 | int res1 = 0 ; | |
18037 | int val2 ; | |
18038 | int ecode2 = 0 ; | |
18039 | int val3 ; | |
18040 | int ecode3 = 0 ; | |
18041 | PyObject * obj0 = 0 ; | |
18042 | PyObject * obj1 = 0 ; | |
18043 | PyObject * obj2 = 0 ; | |
18044 | char * kwnames[] = { | |
18045 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18046 | }; | |
18047 | ||
18048 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) 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_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18052 | } | |
18053 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18054 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18055 | if (!SWIG_IsOK(ecode2)) { | |
18056 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
18057 | } | |
18058 | arg2 = static_cast< int >(val2); | |
18059 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18060 | if (!SWIG_IsOK(ecode3)) { | |
18061 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
18062 | } | |
18063 | arg3 = static_cast< int >(val3); | |
18064 | { | |
18065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18066 | (arg1)->CrossHair(arg2,arg3); | |
18067 | wxPyEndAllowThreads(__tstate); | |
18068 | if (PyErr_Occurred()) SWIG_fail; | |
18069 | } | |
18070 | resultobj = SWIG_Py_Void(); | |
18071 | return resultobj; | |
18072 | fail: | |
18073 | return NULL; | |
18074 | } | |
18075 | ||
18076 | ||
18077 | SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18078 | PyObject *resultobj = 0; | |
18079 | wxDC *arg1 = (wxDC *) 0 ; | |
18080 | wxPoint *arg2 = 0 ; | |
18081 | void *argp1 = 0 ; | |
18082 | int res1 = 0 ; | |
18083 | wxPoint temp2 ; | |
18084 | PyObject * obj0 = 0 ; | |
18085 | PyObject * obj1 = 0 ; | |
18086 | char * kwnames[] = { | |
18087 | (char *) "self",(char *) "pt", NULL | |
18088 | }; | |
18089 | ||
18090 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
18091 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18092 | if (!SWIG_IsOK(res1)) { | |
18093 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18094 | } | |
18095 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18096 | { | |
18097 | arg2 = &temp2; | |
18098 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18099 | } | |
18100 | { | |
18101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18102 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
18103 | wxPyEndAllowThreads(__tstate); | |
18104 | if (PyErr_Occurred()) SWIG_fail; | |
18105 | } | |
18106 | resultobj = SWIG_Py_Void(); | |
18107 | return resultobj; | |
18108 | fail: | |
18109 | return NULL; | |
18110 | } | |
18111 | ||
18112 | ||
18113 | SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18114 | PyObject *resultobj = 0; | |
18115 | wxDC *arg1 = (wxDC *) 0 ; | |
18116 | int arg2 ; | |
18117 | int arg3 ; | |
18118 | int arg4 ; | |
18119 | int arg5 ; | |
18120 | int arg6 ; | |
18121 | int arg7 ; | |
18122 | void *argp1 = 0 ; | |
18123 | int res1 = 0 ; | |
18124 | int val2 ; | |
18125 | int ecode2 = 0 ; | |
18126 | int val3 ; | |
18127 | int ecode3 = 0 ; | |
18128 | int val4 ; | |
18129 | int ecode4 = 0 ; | |
18130 | int val5 ; | |
18131 | int ecode5 = 0 ; | |
18132 | int val6 ; | |
18133 | int ecode6 = 0 ; | |
18134 | int val7 ; | |
18135 | int ecode7 = 0 ; | |
18136 | PyObject * obj0 = 0 ; | |
18137 | PyObject * obj1 = 0 ; | |
18138 | PyObject * obj2 = 0 ; | |
18139 | PyObject * obj3 = 0 ; | |
18140 | PyObject * obj4 = 0 ; | |
18141 | PyObject * obj5 = 0 ; | |
18142 | PyObject * obj6 = 0 ; | |
18143 | char * kwnames[] = { | |
18144 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
18145 | }; | |
18146 | ||
18147 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
18148 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18149 | if (!SWIG_IsOK(res1)) { | |
18150 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18151 | } | |
18152 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18153 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18154 | if (!SWIG_IsOK(ecode2)) { | |
18155 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
18156 | } | |
18157 | arg2 = static_cast< int >(val2); | |
18158 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18159 | if (!SWIG_IsOK(ecode3)) { | |
18160 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
18161 | } | |
18162 | arg3 = static_cast< int >(val3); | |
18163 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18164 | if (!SWIG_IsOK(ecode4)) { | |
18165 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
18166 | } | |
18167 | arg4 = static_cast< int >(val4); | |
18168 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18169 | if (!SWIG_IsOK(ecode5)) { | |
18170 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
18171 | } | |
18172 | arg5 = static_cast< int >(val5); | |
18173 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
18174 | if (!SWIG_IsOK(ecode6)) { | |
18175 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
18176 | } | |
18177 | arg6 = static_cast< int >(val6); | |
18178 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
18179 | if (!SWIG_IsOK(ecode7)) { | |
18180 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
18181 | } | |
18182 | arg7 = static_cast< int >(val7); | |
18183 | { | |
18184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18185 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
18186 | wxPyEndAllowThreads(__tstate); | |
18187 | if (PyErr_Occurred()) SWIG_fail; | |
18188 | } | |
18189 | resultobj = SWIG_Py_Void(); | |
18190 | return resultobj; | |
18191 | fail: | |
18192 | return NULL; | |
18193 | } | |
18194 | ||
18195 | ||
18196 | SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18197 | PyObject *resultobj = 0; | |
18198 | wxDC *arg1 = (wxDC *) 0 ; | |
18199 | wxPoint *arg2 = 0 ; | |
18200 | wxPoint *arg3 = 0 ; | |
18201 | wxPoint *arg4 = 0 ; | |
18202 | void *argp1 = 0 ; | |
18203 | int res1 = 0 ; | |
18204 | wxPoint temp2 ; | |
18205 | wxPoint temp3 ; | |
18206 | wxPoint temp4 ; | |
18207 | PyObject * obj0 = 0 ; | |
18208 | PyObject * obj1 = 0 ; | |
18209 | PyObject * obj2 = 0 ; | |
18210 | PyObject * obj3 = 0 ; | |
18211 | char * kwnames[] = { | |
18212 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
18213 | }; | |
18214 | ||
18215 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18216 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18217 | if (!SWIG_IsOK(res1)) { | |
18218 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18219 | } | |
18220 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18221 | { | |
18222 | arg2 = &temp2; | |
18223 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18224 | } | |
18225 | { | |
18226 | arg3 = &temp3; | |
18227 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18228 | } | |
18229 | { | |
18230 | arg4 = &temp4; | |
18231 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18232 | } | |
18233 | { | |
18234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18235 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
18236 | wxPyEndAllowThreads(__tstate); | |
18237 | if (PyErr_Occurred()) SWIG_fail; | |
18238 | } | |
18239 | resultobj = SWIG_Py_Void(); | |
18240 | return resultobj; | |
18241 | fail: | |
18242 | return NULL; | |
18243 | } | |
18244 | ||
18245 | ||
18246 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18247 | PyObject *resultobj = 0; | |
18248 | wxDC *arg1 = (wxDC *) 0 ; | |
18249 | int arg2 ; | |
18250 | int arg3 ; | |
18251 | int arg4 ; | |
18252 | int arg5 ; | |
18253 | void *argp1 = 0 ; | |
18254 | int res1 = 0 ; | |
18255 | int val2 ; | |
18256 | int ecode2 = 0 ; | |
18257 | int val3 ; | |
18258 | int ecode3 = 0 ; | |
18259 | int val4 ; | |
18260 | int ecode4 = 0 ; | |
18261 | int val5 ; | |
18262 | int ecode5 = 0 ; | |
18263 | PyObject * obj0 = 0 ; | |
18264 | PyObject * obj1 = 0 ; | |
18265 | PyObject * obj2 = 0 ; | |
18266 | PyObject * obj3 = 0 ; | |
18267 | PyObject * obj4 = 0 ; | |
18268 | char * kwnames[] = { | |
18269 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
18270 | }; | |
18271 | ||
18272 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18273 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18274 | if (!SWIG_IsOK(res1)) { | |
18275 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18276 | } | |
18277 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18278 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18279 | if (!SWIG_IsOK(ecode2)) { | |
18280 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
18281 | } | |
18282 | arg2 = static_cast< int >(val2); | |
18283 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18284 | if (!SWIG_IsOK(ecode3)) { | |
18285 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
18286 | } | |
18287 | arg3 = static_cast< int >(val3); | |
18288 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18289 | if (!SWIG_IsOK(ecode4)) { | |
18290 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
18291 | } | |
18292 | arg4 = static_cast< int >(val4); | |
18293 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18294 | if (!SWIG_IsOK(ecode5)) { | |
18295 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
18296 | } | |
18297 | arg5 = static_cast< int >(val5); | |
18298 | { | |
18299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18300 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
18301 | wxPyEndAllowThreads(__tstate); | |
18302 | if (PyErr_Occurred()) SWIG_fail; | |
18303 | } | |
18304 | resultobj = SWIG_Py_Void(); | |
18305 | return resultobj; | |
18306 | fail: | |
18307 | return NULL; | |
18308 | } | |
18309 | ||
18310 | ||
18311 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18312 | PyObject *resultobj = 0; | |
18313 | wxDC *arg1 = (wxDC *) 0 ; | |
18314 | wxRect *arg2 = 0 ; | |
18315 | void *argp1 = 0 ; | |
18316 | int res1 = 0 ; | |
18317 | wxRect temp2 ; | |
18318 | PyObject * obj0 = 0 ; | |
18319 | PyObject * obj1 = 0 ; | |
18320 | char * kwnames[] = { | |
18321 | (char *) "self",(char *) "rect", NULL | |
18322 | }; | |
18323 | ||
18324 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
18325 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18326 | if (!SWIG_IsOK(res1)) { | |
18327 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18328 | } | |
18329 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18330 | { | |
18331 | arg2 = &temp2; | |
18332 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18333 | } | |
18334 | { | |
18335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18336 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
18337 | wxPyEndAllowThreads(__tstate); | |
18338 | if (PyErr_Occurred()) SWIG_fail; | |
18339 | } | |
18340 | resultobj = SWIG_Py_Void(); | |
18341 | return resultobj; | |
18342 | fail: | |
18343 | return NULL; | |
18344 | } | |
18345 | ||
18346 | ||
18347 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18348 | PyObject *resultobj = 0; | |
18349 | wxDC *arg1 = (wxDC *) 0 ; | |
18350 | int arg2 ; | |
18351 | int arg3 ; | |
18352 | int arg4 ; | |
18353 | int arg5 ; | |
18354 | double arg6 ; | |
18355 | double arg7 ; | |
18356 | void *argp1 = 0 ; | |
18357 | int res1 = 0 ; | |
18358 | int val2 ; | |
18359 | int ecode2 = 0 ; | |
18360 | int val3 ; | |
18361 | int ecode3 = 0 ; | |
18362 | int val4 ; | |
18363 | int ecode4 = 0 ; | |
18364 | int val5 ; | |
18365 | int ecode5 = 0 ; | |
18366 | double val6 ; | |
18367 | int ecode6 = 0 ; | |
18368 | double val7 ; | |
18369 | int ecode7 = 0 ; | |
18370 | PyObject * obj0 = 0 ; | |
18371 | PyObject * obj1 = 0 ; | |
18372 | PyObject * obj2 = 0 ; | |
18373 | PyObject * obj3 = 0 ; | |
18374 | PyObject * obj4 = 0 ; | |
18375 | PyObject * obj5 = 0 ; | |
18376 | PyObject * obj6 = 0 ; | |
18377 | char * kwnames[] = { | |
18378 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
18379 | }; | |
18380 | ||
18381 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
18382 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18383 | if (!SWIG_IsOK(res1)) { | |
18384 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18385 | } | |
18386 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18387 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18388 | if (!SWIG_IsOK(ecode2)) { | |
18389 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
18390 | } | |
18391 | arg2 = static_cast< int >(val2); | |
18392 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18393 | if (!SWIG_IsOK(ecode3)) { | |
18394 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
18395 | } | |
18396 | arg3 = static_cast< int >(val3); | |
18397 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18398 | if (!SWIG_IsOK(ecode4)) { | |
18399 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
18400 | } | |
18401 | arg4 = static_cast< int >(val4); | |
18402 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18403 | if (!SWIG_IsOK(ecode5)) { | |
18404 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
18405 | } | |
18406 | arg5 = static_cast< int >(val5); | |
18407 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
18408 | if (!SWIG_IsOK(ecode6)) { | |
18409 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
18410 | } | |
18411 | arg6 = static_cast< double >(val6); | |
18412 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
18413 | if (!SWIG_IsOK(ecode7)) { | |
18414 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
18415 | } | |
18416 | arg7 = static_cast< double >(val7); | |
18417 | { | |
18418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18419 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
18420 | wxPyEndAllowThreads(__tstate); | |
18421 | if (PyErr_Occurred()) SWIG_fail; | |
18422 | } | |
18423 | resultobj = SWIG_Py_Void(); | |
18424 | return resultobj; | |
18425 | fail: | |
18426 | return NULL; | |
18427 | } | |
18428 | ||
18429 | ||
18430 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18431 | PyObject *resultobj = 0; | |
18432 | wxDC *arg1 = (wxDC *) 0 ; | |
18433 | wxPoint *arg2 = 0 ; | |
18434 | wxSize *arg3 = 0 ; | |
18435 | double arg4 ; | |
18436 | double arg5 ; | |
18437 | void *argp1 = 0 ; | |
18438 | int res1 = 0 ; | |
18439 | wxPoint temp2 ; | |
18440 | wxSize temp3 ; | |
18441 | double val4 ; | |
18442 | int ecode4 = 0 ; | |
18443 | double val5 ; | |
18444 | int ecode5 = 0 ; | |
18445 | PyObject * obj0 = 0 ; | |
18446 | PyObject * obj1 = 0 ; | |
18447 | PyObject * obj2 = 0 ; | |
18448 | PyObject * obj3 = 0 ; | |
18449 | PyObject * obj4 = 0 ; | |
18450 | char * kwnames[] = { | |
18451 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
18452 | }; | |
18453 | ||
18454 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18455 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18456 | if (!SWIG_IsOK(res1)) { | |
18457 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18458 | } | |
18459 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18460 | { | |
18461 | arg2 = &temp2; | |
18462 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18463 | } | |
18464 | { | |
18465 | arg3 = &temp3; | |
18466 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
18467 | } | |
18468 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
18469 | if (!SWIG_IsOK(ecode4)) { | |
18470 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
18471 | } | |
18472 | arg4 = static_cast< double >(val4); | |
18473 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
18474 | if (!SWIG_IsOK(ecode5)) { | |
18475 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
18476 | } | |
18477 | arg5 = static_cast< double >(val5); | |
18478 | { | |
18479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18480 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
18481 | wxPyEndAllowThreads(__tstate); | |
18482 | if (PyErr_Occurred()) SWIG_fail; | |
18483 | } | |
18484 | resultobj = SWIG_Py_Void(); | |
18485 | return resultobj; | |
18486 | fail: | |
18487 | return NULL; | |
18488 | } | |
18489 | ||
18490 | ||
18491 | SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18492 | PyObject *resultobj = 0; | |
18493 | wxDC *arg1 = (wxDC *) 0 ; | |
18494 | int arg2 ; | |
18495 | int arg3 ; | |
18496 | void *argp1 = 0 ; | |
18497 | int res1 = 0 ; | |
18498 | int val2 ; | |
18499 | int ecode2 = 0 ; | |
18500 | int val3 ; | |
18501 | int ecode3 = 0 ; | |
18502 | PyObject * obj0 = 0 ; | |
18503 | PyObject * obj1 = 0 ; | |
18504 | PyObject * obj2 = 0 ; | |
18505 | char * kwnames[] = { | |
18506 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18507 | }; | |
18508 | ||
18509 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) 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_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18513 | } | |
18514 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18515 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18516 | if (!SWIG_IsOK(ecode2)) { | |
18517 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
18518 | } | |
18519 | arg2 = static_cast< int >(val2); | |
18520 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18521 | if (!SWIG_IsOK(ecode3)) { | |
18522 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
18523 | } | |
18524 | arg3 = static_cast< int >(val3); | |
18525 | { | |
18526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18527 | (arg1)->DrawPoint(arg2,arg3); | |
18528 | wxPyEndAllowThreads(__tstate); | |
18529 | if (PyErr_Occurred()) SWIG_fail; | |
18530 | } | |
18531 | resultobj = SWIG_Py_Void(); | |
18532 | return resultobj; | |
18533 | fail: | |
18534 | return NULL; | |
18535 | } | |
18536 | ||
18537 | ||
18538 | SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18539 | PyObject *resultobj = 0; | |
18540 | wxDC *arg1 = (wxDC *) 0 ; | |
18541 | wxPoint *arg2 = 0 ; | |
18542 | void *argp1 = 0 ; | |
18543 | int res1 = 0 ; | |
18544 | wxPoint temp2 ; | |
18545 | PyObject * obj0 = 0 ; | |
18546 | PyObject * obj1 = 0 ; | |
18547 | char * kwnames[] = { | |
18548 | (char *) "self",(char *) "pt", NULL | |
18549 | }; | |
18550 | ||
18551 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
18552 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18553 | if (!SWIG_IsOK(res1)) { | |
18554 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18555 | } | |
18556 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18557 | { | |
18558 | arg2 = &temp2; | |
18559 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18560 | } | |
18561 | { | |
18562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18563 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
18564 | wxPyEndAllowThreads(__tstate); | |
18565 | if (PyErr_Occurred()) SWIG_fail; | |
18566 | } | |
18567 | resultobj = SWIG_Py_Void(); | |
18568 | return resultobj; | |
18569 | fail: | |
18570 | return NULL; | |
18571 | } | |
18572 | ||
18573 | ||
18574 | SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18575 | PyObject *resultobj = 0; | |
18576 | wxDC *arg1 = (wxDC *) 0 ; | |
18577 | int arg2 ; | |
18578 | int arg3 ; | |
18579 | int arg4 ; | |
18580 | int arg5 ; | |
18581 | void *argp1 = 0 ; | |
18582 | int res1 = 0 ; | |
18583 | int val2 ; | |
18584 | int ecode2 = 0 ; | |
18585 | int val3 ; | |
18586 | int ecode3 = 0 ; | |
18587 | int val4 ; | |
18588 | int ecode4 = 0 ; | |
18589 | int val5 ; | |
18590 | int ecode5 = 0 ; | |
18591 | PyObject * obj0 = 0 ; | |
18592 | PyObject * obj1 = 0 ; | |
18593 | PyObject * obj2 = 0 ; | |
18594 | PyObject * obj3 = 0 ; | |
18595 | PyObject * obj4 = 0 ; | |
18596 | char * kwnames[] = { | |
18597 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
18598 | }; | |
18599 | ||
18600 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18601 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18602 | if (!SWIG_IsOK(res1)) { | |
18603 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18604 | } | |
18605 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18606 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18607 | if (!SWIG_IsOK(ecode2)) { | |
18608 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
18609 | } | |
18610 | arg2 = static_cast< int >(val2); | |
18611 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18612 | if (!SWIG_IsOK(ecode3)) { | |
18613 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
18614 | } | |
18615 | arg3 = static_cast< int >(val3); | |
18616 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18617 | if (!SWIG_IsOK(ecode4)) { | |
18618 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
18619 | } | |
18620 | arg4 = static_cast< int >(val4); | |
18621 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18622 | if (!SWIG_IsOK(ecode5)) { | |
18623 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
18624 | } | |
18625 | arg5 = static_cast< int >(val5); | |
18626 | { | |
18627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18628 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
18629 | wxPyEndAllowThreads(__tstate); | |
18630 | if (PyErr_Occurred()) SWIG_fail; | |
18631 | } | |
18632 | resultobj = SWIG_Py_Void(); | |
18633 | return resultobj; | |
18634 | fail: | |
18635 | return NULL; | |
18636 | } | |
18637 | ||
18638 | ||
18639 | SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18640 | PyObject *resultobj = 0; | |
18641 | wxDC *arg1 = (wxDC *) 0 ; | |
18642 | wxRect *arg2 = 0 ; | |
18643 | void *argp1 = 0 ; | |
18644 | int res1 = 0 ; | |
18645 | wxRect temp2 ; | |
18646 | PyObject * obj0 = 0 ; | |
18647 | PyObject * obj1 = 0 ; | |
18648 | char * kwnames[] = { | |
18649 | (char *) "self",(char *) "rect", NULL | |
18650 | }; | |
18651 | ||
18652 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
18653 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18654 | if (!SWIG_IsOK(res1)) { | |
18655 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18656 | } | |
18657 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18658 | { | |
18659 | arg2 = &temp2; | |
18660 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18661 | } | |
18662 | { | |
18663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18664 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
18665 | wxPyEndAllowThreads(__tstate); | |
18666 | if (PyErr_Occurred()) SWIG_fail; | |
18667 | } | |
18668 | resultobj = SWIG_Py_Void(); | |
18669 | return resultobj; | |
18670 | fail: | |
18671 | return NULL; | |
18672 | } | |
18673 | ||
18674 | ||
18675 | SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18676 | PyObject *resultobj = 0; | |
18677 | wxDC *arg1 = (wxDC *) 0 ; | |
18678 | wxPoint *arg2 = 0 ; | |
18679 | wxSize *arg3 = 0 ; | |
18680 | void *argp1 = 0 ; | |
18681 | int res1 = 0 ; | |
18682 | wxPoint temp2 ; | |
18683 | wxSize temp3 ; | |
18684 | PyObject * obj0 = 0 ; | |
18685 | PyObject * obj1 = 0 ; | |
18686 | PyObject * obj2 = 0 ; | |
18687 | char * kwnames[] = { | |
18688 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
18689 | }; | |
18690 | ||
18691 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18692 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18693 | if (!SWIG_IsOK(res1)) { | |
18694 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18695 | } | |
18696 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18697 | { | |
18698 | arg2 = &temp2; | |
18699 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18700 | } | |
18701 | { | |
18702 | arg3 = &temp3; | |
18703 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
18704 | } | |
18705 | { | |
18706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18707 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
18708 | wxPyEndAllowThreads(__tstate); | |
18709 | if (PyErr_Occurred()) SWIG_fail; | |
18710 | } | |
18711 | resultobj = SWIG_Py_Void(); | |
18712 | return resultobj; | |
18713 | fail: | |
18714 | return NULL; | |
18715 | } | |
18716 | ||
18717 | ||
18718 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18719 | PyObject *resultobj = 0; | |
18720 | wxDC *arg1 = (wxDC *) 0 ; | |
18721 | int arg2 ; | |
18722 | int arg3 ; | |
18723 | int arg4 ; | |
18724 | int arg5 ; | |
18725 | double arg6 ; | |
18726 | void *argp1 = 0 ; | |
18727 | int res1 = 0 ; | |
18728 | int val2 ; | |
18729 | int ecode2 = 0 ; | |
18730 | int val3 ; | |
18731 | int ecode3 = 0 ; | |
18732 | int val4 ; | |
18733 | int ecode4 = 0 ; | |
18734 | int val5 ; | |
18735 | int ecode5 = 0 ; | |
18736 | double val6 ; | |
18737 | int ecode6 = 0 ; | |
18738 | PyObject * obj0 = 0 ; | |
18739 | PyObject * obj1 = 0 ; | |
18740 | PyObject * obj2 = 0 ; | |
18741 | PyObject * obj3 = 0 ; | |
18742 | PyObject * obj4 = 0 ; | |
18743 | PyObject * obj5 = 0 ; | |
18744 | char * kwnames[] = { | |
18745 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
18746 | }; | |
18747 | ||
18748 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
18749 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18750 | if (!SWIG_IsOK(res1)) { | |
18751 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18752 | } | |
18753 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18754 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18755 | if (!SWIG_IsOK(ecode2)) { | |
18756 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'"); | |
18757 | } | |
18758 | arg2 = static_cast< int >(val2); | |
18759 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18760 | if (!SWIG_IsOK(ecode3)) { | |
18761 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
18762 | } | |
18763 | arg3 = static_cast< int >(val3); | |
18764 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18765 | if (!SWIG_IsOK(ecode4)) { | |
18766 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
18767 | } | |
18768 | arg4 = static_cast< int >(val4); | |
18769 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18770 | if (!SWIG_IsOK(ecode5)) { | |
18771 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
18772 | } | |
18773 | arg5 = static_cast< int >(val5); | |
18774 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
18775 | if (!SWIG_IsOK(ecode6)) { | |
18776 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
18777 | } | |
18778 | arg6 = static_cast< double >(val6); | |
18779 | { | |
18780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18781 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
18782 | wxPyEndAllowThreads(__tstate); | |
18783 | if (PyErr_Occurred()) SWIG_fail; | |
18784 | } | |
18785 | resultobj = SWIG_Py_Void(); | |
18786 | return resultobj; | |
18787 | fail: | |
18788 | return NULL; | |
18789 | } | |
18790 | ||
18791 | ||
18792 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18793 | PyObject *resultobj = 0; | |
18794 | wxDC *arg1 = (wxDC *) 0 ; | |
18795 | wxRect *arg2 = 0 ; | |
18796 | double arg3 ; | |
18797 | void *argp1 = 0 ; | |
18798 | int res1 = 0 ; | |
18799 | wxRect temp2 ; | |
18800 | double val3 ; | |
18801 | int ecode3 = 0 ; | |
18802 | PyObject * obj0 = 0 ; | |
18803 | PyObject * obj1 = 0 ; | |
18804 | PyObject * obj2 = 0 ; | |
18805 | char * kwnames[] = { | |
18806 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
18807 | }; | |
18808 | ||
18809 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18810 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18811 | if (!SWIG_IsOK(res1)) { | |
18812 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18813 | } | |
18814 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18815 | { | |
18816 | arg2 = &temp2; | |
18817 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18818 | } | |
18819 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
18820 | if (!SWIG_IsOK(ecode3)) { | |
18821 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
18822 | } | |
18823 | arg3 = static_cast< double >(val3); | |
18824 | { | |
18825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18826 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
18827 | wxPyEndAllowThreads(__tstate); | |
18828 | if (PyErr_Occurred()) SWIG_fail; | |
18829 | } | |
18830 | resultobj = SWIG_Py_Void(); | |
18831 | return resultobj; | |
18832 | fail: | |
18833 | return NULL; | |
18834 | } | |
18835 | ||
18836 | ||
18837 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18838 | PyObject *resultobj = 0; | |
18839 | wxDC *arg1 = (wxDC *) 0 ; | |
18840 | wxPoint *arg2 = 0 ; | |
18841 | wxSize *arg3 = 0 ; | |
18842 | double arg4 ; | |
18843 | void *argp1 = 0 ; | |
18844 | int res1 = 0 ; | |
18845 | wxPoint temp2 ; | |
18846 | wxSize temp3 ; | |
18847 | double val4 ; | |
18848 | int ecode4 = 0 ; | |
18849 | PyObject * obj0 = 0 ; | |
18850 | PyObject * obj1 = 0 ; | |
18851 | PyObject * obj2 = 0 ; | |
18852 | PyObject * obj3 = 0 ; | |
18853 | char * kwnames[] = { | |
18854 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
18855 | }; | |
18856 | ||
18857 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18858 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18859 | if (!SWIG_IsOK(res1)) { | |
18860 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18861 | } | |
18862 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18863 | { | |
18864 | arg2 = &temp2; | |
18865 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18866 | } | |
18867 | { | |
18868 | arg3 = &temp3; | |
18869 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
18870 | } | |
18871 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
18872 | if (!SWIG_IsOK(ecode4)) { | |
18873 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
18874 | } | |
18875 | arg4 = static_cast< double >(val4); | |
18876 | { | |
18877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18878 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
18879 | wxPyEndAllowThreads(__tstate); | |
18880 | if (PyErr_Occurred()) SWIG_fail; | |
18881 | } | |
18882 | resultobj = SWIG_Py_Void(); | |
18883 | return resultobj; | |
18884 | fail: | |
18885 | return NULL; | |
18886 | } | |
18887 | ||
18888 | ||
18889 | SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18890 | PyObject *resultobj = 0; | |
18891 | wxDC *arg1 = (wxDC *) 0 ; | |
18892 | int arg2 ; | |
18893 | int arg3 ; | |
18894 | int arg4 ; | |
18895 | void *argp1 = 0 ; | |
18896 | int res1 = 0 ; | |
18897 | int val2 ; | |
18898 | int ecode2 = 0 ; | |
18899 | int val3 ; | |
18900 | int ecode3 = 0 ; | |
18901 | int val4 ; | |
18902 | int ecode4 = 0 ; | |
18903 | PyObject * obj0 = 0 ; | |
18904 | PyObject * obj1 = 0 ; | |
18905 | PyObject * obj2 = 0 ; | |
18906 | PyObject * obj3 = 0 ; | |
18907 | char * kwnames[] = { | |
18908 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
18909 | }; | |
18910 | ||
18911 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18912 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18913 | if (!SWIG_IsOK(res1)) { | |
18914 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18915 | } | |
18916 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18917 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18918 | if (!SWIG_IsOK(ecode2)) { | |
18919 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
18920 | } | |
18921 | arg2 = static_cast< int >(val2); | |
18922 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18923 | if (!SWIG_IsOK(ecode3)) { | |
18924 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
18925 | } | |
18926 | arg3 = static_cast< int >(val3); | |
18927 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18928 | if (!SWIG_IsOK(ecode4)) { | |
18929 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
18930 | } | |
18931 | arg4 = static_cast< int >(val4); | |
18932 | { | |
18933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18934 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
18935 | wxPyEndAllowThreads(__tstate); | |
18936 | if (PyErr_Occurred()) SWIG_fail; | |
18937 | } | |
18938 | resultobj = SWIG_Py_Void(); | |
18939 | return resultobj; | |
18940 | fail: | |
18941 | return NULL; | |
18942 | } | |
18943 | ||
18944 | ||
18945 | SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18946 | PyObject *resultobj = 0; | |
18947 | wxDC *arg1 = (wxDC *) 0 ; | |
18948 | wxPoint *arg2 = 0 ; | |
18949 | int arg3 ; | |
18950 | void *argp1 = 0 ; | |
18951 | int res1 = 0 ; | |
18952 | wxPoint temp2 ; | |
18953 | int val3 ; | |
18954 | int ecode3 = 0 ; | |
18955 | PyObject * obj0 = 0 ; | |
18956 | PyObject * obj1 = 0 ; | |
18957 | PyObject * obj2 = 0 ; | |
18958 | char * kwnames[] = { | |
18959 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
18960 | }; | |
18961 | ||
18962 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18963 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18964 | if (!SWIG_IsOK(res1)) { | |
18965 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18966 | } | |
18967 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18968 | { | |
18969 | arg2 = &temp2; | |
18970 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18971 | } | |
18972 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18973 | if (!SWIG_IsOK(ecode3)) { | |
18974 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
18975 | } | |
18976 | arg3 = static_cast< int >(val3); | |
18977 | { | |
18978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18979 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
18980 | wxPyEndAllowThreads(__tstate); | |
18981 | if (PyErr_Occurred()) SWIG_fail; | |
18982 | } | |
18983 | resultobj = SWIG_Py_Void(); | |
18984 | return resultobj; | |
18985 | fail: | |
18986 | return NULL; | |
18987 | } | |
18988 | ||
18989 | ||
18990 | SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18991 | PyObject *resultobj = 0; | |
18992 | wxDC *arg1 = (wxDC *) 0 ; | |
18993 | int arg2 ; | |
18994 | int arg3 ; | |
18995 | int arg4 ; | |
18996 | int arg5 ; | |
18997 | void *argp1 = 0 ; | |
18998 | int res1 = 0 ; | |
18999 | int val2 ; | |
19000 | int ecode2 = 0 ; | |
19001 | int val3 ; | |
19002 | int ecode3 = 0 ; | |
19003 | int val4 ; | |
19004 | int ecode4 = 0 ; | |
19005 | int val5 ; | |
19006 | int ecode5 = 0 ; | |
19007 | PyObject * obj0 = 0 ; | |
19008 | PyObject * obj1 = 0 ; | |
19009 | PyObject * obj2 = 0 ; | |
19010 | PyObject * obj3 = 0 ; | |
19011 | PyObject * obj4 = 0 ; | |
19012 | char * kwnames[] = { | |
19013 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
19014 | }; | |
19015 | ||
19016 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19017 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19018 | if (!SWIG_IsOK(res1)) { | |
19019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19020 | } | |
19021 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19022 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19023 | if (!SWIG_IsOK(ecode2)) { | |
19024 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
19025 | } | |
19026 | arg2 = static_cast< int >(val2); | |
19027 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19028 | if (!SWIG_IsOK(ecode3)) { | |
19029 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'"); | |
19030 | } | |
19031 | arg3 = static_cast< int >(val3); | |
19032 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19033 | if (!SWIG_IsOK(ecode4)) { | |
19034 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
19035 | } | |
19036 | arg4 = static_cast< int >(val4); | |
19037 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19038 | if (!SWIG_IsOK(ecode5)) { | |
19039 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
19040 | } | |
19041 | arg5 = static_cast< int >(val5); | |
19042 | { | |
19043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19044 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
19045 | wxPyEndAllowThreads(__tstate); | |
19046 | if (PyErr_Occurred()) SWIG_fail; | |
19047 | } | |
19048 | resultobj = SWIG_Py_Void(); | |
19049 | return resultobj; | |
19050 | fail: | |
19051 | return NULL; | |
19052 | } | |
19053 | ||
19054 | ||
19055 | SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19056 | PyObject *resultobj = 0; | |
19057 | wxDC *arg1 = (wxDC *) 0 ; | |
19058 | wxRect *arg2 = 0 ; | |
19059 | void *argp1 = 0 ; | |
19060 | int res1 = 0 ; | |
19061 | wxRect temp2 ; | |
19062 | PyObject * obj0 = 0 ; | |
19063 | PyObject * obj1 = 0 ; | |
19064 | char * kwnames[] = { | |
19065 | (char *) "self",(char *) "rect", NULL | |
19066 | }; | |
19067 | ||
19068 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
19069 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19070 | if (!SWIG_IsOK(res1)) { | |
19071 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19072 | } | |
19073 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19074 | { | |
19075 | arg2 = &temp2; | |
19076 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19077 | } | |
19078 | { | |
19079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19080 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
19081 | wxPyEndAllowThreads(__tstate); | |
19082 | if (PyErr_Occurred()) SWIG_fail; | |
19083 | } | |
19084 | resultobj = SWIG_Py_Void(); | |
19085 | return resultobj; | |
19086 | fail: | |
19087 | return NULL; | |
19088 | } | |
19089 | ||
19090 | ||
19091 | SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19092 | PyObject *resultobj = 0; | |
19093 | wxDC *arg1 = (wxDC *) 0 ; | |
19094 | wxPoint *arg2 = 0 ; | |
19095 | wxSize *arg3 = 0 ; | |
19096 | void *argp1 = 0 ; | |
19097 | int res1 = 0 ; | |
19098 | wxPoint temp2 ; | |
19099 | wxSize temp3 ; | |
19100 | PyObject * obj0 = 0 ; | |
19101 | PyObject * obj1 = 0 ; | |
19102 | PyObject * obj2 = 0 ; | |
19103 | char * kwnames[] = { | |
19104 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
19105 | }; | |
19106 | ||
19107 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19108 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19109 | if (!SWIG_IsOK(res1)) { | |
19110 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19111 | } | |
19112 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19113 | { | |
19114 | arg2 = &temp2; | |
19115 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19116 | } | |
19117 | { | |
19118 | arg3 = &temp3; | |
19119 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19120 | } | |
19121 | { | |
19122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19123 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
19124 | wxPyEndAllowThreads(__tstate); | |
19125 | if (PyErr_Occurred()) SWIG_fail; | |
19126 | } | |
19127 | resultobj = SWIG_Py_Void(); | |
19128 | return resultobj; | |
19129 | fail: | |
19130 | return NULL; | |
19131 | } | |
19132 | ||
19133 | ||
19134 | SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19135 | PyObject *resultobj = 0; | |
19136 | wxDC *arg1 = (wxDC *) 0 ; | |
19137 | wxIcon *arg2 = 0 ; | |
19138 | int arg3 ; | |
19139 | int arg4 ; | |
19140 | void *argp1 = 0 ; | |
19141 | int res1 = 0 ; | |
19142 | void *argp2 = 0 ; | |
19143 | int res2 = 0 ; | |
19144 | int val3 ; | |
19145 | int ecode3 = 0 ; | |
19146 | int val4 ; | |
19147 | int ecode4 = 0 ; | |
19148 | PyObject * obj0 = 0 ; | |
19149 | PyObject * obj1 = 0 ; | |
19150 | PyObject * obj2 = 0 ; | |
19151 | PyObject * obj3 = 0 ; | |
19152 | char * kwnames[] = { | |
19153 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
19154 | }; | |
19155 | ||
19156 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19157 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19158 | if (!SWIG_IsOK(res1)) { | |
19159 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19160 | } | |
19161 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19162 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
19163 | if (!SWIG_IsOK(res2)) { | |
19164 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19165 | } | |
19166 | if (!argp2) { | |
19167 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19168 | } | |
19169 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
19170 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19171 | if (!SWIG_IsOK(ecode3)) { | |
19172 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
19173 | } | |
19174 | arg3 = static_cast< int >(val3); | |
19175 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19176 | if (!SWIG_IsOK(ecode4)) { | |
19177 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
19178 | } | |
19179 | arg4 = static_cast< int >(val4); | |
19180 | { | |
19181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19182 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
19183 | wxPyEndAllowThreads(__tstate); | |
19184 | if (PyErr_Occurred()) SWIG_fail; | |
19185 | } | |
19186 | resultobj = SWIG_Py_Void(); | |
19187 | return resultobj; | |
19188 | fail: | |
19189 | return NULL; | |
19190 | } | |
19191 | ||
19192 | ||
19193 | SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19194 | PyObject *resultobj = 0; | |
19195 | wxDC *arg1 = (wxDC *) 0 ; | |
19196 | wxIcon *arg2 = 0 ; | |
19197 | wxPoint *arg3 = 0 ; | |
19198 | void *argp1 = 0 ; | |
19199 | int res1 = 0 ; | |
19200 | void *argp2 = 0 ; | |
19201 | int res2 = 0 ; | |
19202 | wxPoint temp3 ; | |
19203 | PyObject * obj0 = 0 ; | |
19204 | PyObject * obj1 = 0 ; | |
19205 | PyObject * obj2 = 0 ; | |
19206 | char * kwnames[] = { | |
19207 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
19208 | }; | |
19209 | ||
19210 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19211 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19212 | if (!SWIG_IsOK(res1)) { | |
19213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19214 | } | |
19215 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19216 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
19217 | if (!SWIG_IsOK(res2)) { | |
19218 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19219 | } | |
19220 | if (!argp2) { | |
19221 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19222 | } | |
19223 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
19224 | { | |
19225 | arg3 = &temp3; | |
19226 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19227 | } | |
19228 | { | |
19229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19230 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
19231 | wxPyEndAllowThreads(__tstate); | |
19232 | if (PyErr_Occurred()) SWIG_fail; | |
19233 | } | |
19234 | resultobj = SWIG_Py_Void(); | |
19235 | return resultobj; | |
19236 | fail: | |
19237 | return NULL; | |
19238 | } | |
19239 | ||
19240 | ||
19241 | SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19242 | PyObject *resultobj = 0; | |
19243 | wxDC *arg1 = (wxDC *) 0 ; | |
19244 | wxBitmap *arg2 = 0 ; | |
19245 | int arg3 ; | |
19246 | int arg4 ; | |
19247 | bool arg5 = (bool) false ; | |
19248 | void *argp1 = 0 ; | |
19249 | int res1 = 0 ; | |
19250 | void *argp2 = 0 ; | |
19251 | int res2 = 0 ; | |
19252 | int val3 ; | |
19253 | int ecode3 = 0 ; | |
19254 | int val4 ; | |
19255 | int ecode4 = 0 ; | |
19256 | bool val5 ; | |
19257 | int ecode5 = 0 ; | |
19258 | PyObject * obj0 = 0 ; | |
19259 | PyObject * obj1 = 0 ; | |
19260 | PyObject * obj2 = 0 ; | |
19261 | PyObject * obj3 = 0 ; | |
19262 | PyObject * obj4 = 0 ; | |
19263 | char * kwnames[] = { | |
19264 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
19265 | }; | |
19266 | ||
19267 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19268 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19269 | if (!SWIG_IsOK(res1)) { | |
19270 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19271 | } | |
19272 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19273 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
19274 | if (!SWIG_IsOK(res2)) { | |
19275 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19276 | } | |
19277 | if (!argp2) { | |
19278 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19279 | } | |
19280 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
19281 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19282 | if (!SWIG_IsOK(ecode3)) { | |
19283 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
19284 | } | |
19285 | arg3 = static_cast< int >(val3); | |
19286 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19287 | if (!SWIG_IsOK(ecode4)) { | |
19288 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
19289 | } | |
19290 | arg4 = static_cast< int >(val4); | |
19291 | if (obj4) { | |
19292 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
19293 | if (!SWIG_IsOK(ecode5)) { | |
19294 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
19295 | } | |
19296 | arg5 = static_cast< bool >(val5); | |
19297 | } | |
19298 | { | |
19299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19300 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
19301 | wxPyEndAllowThreads(__tstate); | |
19302 | if (PyErr_Occurred()) SWIG_fail; | |
19303 | } | |
19304 | resultobj = SWIG_Py_Void(); | |
19305 | return resultobj; | |
19306 | fail: | |
19307 | return NULL; | |
19308 | } | |
19309 | ||
19310 | ||
19311 | SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19312 | PyObject *resultobj = 0; | |
19313 | wxDC *arg1 = (wxDC *) 0 ; | |
19314 | wxBitmap *arg2 = 0 ; | |
19315 | wxPoint *arg3 = 0 ; | |
19316 | bool arg4 = (bool) false ; | |
19317 | void *argp1 = 0 ; | |
19318 | int res1 = 0 ; | |
19319 | void *argp2 = 0 ; | |
19320 | int res2 = 0 ; | |
19321 | wxPoint temp3 ; | |
19322 | bool val4 ; | |
19323 | int ecode4 = 0 ; | |
19324 | PyObject * obj0 = 0 ; | |
19325 | PyObject * obj1 = 0 ; | |
19326 | PyObject * obj2 = 0 ; | |
19327 | PyObject * obj3 = 0 ; | |
19328 | char * kwnames[] = { | |
19329 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
19330 | }; | |
19331 | ||
19332 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19333 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19334 | if (!SWIG_IsOK(res1)) { | |
19335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19336 | } | |
19337 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19338 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
19339 | if (!SWIG_IsOK(res2)) { | |
19340 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19341 | } | |
19342 | if (!argp2) { | |
19343 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19344 | } | |
19345 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
19346 | { | |
19347 | arg3 = &temp3; | |
19348 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19349 | } | |
19350 | if (obj3) { | |
19351 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
19352 | if (!SWIG_IsOK(ecode4)) { | |
19353 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
19354 | } | |
19355 | arg4 = static_cast< bool >(val4); | |
19356 | } | |
19357 | { | |
19358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19359 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
19360 | wxPyEndAllowThreads(__tstate); | |
19361 | if (PyErr_Occurred()) SWIG_fail; | |
19362 | } | |
19363 | resultobj = SWIG_Py_Void(); | |
19364 | return resultobj; | |
19365 | fail: | |
19366 | return NULL; | |
19367 | } | |
19368 | ||
19369 | ||
19370 | SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19371 | PyObject *resultobj = 0; | |
19372 | wxDC *arg1 = (wxDC *) 0 ; | |
19373 | wxString *arg2 = 0 ; | |
19374 | int arg3 ; | |
19375 | int arg4 ; | |
19376 | void *argp1 = 0 ; | |
19377 | int res1 = 0 ; | |
19378 | bool temp2 = false ; | |
19379 | int val3 ; | |
19380 | int ecode3 = 0 ; | |
19381 | int val4 ; | |
19382 | int ecode4 = 0 ; | |
19383 | PyObject * obj0 = 0 ; | |
19384 | PyObject * obj1 = 0 ; | |
19385 | PyObject * obj2 = 0 ; | |
19386 | PyObject * obj3 = 0 ; | |
19387 | char * kwnames[] = { | |
19388 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
19389 | }; | |
19390 | ||
19391 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19392 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19393 | if (!SWIG_IsOK(res1)) { | |
19394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19395 | } | |
19396 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19397 | { | |
19398 | arg2 = wxString_in_helper(obj1); | |
19399 | if (arg2 == NULL) SWIG_fail; | |
19400 | temp2 = true; | |
19401 | } | |
19402 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19403 | if (!SWIG_IsOK(ecode3)) { | |
19404 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
19405 | } | |
19406 | arg3 = static_cast< int >(val3); | |
19407 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19408 | if (!SWIG_IsOK(ecode4)) { | |
19409 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
19410 | } | |
19411 | arg4 = static_cast< int >(val4); | |
19412 | { | |
19413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19414 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
19415 | wxPyEndAllowThreads(__tstate); | |
19416 | if (PyErr_Occurred()) SWIG_fail; | |
19417 | } | |
19418 | resultobj = SWIG_Py_Void(); | |
19419 | { | |
19420 | if (temp2) | |
19421 | delete arg2; | |
19422 | } | |
19423 | return resultobj; | |
19424 | fail: | |
19425 | { | |
19426 | if (temp2) | |
19427 | delete arg2; | |
19428 | } | |
19429 | return NULL; | |
19430 | } | |
19431 | ||
19432 | ||
19433 | SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19434 | PyObject *resultobj = 0; | |
19435 | wxDC *arg1 = (wxDC *) 0 ; | |
19436 | wxString *arg2 = 0 ; | |
19437 | wxPoint *arg3 = 0 ; | |
19438 | void *argp1 = 0 ; | |
19439 | int res1 = 0 ; | |
19440 | bool temp2 = false ; | |
19441 | wxPoint temp3 ; | |
19442 | PyObject * obj0 = 0 ; | |
19443 | PyObject * obj1 = 0 ; | |
19444 | PyObject * obj2 = 0 ; | |
19445 | char * kwnames[] = { | |
19446 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
19447 | }; | |
19448 | ||
19449 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19450 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19451 | if (!SWIG_IsOK(res1)) { | |
19452 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19453 | } | |
19454 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19455 | { | |
19456 | arg2 = wxString_in_helper(obj1); | |
19457 | if (arg2 == NULL) SWIG_fail; | |
19458 | temp2 = true; | |
19459 | } | |
19460 | { | |
19461 | arg3 = &temp3; | |
19462 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19463 | } | |
19464 | { | |
19465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19466 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
19467 | wxPyEndAllowThreads(__tstate); | |
19468 | if (PyErr_Occurred()) SWIG_fail; | |
19469 | } | |
19470 | resultobj = SWIG_Py_Void(); | |
19471 | { | |
19472 | if (temp2) | |
19473 | delete arg2; | |
19474 | } | |
19475 | return resultobj; | |
19476 | fail: | |
19477 | { | |
19478 | if (temp2) | |
19479 | delete arg2; | |
19480 | } | |
19481 | return NULL; | |
19482 | } | |
19483 | ||
19484 | ||
19485 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19486 | PyObject *resultobj = 0; | |
19487 | wxDC *arg1 = (wxDC *) 0 ; | |
19488 | wxString *arg2 = 0 ; | |
19489 | int arg3 ; | |
19490 | int arg4 ; | |
19491 | double arg5 ; | |
19492 | void *argp1 = 0 ; | |
19493 | int res1 = 0 ; | |
19494 | bool temp2 = false ; | |
19495 | int val3 ; | |
19496 | int ecode3 = 0 ; | |
19497 | int val4 ; | |
19498 | int ecode4 = 0 ; | |
19499 | double val5 ; | |
19500 | int ecode5 = 0 ; | |
19501 | PyObject * obj0 = 0 ; | |
19502 | PyObject * obj1 = 0 ; | |
19503 | PyObject * obj2 = 0 ; | |
19504 | PyObject * obj3 = 0 ; | |
19505 | PyObject * obj4 = 0 ; | |
19506 | char * kwnames[] = { | |
19507 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
19508 | }; | |
19509 | ||
19510 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19511 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19512 | if (!SWIG_IsOK(res1)) { | |
19513 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19514 | } | |
19515 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19516 | { | |
19517 | arg2 = wxString_in_helper(obj1); | |
19518 | if (arg2 == NULL) SWIG_fail; | |
19519 | temp2 = true; | |
19520 | } | |
19521 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19522 | if (!SWIG_IsOK(ecode3)) { | |
19523 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
19524 | } | |
19525 | arg3 = static_cast< int >(val3); | |
19526 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19527 | if (!SWIG_IsOK(ecode4)) { | |
19528 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
19529 | } | |
19530 | arg4 = static_cast< int >(val4); | |
19531 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
19532 | if (!SWIG_IsOK(ecode5)) { | |
19533 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
19534 | } | |
19535 | arg5 = static_cast< double >(val5); | |
19536 | { | |
19537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19538 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
19539 | wxPyEndAllowThreads(__tstate); | |
19540 | if (PyErr_Occurred()) SWIG_fail; | |
19541 | } | |
19542 | resultobj = SWIG_Py_Void(); | |
19543 | { | |
19544 | if (temp2) | |
19545 | delete arg2; | |
19546 | } | |
19547 | return resultobj; | |
19548 | fail: | |
19549 | { | |
19550 | if (temp2) | |
19551 | delete arg2; | |
19552 | } | |
19553 | return NULL; | |
19554 | } | |
19555 | ||
19556 | ||
19557 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19558 | PyObject *resultobj = 0; | |
19559 | wxDC *arg1 = (wxDC *) 0 ; | |
19560 | wxString *arg2 = 0 ; | |
19561 | wxPoint *arg3 = 0 ; | |
19562 | double arg4 ; | |
19563 | void *argp1 = 0 ; | |
19564 | int res1 = 0 ; | |
19565 | bool temp2 = false ; | |
19566 | wxPoint temp3 ; | |
19567 | double val4 ; | |
19568 | int ecode4 = 0 ; | |
19569 | PyObject * obj0 = 0 ; | |
19570 | PyObject * obj1 = 0 ; | |
19571 | PyObject * obj2 = 0 ; | |
19572 | PyObject * obj3 = 0 ; | |
19573 | char * kwnames[] = { | |
19574 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
19575 | }; | |
19576 | ||
19577 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19578 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19579 | if (!SWIG_IsOK(res1)) { | |
19580 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19581 | } | |
19582 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19583 | { | |
19584 | arg2 = wxString_in_helper(obj1); | |
19585 | if (arg2 == NULL) SWIG_fail; | |
19586 | temp2 = true; | |
19587 | } | |
19588 | { | |
19589 | arg3 = &temp3; | |
19590 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19591 | } | |
19592 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
19593 | if (!SWIG_IsOK(ecode4)) { | |
19594 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
19595 | } | |
19596 | arg4 = static_cast< double >(val4); | |
19597 | { | |
19598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19599 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
19600 | wxPyEndAllowThreads(__tstate); | |
19601 | if (PyErr_Occurred()) SWIG_fail; | |
19602 | } | |
19603 | resultobj = SWIG_Py_Void(); | |
19604 | { | |
19605 | if (temp2) | |
19606 | delete arg2; | |
19607 | } | |
19608 | return resultobj; | |
19609 | fail: | |
19610 | { | |
19611 | if (temp2) | |
19612 | delete arg2; | |
19613 | } | |
19614 | return NULL; | |
19615 | } | |
19616 | ||
19617 | ||
19618 | SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19619 | PyObject *resultobj = 0; | |
19620 | wxDC *arg1 = (wxDC *) 0 ; | |
19621 | int arg2 ; | |
19622 | int arg3 ; | |
19623 | int arg4 ; | |
19624 | int arg5 ; | |
19625 | wxDC *arg6 = (wxDC *) 0 ; | |
19626 | int arg7 ; | |
19627 | int arg8 ; | |
19628 | int arg9 = (int) wxCOPY ; | |
19629 | bool arg10 = (bool) false ; | |
19630 | int arg11 = (int) -1 ; | |
19631 | int arg12 = (int) -1 ; | |
19632 | bool result; | |
19633 | void *argp1 = 0 ; | |
19634 | int res1 = 0 ; | |
19635 | int val2 ; | |
19636 | int ecode2 = 0 ; | |
19637 | int val3 ; | |
19638 | int ecode3 = 0 ; | |
19639 | int val4 ; | |
19640 | int ecode4 = 0 ; | |
19641 | int val5 ; | |
19642 | int ecode5 = 0 ; | |
19643 | void *argp6 = 0 ; | |
19644 | int res6 = 0 ; | |
19645 | int val7 ; | |
19646 | int ecode7 = 0 ; | |
19647 | int val8 ; | |
19648 | int ecode8 = 0 ; | |
19649 | int val9 ; | |
19650 | int ecode9 = 0 ; | |
19651 | bool val10 ; | |
19652 | int ecode10 = 0 ; | |
19653 | int val11 ; | |
19654 | int ecode11 = 0 ; | |
19655 | int val12 ; | |
19656 | int ecode12 = 0 ; | |
19657 | PyObject * obj0 = 0 ; | |
19658 | PyObject * obj1 = 0 ; | |
19659 | PyObject * obj2 = 0 ; | |
19660 | PyObject * obj3 = 0 ; | |
19661 | PyObject * obj4 = 0 ; | |
19662 | PyObject * obj5 = 0 ; | |
19663 | PyObject * obj6 = 0 ; | |
19664 | PyObject * obj7 = 0 ; | |
19665 | PyObject * obj8 = 0 ; | |
19666 | PyObject * obj9 = 0 ; | |
19667 | PyObject * obj10 = 0 ; | |
19668 | PyObject * obj11 = 0 ; | |
19669 | char * kwnames[] = { | |
19670 | (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 | |
19671 | }; | |
19672 | ||
19673 | 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; | |
19674 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19675 | if (!SWIG_IsOK(res1)) { | |
19676 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19677 | } | |
19678 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19679 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19680 | if (!SWIG_IsOK(ecode2)) { | |
19681 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'"); | |
19682 | } | |
19683 | arg2 = static_cast< int >(val2); | |
19684 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19685 | if (!SWIG_IsOK(ecode3)) { | |
19686 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'"); | |
19687 | } | |
19688 | arg3 = static_cast< int >(val3); | |
19689 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19690 | if (!SWIG_IsOK(ecode4)) { | |
19691 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'"); | |
19692 | } | |
19693 | arg4 = static_cast< int >(val4); | |
19694 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19695 | if (!SWIG_IsOK(ecode5)) { | |
19696 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'"); | |
19697 | } | |
19698 | arg5 = static_cast< int >(val5); | |
19699 | res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19700 | if (!SWIG_IsOK(res6)) { | |
19701 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'"); | |
19702 | } | |
19703 | arg6 = reinterpret_cast< wxDC * >(argp6); | |
19704 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
19705 | if (!SWIG_IsOK(ecode7)) { | |
19706 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'"); | |
19707 | } | |
19708 | arg7 = static_cast< int >(val7); | |
19709 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
19710 | if (!SWIG_IsOK(ecode8)) { | |
19711 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'"); | |
19712 | } | |
19713 | arg8 = static_cast< int >(val8); | |
19714 | if (obj8) { | |
19715 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
19716 | if (!SWIG_IsOK(ecode9)) { | |
19717 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'"); | |
19718 | } | |
19719 | arg9 = static_cast< int >(val9); | |
19720 | } | |
19721 | if (obj9) { | |
19722 | ecode10 = SWIG_AsVal_bool(obj9, &val10); | |
19723 | if (!SWIG_IsOK(ecode10)) { | |
19724 | SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'"); | |
19725 | } | |
19726 | arg10 = static_cast< bool >(val10); | |
19727 | } | |
19728 | if (obj10) { | |
19729 | ecode11 = SWIG_AsVal_int(obj10, &val11); | |
19730 | if (!SWIG_IsOK(ecode11)) { | |
19731 | SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'"); | |
19732 | } | |
19733 | arg11 = static_cast< int >(val11); | |
19734 | } | |
19735 | if (obj11) { | |
19736 | ecode12 = SWIG_AsVal_int(obj11, &val12); | |
19737 | if (!SWIG_IsOK(ecode12)) { | |
19738 | SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'"); | |
19739 | } | |
19740 | arg12 = static_cast< int >(val12); | |
19741 | } | |
19742 | { | |
19743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19744 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
19745 | wxPyEndAllowThreads(__tstate); | |
19746 | if (PyErr_Occurred()) SWIG_fail; | |
19747 | } | |
19748 | { | |
19749 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19750 | } | |
19751 | return resultobj; | |
19752 | fail: | |
19753 | return NULL; | |
19754 | } | |
19755 | ||
19756 | ||
19757 | SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19758 | PyObject *resultobj = 0; | |
19759 | wxDC *arg1 = (wxDC *) 0 ; | |
19760 | wxPoint *arg2 = 0 ; | |
19761 | wxSize *arg3 = 0 ; | |
19762 | wxDC *arg4 = (wxDC *) 0 ; | |
19763 | wxPoint *arg5 = 0 ; | |
19764 | int arg6 = (int) wxCOPY ; | |
19765 | bool arg7 = (bool) false ; | |
19766 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
19767 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
19768 | bool result; | |
19769 | void *argp1 = 0 ; | |
19770 | int res1 = 0 ; | |
19771 | wxPoint temp2 ; | |
19772 | wxSize temp3 ; | |
19773 | void *argp4 = 0 ; | |
19774 | int res4 = 0 ; | |
19775 | wxPoint temp5 ; | |
19776 | int val6 ; | |
19777 | int ecode6 = 0 ; | |
19778 | bool val7 ; | |
19779 | int ecode7 = 0 ; | |
19780 | wxPoint temp8 ; | |
19781 | PyObject * obj0 = 0 ; | |
19782 | PyObject * obj1 = 0 ; | |
19783 | PyObject * obj2 = 0 ; | |
19784 | PyObject * obj3 = 0 ; | |
19785 | PyObject * obj4 = 0 ; | |
19786 | PyObject * obj5 = 0 ; | |
19787 | PyObject * obj6 = 0 ; | |
19788 | PyObject * obj7 = 0 ; | |
19789 | char * kwnames[] = { | |
19790 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
19791 | }; | |
19792 | ||
19793 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
19794 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19795 | if (!SWIG_IsOK(res1)) { | |
19796 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19797 | } | |
19798 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19799 | { | |
19800 | arg2 = &temp2; | |
19801 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19802 | } | |
19803 | { | |
19804 | arg3 = &temp3; | |
19805 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19806 | } | |
19807 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19808 | if (!SWIG_IsOK(res4)) { | |
19809 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'"); | |
19810 | } | |
19811 | arg4 = reinterpret_cast< wxDC * >(argp4); | |
19812 | { | |
19813 | arg5 = &temp5; | |
19814 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
19815 | } | |
19816 | if (obj5) { | |
19817 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
19818 | if (!SWIG_IsOK(ecode6)) { | |
19819 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'"); | |
19820 | } | |
19821 | arg6 = static_cast< int >(val6); | |
19822 | } | |
19823 | if (obj6) { | |
19824 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
19825 | if (!SWIG_IsOK(ecode7)) { | |
19826 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'"); | |
19827 | } | |
19828 | arg7 = static_cast< bool >(val7); | |
19829 | } | |
19830 | if (obj7) { | |
093d3ff1 | 19831 | { |
0085ce49 RD |
19832 | arg8 = &temp8; |
19833 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
093d3ff1 | 19834 | } |
0085ce49 RD |
19835 | } |
19836 | { | |
19837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19838 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
19839 | wxPyEndAllowThreads(__tstate); | |
19840 | if (PyErr_Occurred()) SWIG_fail; | |
19841 | } | |
19842 | { | |
19843 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19844 | } | |
19845 | return resultobj; | |
19846 | fail: | |
19847 | return NULL; | |
19848 | } | |
19849 | ||
19850 | ||
8f514ab4 RD |
19851 | SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19852 | PyObject *resultobj = 0; | |
19853 | wxDC *arg1 = (wxDC *) 0 ; | |
19854 | wxRect *arg2 = (wxRect *) NULL ; | |
19855 | SwigValueWrapper<wxBitmap > result; | |
19856 | void *argp1 = 0 ; | |
19857 | int res1 = 0 ; | |
19858 | void *argp2 = 0 ; | |
19859 | int res2 = 0 ; | |
19860 | PyObject * obj0 = 0 ; | |
19861 | PyObject * obj1 = 0 ; | |
19862 | char * kwnames[] = { | |
19863 | (char *) "self",(char *) "subrect", NULL | |
19864 | }; | |
19865 | ||
19866 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
19867 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19868 | if (!SWIG_IsOK(res1)) { | |
19869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19870 | } | |
19871 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19872 | if (obj1) { | |
19873 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 ); | |
19874 | if (!SWIG_IsOK(res2)) { | |
19875 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'"); | |
19876 | } | |
19877 | arg2 = reinterpret_cast< wxRect * >(argp2); | |
19878 | } | |
19879 | { | |
19880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19881 | result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2); | |
19882 | wxPyEndAllowThreads(__tstate); | |
19883 | if (PyErr_Occurred()) SWIG_fail; | |
19884 | } | |
19885 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
19886 | return resultobj; | |
19887 | fail: | |
19888 | return NULL; | |
19889 | } | |
19890 | ||
19891 | ||
0085ce49 RD |
19892 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19893 | PyObject *resultobj = 0; | |
19894 | wxDC *arg1 = (wxDC *) 0 ; | |
19895 | int arg2 ; | |
19896 | int arg3 ; | |
19897 | int arg4 ; | |
19898 | int arg5 ; | |
19899 | void *argp1 = 0 ; | |
19900 | int res1 = 0 ; | |
19901 | int val2 ; | |
19902 | int ecode2 = 0 ; | |
19903 | int val3 ; | |
19904 | int ecode3 = 0 ; | |
19905 | int val4 ; | |
19906 | int ecode4 = 0 ; | |
19907 | int val5 ; | |
19908 | int ecode5 = 0 ; | |
19909 | PyObject * obj0 = 0 ; | |
19910 | PyObject * obj1 = 0 ; | |
19911 | PyObject * obj2 = 0 ; | |
19912 | PyObject * obj3 = 0 ; | |
19913 | PyObject * obj4 = 0 ; | |
19914 | char * kwnames[] = { | |
19915 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
19916 | }; | |
19917 | ||
19918 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19919 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19920 | if (!SWIG_IsOK(res1)) { | |
19921 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19922 | } | |
19923 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19924 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19925 | if (!SWIG_IsOK(ecode2)) { | |
19926 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'"); | |
19927 | } | |
19928 | arg2 = static_cast< int >(val2); | |
19929 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19930 | if (!SWIG_IsOK(ecode3)) { | |
19931 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'"); | |
19932 | } | |
19933 | arg3 = static_cast< int >(val3); | |
19934 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19935 | if (!SWIG_IsOK(ecode4)) { | |
19936 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'"); | |
19937 | } | |
19938 | arg4 = static_cast< int >(val4); | |
19939 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19940 | if (!SWIG_IsOK(ecode5)) { | |
19941 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'"); | |
19942 | } | |
19943 | arg5 = static_cast< int >(val5); | |
19944 | { | |
19945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19946 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
19947 | wxPyEndAllowThreads(__tstate); | |
19948 | if (PyErr_Occurred()) SWIG_fail; | |
19949 | } | |
19950 | resultobj = SWIG_Py_Void(); | |
19951 | return resultobj; | |
19952 | fail: | |
19953 | return NULL; | |
19954 | } | |
19955 | ||
19956 | ||
19957 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19958 | PyObject *resultobj = 0; | |
19959 | wxDC *arg1 = (wxDC *) 0 ; | |
19960 | wxPoint *arg2 = 0 ; | |
19961 | wxSize *arg3 = 0 ; | |
19962 | void *argp1 = 0 ; | |
19963 | int res1 = 0 ; | |
19964 | wxPoint temp2 ; | |
19965 | wxSize temp3 ; | |
19966 | PyObject * obj0 = 0 ; | |
19967 | PyObject * obj1 = 0 ; | |
19968 | PyObject * obj2 = 0 ; | |
19969 | char * kwnames[] = { | |
19970 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
19971 | }; | |
19972 | ||
19973 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19974 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19975 | if (!SWIG_IsOK(res1)) { | |
19976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19977 | } | |
19978 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19979 | { | |
19980 | arg2 = &temp2; | |
19981 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19982 | } | |
19983 | { | |
19984 | arg3 = &temp3; | |
19985 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19986 | } | |
19987 | { | |
19988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19989 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
19990 | wxPyEndAllowThreads(__tstate); | |
19991 | if (PyErr_Occurred()) SWIG_fail; | |
19992 | } | |
19993 | resultobj = SWIG_Py_Void(); | |
19994 | return resultobj; | |
19995 | fail: | |
19996 | return NULL; | |
19997 | } | |
19998 | ||
19999 | ||
20000 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20001 | PyObject *resultobj = 0; | |
20002 | wxDC *arg1 = (wxDC *) 0 ; | |
20003 | wxRegion *arg2 = 0 ; | |
20004 | void *argp1 = 0 ; | |
20005 | int res1 = 0 ; | |
20006 | void *argp2 = 0 ; | |
20007 | int res2 = 0 ; | |
20008 | PyObject * obj0 = 0 ; | |
20009 | PyObject * obj1 = 0 ; | |
20010 | char * kwnames[] = { | |
20011 | (char *) "self",(char *) "region", NULL | |
20012 | }; | |
20013 | ||
20014 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
20015 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20016 | if (!SWIG_IsOK(res1)) { | |
20017 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20018 | } | |
20019 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20020 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
20021 | if (!SWIG_IsOK(res2)) { | |
20022 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
20023 | } | |
20024 | if (!argp2) { | |
20025 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
20026 | } | |
20027 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
20028 | { | |
20029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20030 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
20031 | wxPyEndAllowThreads(__tstate); | |
20032 | if (PyErr_Occurred()) SWIG_fail; | |
20033 | } | |
20034 | resultobj = SWIG_Py_Void(); | |
20035 | return resultobj; | |
20036 | fail: | |
20037 | return NULL; | |
20038 | } | |
20039 | ||
20040 | ||
20041 | SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20042 | PyObject *resultobj = 0; | |
20043 | wxDC *arg1 = (wxDC *) 0 ; | |
20044 | wxRect *arg2 = 0 ; | |
20045 | void *argp1 = 0 ; | |
20046 | int res1 = 0 ; | |
20047 | wxRect temp2 ; | |
20048 | PyObject * obj0 = 0 ; | |
20049 | PyObject * obj1 = 0 ; | |
20050 | char * kwnames[] = { | |
20051 | (char *) "self",(char *) "rect", NULL | |
20052 | }; | |
20053 | ||
20054 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
20055 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20056 | if (!SWIG_IsOK(res1)) { | |
20057 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20058 | } | |
20059 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20060 | { | |
20061 | arg2 = &temp2; | |
20062 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
20063 | } | |
20064 | { | |
20065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20066 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
20067 | wxPyEndAllowThreads(__tstate); | |
20068 | if (PyErr_Occurred()) SWIG_fail; | |
20069 | } | |
20070 | resultobj = SWIG_Py_Void(); | |
20071 | return resultobj; | |
20072 | fail: | |
20073 | return NULL; | |
20074 | } | |
20075 | ||
20076 | ||
20077 | SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20078 | PyObject *resultobj = 0; | |
20079 | wxDC *arg1 = (wxDC *) 0 ; | |
20080 | int arg2 ; | |
20081 | wxPoint *arg3 = (wxPoint *) 0 ; | |
20082 | int arg4 = (int) 0 ; | |
20083 | int arg5 = (int) 0 ; | |
20084 | void *argp1 = 0 ; | |
20085 | int res1 = 0 ; | |
20086 | int val4 ; | |
20087 | int ecode4 = 0 ; | |
20088 | int val5 ; | |
20089 | int ecode5 = 0 ; | |
20090 | PyObject * obj0 = 0 ; | |
20091 | PyObject * obj1 = 0 ; | |
20092 | PyObject * obj2 = 0 ; | |
20093 | PyObject * obj3 = 0 ; | |
20094 | char * kwnames[] = { | |
20095 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
20096 | }; | |
20097 | ||
20098 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20099 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20100 | if (!SWIG_IsOK(res1)) { | |
20101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20102 | } | |
20103 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20104 | { | |
20105 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
20106 | if (arg3 == NULL) SWIG_fail; | |
20107 | } | |
20108 | if (obj2) { | |
20109 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
20110 | if (!SWIG_IsOK(ecode4)) { | |
20111 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
20112 | } | |
20113 | arg4 = static_cast< int >(val4); | |
20114 | } | |
20115 | if (obj3) { | |
20116 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
20117 | if (!SWIG_IsOK(ecode5)) { | |
20118 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
20119 | } | |
20120 | arg5 = static_cast< int >(val5); | |
20121 | } | |
20122 | { | |
20123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20124 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
20125 | wxPyEndAllowThreads(__tstate); | |
20126 | if (PyErr_Occurred()) SWIG_fail; | |
20127 | } | |
20128 | resultobj = SWIG_Py_Void(); | |
20129 | { | |
20130 | if (arg3) delete [] arg3; | |
20131 | } | |
20132 | return resultobj; | |
20133 | fail: | |
20134 | { | |
20135 | if (arg3) delete [] arg3; | |
20136 | } | |
20137 | return NULL; | |
20138 | } | |
20139 | ||
20140 | ||
20141 | SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20142 | PyObject *resultobj = 0; | |
20143 | wxDC *arg1 = (wxDC *) 0 ; | |
20144 | int arg2 ; | |
20145 | wxPoint *arg3 = (wxPoint *) 0 ; | |
20146 | int arg4 = (int) 0 ; | |
20147 | int arg5 = (int) 0 ; | |
20148 | int arg6 = (int) wxODDEVEN_RULE ; | |
20149 | void *argp1 = 0 ; | |
20150 | int res1 = 0 ; | |
20151 | int val4 ; | |
20152 | int ecode4 = 0 ; | |
20153 | int val5 ; | |
20154 | int ecode5 = 0 ; | |
20155 | int val6 ; | |
20156 | int ecode6 = 0 ; | |
20157 | PyObject * obj0 = 0 ; | |
20158 | PyObject * obj1 = 0 ; | |
20159 | PyObject * obj2 = 0 ; | |
20160 | PyObject * obj3 = 0 ; | |
20161 | PyObject * obj4 = 0 ; | |
20162 | char * kwnames[] = { | |
20163 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
20164 | }; | |
20165 | ||
20166 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20167 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20168 | if (!SWIG_IsOK(res1)) { | |
20169 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20170 | } | |
20171 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20172 | { | |
20173 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
20174 | if (arg3 == NULL) SWIG_fail; | |
20175 | } | |
20176 | if (obj2) { | |
20177 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
20178 | if (!SWIG_IsOK(ecode4)) { | |
20179 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
20180 | } | |
20181 | arg4 = static_cast< int >(val4); | |
20182 | } | |
20183 | if (obj3) { | |
20184 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
20185 | if (!SWIG_IsOK(ecode5)) { | |
20186 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
20187 | } | |
20188 | arg5 = static_cast< int >(val5); | |
20189 | } | |
20190 | if (obj4) { | |
20191 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
20192 | if (!SWIG_IsOK(ecode6)) { | |
20193 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
20194 | } | |
20195 | arg6 = static_cast< int >(val6); | |
20196 | } | |
20197 | { | |
20198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20199 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
20200 | wxPyEndAllowThreads(__tstate); | |
20201 | if (PyErr_Occurred()) SWIG_fail; | |
20202 | } | |
20203 | resultobj = SWIG_Py_Void(); | |
20204 | { | |
20205 | if (arg3) delete [] arg3; | |
20206 | } | |
20207 | return resultobj; | |
20208 | fail: | |
20209 | { | |
20210 | if (arg3) delete [] arg3; | |
20211 | } | |
20212 | return NULL; | |
20213 | } | |
20214 | ||
20215 | ||
20216 | SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20217 | PyObject *resultobj = 0; | |
20218 | wxDC *arg1 = (wxDC *) 0 ; | |
20219 | wxString *arg2 = 0 ; | |
20220 | wxRect *arg3 = 0 ; | |
20221 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
20222 | int arg5 = (int) -1 ; | |
20223 | void *argp1 = 0 ; | |
20224 | int res1 = 0 ; | |
20225 | bool temp2 = false ; | |
20226 | wxRect temp3 ; | |
20227 | int val4 ; | |
20228 | int ecode4 = 0 ; | |
20229 | int val5 ; | |
20230 | int ecode5 = 0 ; | |
20231 | PyObject * obj0 = 0 ; | |
20232 | PyObject * obj1 = 0 ; | |
20233 | PyObject * obj2 = 0 ; | |
20234 | PyObject * obj3 = 0 ; | |
20235 | PyObject * obj4 = 0 ; | |
20236 | char * kwnames[] = { | |
20237 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
20238 | }; | |
20239 | ||
20240 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20241 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20242 | if (!SWIG_IsOK(res1)) { | |
20243 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20244 | } | |
20245 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20246 | { | |
20247 | arg2 = wxString_in_helper(obj1); | |
20248 | if (arg2 == NULL) SWIG_fail; | |
20249 | temp2 = true; | |
20250 | } | |
20251 | { | |
20252 | arg3 = &temp3; | |
20253 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
20254 | } | |
20255 | if (obj3) { | |
20256 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20257 | if (!SWIG_IsOK(ecode4)) { | |
20258 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
20259 | } | |
20260 | arg4 = static_cast< int >(val4); | |
20261 | } | |
20262 | if (obj4) { | |
20263 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20264 | if (!SWIG_IsOK(ecode5)) { | |
20265 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
20266 | } | |
20267 | arg5 = static_cast< int >(val5); | |
20268 | } | |
20269 | { | |
20270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20271 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
20272 | wxPyEndAllowThreads(__tstate); | |
20273 | if (PyErr_Occurred()) SWIG_fail; | |
20274 | } | |
20275 | resultobj = SWIG_Py_Void(); | |
20276 | { | |
20277 | if (temp2) | |
20278 | delete arg2; | |
20279 | } | |
20280 | return resultobj; | |
20281 | fail: | |
20282 | { | |
20283 | if (temp2) | |
20284 | delete arg2; | |
20285 | } | |
20286 | return NULL; | |
20287 | } | |
20288 | ||
20289 | ||
20290 | SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20291 | PyObject *resultobj = 0; | |
20292 | wxDC *arg1 = (wxDC *) 0 ; | |
20293 | wxString *arg2 = 0 ; | |
20294 | wxBitmap *arg3 = 0 ; | |
20295 | wxRect *arg4 = 0 ; | |
20296 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
20297 | int arg6 = (int) -1 ; | |
20298 | wxRect result; | |
20299 | void *argp1 = 0 ; | |
20300 | int res1 = 0 ; | |
20301 | bool temp2 = false ; | |
20302 | void *argp3 = 0 ; | |
20303 | int res3 = 0 ; | |
20304 | wxRect temp4 ; | |
20305 | int val5 ; | |
20306 | int ecode5 = 0 ; | |
20307 | int val6 ; | |
20308 | int ecode6 = 0 ; | |
20309 | PyObject * obj0 = 0 ; | |
20310 | PyObject * obj1 = 0 ; | |
20311 | PyObject * obj2 = 0 ; | |
20312 | PyObject * obj3 = 0 ; | |
20313 | PyObject * obj4 = 0 ; | |
20314 | PyObject * obj5 = 0 ; | |
20315 | char * kwnames[] = { | |
20316 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
20317 | }; | |
20318 | ||
20319 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
20320 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20321 | if (!SWIG_IsOK(res1)) { | |
20322 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20323 | } | |
20324 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20325 | { | |
20326 | arg2 = wxString_in_helper(obj1); | |
20327 | if (arg2 == NULL) SWIG_fail; | |
20328 | temp2 = true; | |
20329 | } | |
20330 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
20331 | if (!SWIG_IsOK(res3)) { | |
20332 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
20333 | } | |
20334 | if (!argp3) { | |
20335 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
20336 | } | |
20337 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
20338 | { | |
20339 | arg4 = &temp4; | |
20340 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
20341 | } | |
20342 | if (obj4) { | |
20343 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20344 | if (!SWIG_IsOK(ecode5)) { | |
20345 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
20346 | } | |
20347 | arg5 = static_cast< int >(val5); | |
20348 | } | |
20349 | if (obj5) { | |
20350 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
20351 | if (!SWIG_IsOK(ecode6)) { | |
20352 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
20353 | } | |
20354 | arg6 = static_cast< int >(val6); | |
20355 | } | |
20356 | { | |
20357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20358 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
20359 | wxPyEndAllowThreads(__tstate); | |
20360 | if (PyErr_Occurred()) SWIG_fail; | |
20361 | } | |
20362 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
20363 | { | |
20364 | if (temp2) | |
20365 | delete arg2; | |
20366 | } | |
20367 | return resultobj; | |
20368 | fail: | |
20369 | { | |
20370 | if (temp2) | |
20371 | delete arg2; | |
20372 | } | |
20373 | return NULL; | |
20374 | } | |
20375 | ||
20376 | ||
20377 | SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20378 | PyObject *resultobj = 0; | |
20379 | wxDC *arg1 = (wxDC *) 0 ; | |
20380 | int arg2 ; | |
20381 | wxPoint *arg3 = (wxPoint *) 0 ; | |
20382 | void *argp1 = 0 ; | |
20383 | int res1 = 0 ; | |
20384 | PyObject * obj0 = 0 ; | |
20385 | PyObject * obj1 = 0 ; | |
20386 | char * kwnames[] = { | |
20387 | (char *) "self",(char *) "points", NULL | |
20388 | }; | |
20389 | ||
20390 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
20391 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20392 | if (!SWIG_IsOK(res1)) { | |
20393 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20394 | } | |
20395 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20396 | { | |
20397 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
20398 | if (arg3 == NULL) SWIG_fail; | |
20399 | } | |
20400 | { | |
20401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20402 | (arg1)->DrawSpline(arg2,arg3); | |
20403 | wxPyEndAllowThreads(__tstate); | |
20404 | if (PyErr_Occurred()) SWIG_fail; | |
20405 | } | |
20406 | resultobj = SWIG_Py_Void(); | |
20407 | { | |
20408 | if (arg3) delete [] arg3; | |
20409 | } | |
20410 | return resultobj; | |
20411 | fail: | |
20412 | { | |
20413 | if (arg3) delete [] arg3; | |
20414 | } | |
20415 | return NULL; | |
20416 | } | |
20417 | ||
20418 | ||
20419 | SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20420 | PyObject *resultobj = 0; | |
20421 | wxDC *arg1 = (wxDC *) 0 ; | |
20422 | void *argp1 = 0 ; | |
20423 | int res1 = 0 ; | |
20424 | PyObject *swig_obj[1] ; | |
20425 | ||
20426 | if (!args) SWIG_fail; | |
20427 | swig_obj[0] = args; | |
20428 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20429 | if (!SWIG_IsOK(res1)) { | |
20430 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20431 | } | |
20432 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20433 | { | |
20434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20435 | (arg1)->Clear(); | |
20436 | wxPyEndAllowThreads(__tstate); | |
20437 | if (PyErr_Occurred()) SWIG_fail; | |
20438 | } | |
20439 | resultobj = SWIG_Py_Void(); | |
20440 | return resultobj; | |
20441 | fail: | |
20442 | return NULL; | |
20443 | } | |
20444 | ||
20445 | ||
20446 | SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20447 | PyObject *resultobj = 0; | |
20448 | wxDC *arg1 = (wxDC *) 0 ; | |
20449 | wxString *arg2 = 0 ; | |
20450 | bool result; | |
20451 | void *argp1 = 0 ; | |
20452 | int res1 = 0 ; | |
20453 | bool temp2 = false ; | |
20454 | PyObject * obj0 = 0 ; | |
20455 | PyObject * obj1 = 0 ; | |
20456 | char * kwnames[] = { | |
20457 | (char *) "self",(char *) "message", NULL | |
20458 | }; | |
20459 | ||
20460 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail; | |
20461 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20462 | if (!SWIG_IsOK(res1)) { | |
20463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20464 | } | |
20465 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20466 | { | |
20467 | arg2 = wxString_in_helper(obj1); | |
20468 | if (arg2 == NULL) SWIG_fail; | |
20469 | temp2 = true; | |
20470 | } | |
20471 | { | |
20472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20473 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
20474 | wxPyEndAllowThreads(__tstate); | |
20475 | if (PyErr_Occurred()) SWIG_fail; | |
20476 | } | |
20477 | { | |
20478 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20479 | } | |
20480 | { | |
20481 | if (temp2) | |
20482 | delete arg2; | |
20483 | } | |
20484 | return resultobj; | |
20485 | fail: | |
20486 | { | |
20487 | if (temp2) | |
20488 | delete arg2; | |
20489 | } | |
20490 | return NULL; | |
20491 | } | |
20492 | ||
20493 | ||
20494 | SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20495 | PyObject *resultobj = 0; | |
20496 | wxDC *arg1 = (wxDC *) 0 ; | |
20497 | void *argp1 = 0 ; | |
20498 | int res1 = 0 ; | |
20499 | PyObject *swig_obj[1] ; | |
20500 | ||
20501 | if (!args) SWIG_fail; | |
20502 | swig_obj[0] = args; | |
20503 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20504 | if (!SWIG_IsOK(res1)) { | |
20505 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20506 | } | |
20507 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20508 | { | |
20509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20510 | (arg1)->EndDoc(); | |
20511 | wxPyEndAllowThreads(__tstate); | |
20512 | if (PyErr_Occurred()) SWIG_fail; | |
20513 | } | |
20514 | resultobj = SWIG_Py_Void(); | |
20515 | return resultobj; | |
20516 | fail: | |
20517 | return NULL; | |
20518 | } | |
20519 | ||
20520 | ||
20521 | SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20522 | PyObject *resultobj = 0; | |
20523 | wxDC *arg1 = (wxDC *) 0 ; | |
20524 | void *argp1 = 0 ; | |
20525 | int res1 = 0 ; | |
20526 | PyObject *swig_obj[1] ; | |
20527 | ||
20528 | if (!args) SWIG_fail; | |
20529 | swig_obj[0] = args; | |
20530 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20531 | if (!SWIG_IsOK(res1)) { | |
20532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20533 | } | |
20534 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20535 | { | |
20536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20537 | (arg1)->StartPage(); | |
20538 | wxPyEndAllowThreads(__tstate); | |
20539 | if (PyErr_Occurred()) SWIG_fail; | |
20540 | } | |
20541 | resultobj = SWIG_Py_Void(); | |
20542 | return resultobj; | |
20543 | fail: | |
20544 | return NULL; | |
20545 | } | |
20546 | ||
20547 | ||
20548 | SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20549 | PyObject *resultobj = 0; | |
20550 | wxDC *arg1 = (wxDC *) 0 ; | |
20551 | void *argp1 = 0 ; | |
20552 | int res1 = 0 ; | |
20553 | PyObject *swig_obj[1] ; | |
20554 | ||
20555 | if (!args) SWIG_fail; | |
20556 | swig_obj[0] = args; | |
20557 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20558 | if (!SWIG_IsOK(res1)) { | |
20559 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20560 | } | |
20561 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20562 | { | |
20563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20564 | (arg1)->EndPage(); | |
20565 | wxPyEndAllowThreads(__tstate); | |
20566 | if (PyErr_Occurred()) SWIG_fail; | |
20567 | } | |
20568 | resultobj = SWIG_Py_Void(); | |
20569 | return resultobj; | |
20570 | fail: | |
20571 | return NULL; | |
20572 | } | |
20573 | ||
20574 | ||
20575 | SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20576 | PyObject *resultobj = 0; | |
20577 | wxDC *arg1 = (wxDC *) 0 ; | |
20578 | wxFont *arg2 = 0 ; | |
20579 | void *argp1 = 0 ; | |
20580 | int res1 = 0 ; | |
20581 | void *argp2 = 0 ; | |
20582 | int res2 = 0 ; | |
20583 | PyObject * obj0 = 0 ; | |
20584 | PyObject * obj1 = 0 ; | |
20585 | char * kwnames[] = { | |
20586 | (char *) "self",(char *) "font", NULL | |
20587 | }; | |
20588 | ||
20589 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
20590 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20591 | if (!SWIG_IsOK(res1)) { | |
20592 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20593 | } | |
20594 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20595 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
20596 | if (!SWIG_IsOK(res2)) { | |
20597 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
20598 | } | |
20599 | if (!argp2) { | |
20600 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
20601 | } | |
20602 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
20603 | { | |
20604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20605 | (arg1)->SetFont((wxFont const &)*arg2); | |
20606 | wxPyEndAllowThreads(__tstate); | |
20607 | if (PyErr_Occurred()) SWIG_fail; | |
20608 | } | |
20609 | resultobj = SWIG_Py_Void(); | |
20610 | return resultobj; | |
20611 | fail: | |
20612 | return NULL; | |
20613 | } | |
20614 | ||
20615 | ||
20616 | SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20617 | PyObject *resultobj = 0; | |
20618 | wxDC *arg1 = (wxDC *) 0 ; | |
20619 | wxPen *arg2 = 0 ; | |
20620 | void *argp1 = 0 ; | |
20621 | int res1 = 0 ; | |
20622 | void *argp2 = 0 ; | |
20623 | int res2 = 0 ; | |
20624 | PyObject * obj0 = 0 ; | |
20625 | PyObject * obj1 = 0 ; | |
20626 | char * kwnames[] = { | |
20627 | (char *) "self",(char *) "pen", NULL | |
20628 | }; | |
20629 | ||
20630 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
20631 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20632 | if (!SWIG_IsOK(res1)) { | |
20633 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20634 | } | |
20635 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20636 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
20637 | if (!SWIG_IsOK(res2)) { | |
20638 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
20639 | } | |
20640 | if (!argp2) { | |
20641 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
20642 | } | |
20643 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
20644 | { | |
20645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20646 | (arg1)->SetPen((wxPen const &)*arg2); | |
20647 | wxPyEndAllowThreads(__tstate); | |
20648 | if (PyErr_Occurred()) SWIG_fail; | |
20649 | } | |
20650 | resultobj = SWIG_Py_Void(); | |
20651 | return resultobj; | |
20652 | fail: | |
20653 | return NULL; | |
20654 | } | |
20655 | ||
20656 | ||
20657 | SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20658 | PyObject *resultobj = 0; | |
20659 | wxDC *arg1 = (wxDC *) 0 ; | |
20660 | wxBrush *arg2 = 0 ; | |
20661 | void *argp1 = 0 ; | |
20662 | int res1 = 0 ; | |
20663 | void *argp2 = 0 ; | |
20664 | int res2 = 0 ; | |
20665 | PyObject * obj0 = 0 ; | |
20666 | PyObject * obj1 = 0 ; | |
20667 | char * kwnames[] = { | |
20668 | (char *) "self",(char *) "brush", NULL | |
20669 | }; | |
20670 | ||
20671 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
20672 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20673 | if (!SWIG_IsOK(res1)) { | |
20674 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20675 | } | |
20676 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20677 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
20678 | if (!SWIG_IsOK(res2)) { | |
20679 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20680 | } | |
20681 | if (!argp2) { | |
20682 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20683 | } | |
20684 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
20685 | { | |
20686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20687 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
20688 | wxPyEndAllowThreads(__tstate); | |
20689 | if (PyErr_Occurred()) SWIG_fail; | |
20690 | } | |
20691 | resultobj = SWIG_Py_Void(); | |
20692 | return resultobj; | |
20693 | fail: | |
20694 | return NULL; | |
20695 | } | |
20696 | ||
20697 | ||
20698 | SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20699 | PyObject *resultobj = 0; | |
20700 | wxDC *arg1 = (wxDC *) 0 ; | |
20701 | wxBrush *arg2 = 0 ; | |
20702 | void *argp1 = 0 ; | |
20703 | int res1 = 0 ; | |
20704 | void *argp2 = 0 ; | |
20705 | int res2 = 0 ; | |
20706 | PyObject * obj0 = 0 ; | |
20707 | PyObject * obj1 = 0 ; | |
20708 | char * kwnames[] = { | |
20709 | (char *) "self",(char *) "brush", NULL | |
20710 | }; | |
20711 | ||
20712 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
20713 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20714 | if (!SWIG_IsOK(res1)) { | |
20715 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20716 | } | |
20717 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20718 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
20719 | if (!SWIG_IsOK(res2)) { | |
20720 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20721 | } | |
20722 | if (!argp2) { | |
20723 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20724 | } | |
20725 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
20726 | { | |
20727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20728 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
20729 | wxPyEndAllowThreads(__tstate); | |
20730 | if (PyErr_Occurred()) SWIG_fail; | |
20731 | } | |
20732 | resultobj = SWIG_Py_Void(); | |
20733 | return resultobj; | |
20734 | fail: | |
20735 | return NULL; | |
20736 | } | |
20737 | ||
20738 | ||
20739 | SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20740 | PyObject *resultobj = 0; | |
20741 | wxDC *arg1 = (wxDC *) 0 ; | |
20742 | int arg2 ; | |
20743 | void *argp1 = 0 ; | |
20744 | int res1 = 0 ; | |
20745 | int val2 ; | |
20746 | int ecode2 = 0 ; | |
20747 | PyObject * obj0 = 0 ; | |
20748 | PyObject * obj1 = 0 ; | |
20749 | char * kwnames[] = { | |
20750 | (char *) "self",(char *) "mode", NULL | |
20751 | }; | |
20752 | ||
20753 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
20754 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20755 | if (!SWIG_IsOK(res1)) { | |
20756 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20757 | } | |
20758 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20759 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20760 | if (!SWIG_IsOK(ecode2)) { | |
20761 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
20762 | } | |
20763 | arg2 = static_cast< int >(val2); | |
20764 | { | |
20765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20766 | (arg1)->SetBackgroundMode(arg2); | |
20767 | wxPyEndAllowThreads(__tstate); | |
20768 | if (PyErr_Occurred()) SWIG_fail; | |
20769 | } | |
20770 | resultobj = SWIG_Py_Void(); | |
20771 | return resultobj; | |
20772 | fail: | |
20773 | return NULL; | |
20774 | } | |
20775 | ||
20776 | ||
20777 | SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20778 | PyObject *resultobj = 0; | |
20779 | wxDC *arg1 = (wxDC *) 0 ; | |
20780 | wxPalette *arg2 = 0 ; | |
20781 | void *argp1 = 0 ; | |
20782 | int res1 = 0 ; | |
20783 | void *argp2 = 0 ; | |
20784 | int res2 = 0 ; | |
20785 | PyObject * obj0 = 0 ; | |
20786 | PyObject * obj1 = 0 ; | |
20787 | char * kwnames[] = { | |
20788 | (char *) "self",(char *) "palette", NULL | |
20789 | }; | |
20790 | ||
20791 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
20792 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20793 | if (!SWIG_IsOK(res1)) { | |
20794 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20795 | } | |
20796 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20797 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
20798 | if (!SWIG_IsOK(res2)) { | |
20799 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
20800 | } | |
20801 | if (!argp2) { | |
20802 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
20803 | } | |
20804 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
20805 | { | |
20806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20807 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
20808 | wxPyEndAllowThreads(__tstate); | |
20809 | if (PyErr_Occurred()) SWIG_fail; | |
20810 | } | |
20811 | resultobj = SWIG_Py_Void(); | |
20812 | return resultobj; | |
20813 | fail: | |
20814 | return NULL; | |
20815 | } | |
20816 | ||
20817 | ||
20818 | SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20819 | PyObject *resultobj = 0; | |
20820 | wxDC *arg1 = (wxDC *) 0 ; | |
20821 | void *argp1 = 0 ; | |
20822 | int res1 = 0 ; | |
20823 | PyObject *swig_obj[1] ; | |
20824 | ||
20825 | if (!args) SWIG_fail; | |
20826 | swig_obj[0] = args; | |
20827 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20828 | if (!SWIG_IsOK(res1)) { | |
20829 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20830 | } | |
20831 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20832 | { | |
20833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20834 | (arg1)->DestroyClippingRegion(); | |
20835 | wxPyEndAllowThreads(__tstate); | |
20836 | if (PyErr_Occurred()) SWIG_fail; | |
20837 | } | |
20838 | resultobj = SWIG_Py_Void(); | |
20839 | return resultobj; | |
20840 | fail: | |
20841 | return NULL; | |
20842 | } | |
20843 | ||
20844 | ||
20845 | SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20846 | PyObject *resultobj = 0; | |
20847 | wxDC *arg1 = (wxDC *) 0 ; | |
20848 | int *arg2 = (int *) 0 ; | |
20849 | int *arg3 = (int *) 0 ; | |
20850 | int *arg4 = (int *) 0 ; | |
20851 | int *arg5 = (int *) 0 ; | |
20852 | void *argp1 = 0 ; | |
20853 | int res1 = 0 ; | |
20854 | int temp2 ; | |
20855 | int res2 = SWIG_TMPOBJ ; | |
20856 | int temp3 ; | |
20857 | int res3 = SWIG_TMPOBJ ; | |
20858 | int temp4 ; | |
20859 | int res4 = SWIG_TMPOBJ ; | |
20860 | int temp5 ; | |
20861 | int res5 = SWIG_TMPOBJ ; | |
20862 | PyObject *swig_obj[1] ; | |
20863 | ||
20864 | arg2 = &temp2; | |
20865 | arg3 = &temp3; | |
20866 | arg4 = &temp4; | |
20867 | arg5 = &temp5; | |
20868 | if (!args) SWIG_fail; | |
20869 | swig_obj[0] = args; | |
20870 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20871 | if (!SWIG_IsOK(res1)) { | |
20872 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20873 | } | |
20874 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20875 | { | |
20876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20877 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
20878 | wxPyEndAllowThreads(__tstate); | |
20879 | if (PyErr_Occurred()) SWIG_fail; | |
20880 | } | |
20881 | resultobj = SWIG_Py_Void(); | |
20882 | if (SWIG_IsTmpObj(res2)) { | |
20883 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
20884 | } else { | |
20885 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20886 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
20887 | } | |
20888 | if (SWIG_IsTmpObj(res3)) { | |
20889 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
20890 | } else { | |
20891 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20892 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
20893 | } | |
20894 | if (SWIG_IsTmpObj(res4)) { | |
20895 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
20896 | } else { | |
20897 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20898 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
20899 | } | |
20900 | if (SWIG_IsTmpObj(res5)) { | |
20901 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
20902 | } else { | |
20903 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20904 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
20905 | } | |
20906 | return resultobj; | |
20907 | fail: | |
20908 | return NULL; | |
20909 | } | |
20910 | ||
20911 | ||
20912 | SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20913 | PyObject *resultobj = 0; | |
20914 | wxDC *arg1 = (wxDC *) 0 ; | |
20915 | wxRect result; | |
20916 | void *argp1 = 0 ; | |
20917 | int res1 = 0 ; | |
20918 | PyObject *swig_obj[1] ; | |
20919 | ||
20920 | if (!args) SWIG_fail; | |
20921 | swig_obj[0] = args; | |
20922 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20923 | if (!SWIG_IsOK(res1)) { | |
20924 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20925 | } | |
20926 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20927 | { | |
20928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20929 | result = wxDC_GetClippingRect(arg1); | |
20930 | wxPyEndAllowThreads(__tstate); | |
20931 | if (PyErr_Occurred()) SWIG_fail; | |
20932 | } | |
20933 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
20934 | return resultobj; | |
20935 | fail: | |
20936 | return NULL; | |
20937 | } | |
20938 | ||
20939 | ||
20940 | SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20941 | PyObject *resultobj = 0; | |
20942 | wxDC *arg1 = (wxDC *) 0 ; | |
20943 | int result; | |
20944 | void *argp1 = 0 ; | |
20945 | int res1 = 0 ; | |
20946 | PyObject *swig_obj[1] ; | |
20947 | ||
20948 | if (!args) SWIG_fail; | |
20949 | swig_obj[0] = args; | |
20950 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20951 | if (!SWIG_IsOK(res1)) { | |
20952 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20953 | } | |
20954 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20955 | { | |
20956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20957 | result = (int)((wxDC const *)arg1)->GetCharHeight(); | |
20958 | wxPyEndAllowThreads(__tstate); | |
20959 | if (PyErr_Occurred()) SWIG_fail; | |
20960 | } | |
20961 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20962 | return resultobj; | |
20963 | fail: | |
20964 | return NULL; | |
20965 | } | |
20966 | ||
20967 | ||
20968 | SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20969 | PyObject *resultobj = 0; | |
20970 | wxDC *arg1 = (wxDC *) 0 ; | |
20971 | int result; | |
20972 | void *argp1 = 0 ; | |
20973 | int res1 = 0 ; | |
20974 | PyObject *swig_obj[1] ; | |
20975 | ||
20976 | if (!args) SWIG_fail; | |
20977 | swig_obj[0] = args; | |
20978 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20979 | if (!SWIG_IsOK(res1)) { | |
20980 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20981 | } | |
20982 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20983 | { | |
20984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20985 | result = (int)((wxDC const *)arg1)->GetCharWidth(); | |
20986 | wxPyEndAllowThreads(__tstate); | |
20987 | if (PyErr_Occurred()) SWIG_fail; | |
20988 | } | |
20989 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20990 | return resultobj; | |
20991 | fail: | |
20992 | return NULL; | |
20993 | } | |
20994 | ||
20995 | ||
20996 | SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20997 | PyObject *resultobj = 0; | |
20998 | wxDC *arg1 = (wxDC *) 0 ; | |
20999 | wxString *arg2 = 0 ; | |
21000 | int *arg3 = (int *) 0 ; | |
21001 | int *arg4 = (int *) 0 ; | |
21002 | void *argp1 = 0 ; | |
21003 | int res1 = 0 ; | |
21004 | bool temp2 = false ; | |
21005 | int temp3 ; | |
21006 | int res3 = SWIG_TMPOBJ ; | |
21007 | int temp4 ; | |
21008 | int res4 = SWIG_TMPOBJ ; | |
21009 | PyObject * obj0 = 0 ; | |
21010 | PyObject * obj1 = 0 ; | |
21011 | char * kwnames[] = { | |
21012 | (char *) "self",(char *) "string", NULL | |
21013 | }; | |
21014 | ||
21015 | arg3 = &temp3; | |
21016 | arg4 = &temp4; | |
21017 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; | |
21018 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21019 | if (!SWIG_IsOK(res1)) { | |
21020 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21021 | } | |
21022 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21023 | { | |
21024 | arg2 = wxString_in_helper(obj1); | |
21025 | if (arg2 == NULL) SWIG_fail; | |
21026 | temp2 = true; | |
21027 | } | |
21028 | { | |
21029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21030 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
21031 | wxPyEndAllowThreads(__tstate); | |
21032 | if (PyErr_Occurred()) SWIG_fail; | |
21033 | } | |
21034 | resultobj = SWIG_Py_Void(); | |
21035 | if (SWIG_IsTmpObj(res3)) { | |
21036 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21037 | } else { | |
21038 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21039 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21040 | } | |
21041 | if (SWIG_IsTmpObj(res4)) { | |
21042 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21043 | } else { | |
21044 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21045 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21046 | } | |
21047 | { | |
21048 | if (temp2) | |
21049 | delete arg2; | |
21050 | } | |
21051 | return resultobj; | |
21052 | fail: | |
21053 | { | |
21054 | if (temp2) | |
21055 | delete arg2; | |
21056 | } | |
21057 | return NULL; | |
21058 | } | |
21059 | ||
21060 | ||
21061 | SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21062 | PyObject *resultobj = 0; | |
21063 | wxDC *arg1 = (wxDC *) 0 ; | |
21064 | wxString *arg2 = 0 ; | |
21065 | int *arg3 = (int *) 0 ; | |
21066 | int *arg4 = (int *) 0 ; | |
21067 | int *arg5 = (int *) 0 ; | |
21068 | int *arg6 = (int *) 0 ; | |
21069 | wxFont *arg7 = (wxFont *) NULL ; | |
21070 | void *argp1 = 0 ; | |
21071 | int res1 = 0 ; | |
21072 | bool temp2 = false ; | |
21073 | int temp3 ; | |
21074 | int res3 = SWIG_TMPOBJ ; | |
21075 | int temp4 ; | |
21076 | int res4 = SWIG_TMPOBJ ; | |
21077 | int temp5 ; | |
21078 | int res5 = SWIG_TMPOBJ ; | |
21079 | int temp6 ; | |
21080 | int res6 = SWIG_TMPOBJ ; | |
21081 | void *argp7 = 0 ; | |
21082 | int res7 = 0 ; | |
21083 | PyObject * obj0 = 0 ; | |
21084 | PyObject * obj1 = 0 ; | |
21085 | PyObject * obj2 = 0 ; | |
21086 | char * kwnames[] = { | |
21087 | (char *) "self",(char *) "string",(char *) "font", NULL | |
21088 | }; | |
21089 | ||
21090 | arg3 = &temp3; | |
21091 | arg4 = &temp4; | |
21092 | arg5 = &temp5; | |
21093 | arg6 = &temp6; | |
21094 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21095 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21096 | if (!SWIG_IsOK(res1)) { | |
21097 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21098 | } | |
21099 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21100 | { | |
21101 | arg2 = wxString_in_helper(obj1); | |
21102 | if (arg2 == NULL) SWIG_fail; | |
21103 | temp2 = true; | |
21104 | } | |
21105 | if (obj2) { | |
21106 | res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 ); | |
21107 | if (!SWIG_IsOK(res7)) { | |
21108 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'"); | |
093d3ff1 | 21109 | } |
0085ce49 RD |
21110 | arg7 = reinterpret_cast< wxFont * >(argp7); |
21111 | } | |
21112 | { | |
21113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21114 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
21115 | wxPyEndAllowThreads(__tstate); | |
21116 | if (PyErr_Occurred()) SWIG_fail; | |
21117 | } | |
21118 | resultobj = SWIG_Py_Void(); | |
21119 | if (SWIG_IsTmpObj(res3)) { | |
21120 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21121 | } else { | |
21122 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21123 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21124 | } | |
21125 | if (SWIG_IsTmpObj(res4)) { | |
21126 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21127 | } else { | |
21128 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21129 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21130 | } | |
21131 | if (SWIG_IsTmpObj(res5)) { | |
21132 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
21133 | } else { | |
21134 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21135 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
21136 | } | |
21137 | if (SWIG_IsTmpObj(res6)) { | |
21138 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6))); | |
21139 | } else { | |
21140 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21141 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags)); | |
21142 | } | |
21143 | { | |
21144 | if (temp2) | |
21145 | delete arg2; | |
21146 | } | |
21147 | return resultobj; | |
21148 | fail: | |
21149 | { | |
21150 | if (temp2) | |
21151 | delete arg2; | |
21152 | } | |
21153 | return NULL; | |
21154 | } | |
21155 | ||
21156 | ||
21157 | SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21158 | PyObject *resultobj = 0; | |
21159 | wxDC *arg1 = (wxDC *) 0 ; | |
21160 | wxString *arg2 = 0 ; | |
21161 | int *arg3 = (int *) 0 ; | |
21162 | int *arg4 = (int *) 0 ; | |
21163 | int *arg5 = (int *) 0 ; | |
21164 | wxFont *arg6 = (wxFont *) NULL ; | |
21165 | void *argp1 = 0 ; | |
21166 | int res1 = 0 ; | |
21167 | bool temp2 = false ; | |
21168 | int temp3 ; | |
21169 | int res3 = SWIG_TMPOBJ ; | |
21170 | int temp4 ; | |
21171 | int res4 = SWIG_TMPOBJ ; | |
21172 | int temp5 ; | |
21173 | int res5 = SWIG_TMPOBJ ; | |
21174 | void *argp6 = 0 ; | |
21175 | int res6 = 0 ; | |
21176 | PyObject * obj0 = 0 ; | |
21177 | PyObject * obj1 = 0 ; | |
21178 | PyObject * obj2 = 0 ; | |
21179 | char * kwnames[] = { | |
21180 | (char *) "self",(char *) "text",(char *) "font", NULL | |
21181 | }; | |
21182 | ||
21183 | arg3 = &temp3; | |
21184 | arg4 = &temp4; | |
21185 | arg5 = &temp5; | |
21186 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21187 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21188 | if (!SWIG_IsOK(res1)) { | |
21189 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21190 | } | |
21191 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21192 | { | |
21193 | arg2 = wxString_in_helper(obj1); | |
21194 | if (arg2 == NULL) SWIG_fail; | |
21195 | temp2 = true; | |
21196 | } | |
21197 | if (obj2) { | |
21198 | res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 ); | |
21199 | if (!SWIG_IsOK(res6)) { | |
21200 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'"); | |
093d3ff1 | 21201 | } |
0085ce49 RD |
21202 | arg6 = reinterpret_cast< wxFont * >(argp6); |
21203 | } | |
21204 | { | |
21205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21206 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
21207 | wxPyEndAllowThreads(__tstate); | |
21208 | if (PyErr_Occurred()) SWIG_fail; | |
21209 | } | |
21210 | resultobj = SWIG_Py_Void(); | |
21211 | if (SWIG_IsTmpObj(res3)) { | |
21212 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21213 | } else { | |
21214 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21215 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21216 | } | |
21217 | if (SWIG_IsTmpObj(res4)) { | |
21218 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21219 | } else { | |
21220 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21221 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21222 | } | |
21223 | if (SWIG_IsTmpObj(res5)) { | |
21224 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
21225 | } else { | |
21226 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21227 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
21228 | } | |
21229 | { | |
21230 | if (temp2) | |
21231 | delete arg2; | |
21232 | } | |
21233 | return resultobj; | |
21234 | fail: | |
21235 | { | |
21236 | if (temp2) | |
21237 | delete arg2; | |
21238 | } | |
21239 | return NULL; | |
21240 | } | |
21241 | ||
21242 | ||
21243 | SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21244 | PyObject *resultobj = 0; | |
21245 | wxDC *arg1 = (wxDC *) 0 ; | |
21246 | wxString *arg2 = 0 ; | |
21247 | wxArrayInt result; | |
21248 | void *argp1 = 0 ; | |
21249 | int res1 = 0 ; | |
21250 | bool temp2 = false ; | |
21251 | PyObject * obj0 = 0 ; | |
21252 | PyObject * obj1 = 0 ; | |
21253 | char * kwnames[] = { | |
21254 | (char *) "self",(char *) "text", NULL | |
21255 | }; | |
21256 | ||
21257 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; | |
21258 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21259 | if (!SWIG_IsOK(res1)) { | |
21260 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21261 | } | |
21262 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21263 | { | |
21264 | arg2 = wxString_in_helper(obj1); | |
21265 | if (arg2 == NULL) SWIG_fail; | |
21266 | temp2 = true; | |
21267 | } | |
21268 | { | |
21269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21270 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
21271 | wxPyEndAllowThreads(__tstate); | |
21272 | if (PyErr_Occurred()) SWIG_fail; | |
21273 | } | |
21274 | { | |
b39fe951 | 21275 | resultobj = wxArrayInt2PyList_helper(result); |
0085ce49 RD |
21276 | } |
21277 | { | |
21278 | if (temp2) | |
21279 | delete arg2; | |
21280 | } | |
21281 | return resultobj; | |
21282 | fail: | |
21283 | { | |
21284 | if (temp2) | |
21285 | delete arg2; | |
21286 | } | |
21287 | return NULL; | |
21288 | } | |
21289 | ||
21290 | ||
21291 | SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21292 | PyObject *resultobj = 0; | |
21293 | wxDC *arg1 = (wxDC *) 0 ; | |
21294 | wxSize result; | |
21295 | void *argp1 = 0 ; | |
21296 | int res1 = 0 ; | |
21297 | PyObject *swig_obj[1] ; | |
21298 | ||
21299 | if (!args) SWIG_fail; | |
21300 | swig_obj[0] = args; | |
21301 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21302 | if (!SWIG_IsOK(res1)) { | |
21303 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21304 | } | |
21305 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21306 | { | |
21307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21308 | result = (arg1)->GetSize(); | |
21309 | wxPyEndAllowThreads(__tstate); | |
21310 | if (PyErr_Occurred()) SWIG_fail; | |
21311 | } | |
21312 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21313 | return resultobj; | |
21314 | fail: | |
21315 | return NULL; | |
21316 | } | |
21317 | ||
21318 | ||
21319 | SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21320 | PyObject *resultobj = 0; | |
21321 | wxDC *arg1 = (wxDC *) 0 ; | |
21322 | int *arg2 = (int *) 0 ; | |
21323 | int *arg3 = (int *) 0 ; | |
21324 | void *argp1 = 0 ; | |
21325 | int res1 = 0 ; | |
21326 | int temp2 ; | |
21327 | int res2 = SWIG_TMPOBJ ; | |
21328 | int temp3 ; | |
21329 | int res3 = SWIG_TMPOBJ ; | |
21330 | PyObject *swig_obj[1] ; | |
21331 | ||
21332 | arg2 = &temp2; | |
21333 | arg3 = &temp3; | |
21334 | if (!args) SWIG_fail; | |
21335 | swig_obj[0] = args; | |
21336 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21337 | if (!SWIG_IsOK(res1)) { | |
21338 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21339 | } | |
21340 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21341 | { | |
21342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21343 | (arg1)->GetSize(arg2,arg3); | |
21344 | wxPyEndAllowThreads(__tstate); | |
21345 | if (PyErr_Occurred()) SWIG_fail; | |
21346 | } | |
21347 | resultobj = SWIG_Py_Void(); | |
21348 | if (SWIG_IsTmpObj(res2)) { | |
21349 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21350 | } else { | |
21351 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21352 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21353 | } | |
21354 | if (SWIG_IsTmpObj(res3)) { | |
21355 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21356 | } else { | |
21357 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21358 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21359 | } | |
21360 | return resultobj; | |
21361 | fail: | |
21362 | return NULL; | |
21363 | } | |
21364 | ||
21365 | ||
21366 | SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21367 | PyObject *resultobj = 0; | |
21368 | wxDC *arg1 = (wxDC *) 0 ; | |
21369 | wxSize result; | |
21370 | void *argp1 = 0 ; | |
21371 | int res1 = 0 ; | |
21372 | PyObject *swig_obj[1] ; | |
21373 | ||
21374 | if (!args) SWIG_fail; | |
21375 | swig_obj[0] = args; | |
21376 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21377 | if (!SWIG_IsOK(res1)) { | |
21378 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21379 | } | |
21380 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21381 | { | |
21382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21383 | result = ((wxDC const *)arg1)->GetSizeMM(); | |
21384 | wxPyEndAllowThreads(__tstate); | |
21385 | if (PyErr_Occurred()) SWIG_fail; | |
21386 | } | |
21387 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21388 | return resultobj; | |
21389 | fail: | |
21390 | return NULL; | |
21391 | } | |
21392 | ||
21393 | ||
21394 | SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21395 | PyObject *resultobj = 0; | |
21396 | wxDC *arg1 = (wxDC *) 0 ; | |
21397 | int *arg2 = (int *) 0 ; | |
21398 | int *arg3 = (int *) 0 ; | |
21399 | void *argp1 = 0 ; | |
21400 | int res1 = 0 ; | |
21401 | int temp2 ; | |
21402 | int res2 = SWIG_TMPOBJ ; | |
21403 | int temp3 ; | |
21404 | int res3 = SWIG_TMPOBJ ; | |
21405 | PyObject *swig_obj[1] ; | |
21406 | ||
21407 | arg2 = &temp2; | |
21408 | arg3 = &temp3; | |
21409 | if (!args) SWIG_fail; | |
21410 | swig_obj[0] = args; | |
21411 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21412 | if (!SWIG_IsOK(res1)) { | |
21413 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21414 | } | |
21415 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21416 | { | |
21417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21418 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
21419 | wxPyEndAllowThreads(__tstate); | |
21420 | if (PyErr_Occurred()) SWIG_fail; | |
21421 | } | |
21422 | resultobj = SWIG_Py_Void(); | |
21423 | if (SWIG_IsTmpObj(res2)) { | |
21424 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21425 | } else { | |
21426 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21427 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21428 | } | |
21429 | if (SWIG_IsTmpObj(res3)) { | |
21430 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21431 | } else { | |
21432 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21433 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21434 | } | |
21435 | return resultobj; | |
21436 | fail: | |
21437 | return NULL; | |
21438 | } | |
21439 | ||
21440 | ||
21441 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21442 | PyObject *resultobj = 0; | |
21443 | wxDC *arg1 = (wxDC *) 0 ; | |
21444 | int arg2 ; | |
21445 | int result; | |
21446 | void *argp1 = 0 ; | |
21447 | int res1 = 0 ; | |
21448 | int val2 ; | |
21449 | int ecode2 = 0 ; | |
21450 | PyObject * obj0 = 0 ; | |
21451 | PyObject * obj1 = 0 ; | |
21452 | char * kwnames[] = { | |
21453 | (char *) "self",(char *) "x", NULL | |
21454 | }; | |
21455 | ||
21456 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail; | |
21457 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21458 | if (!SWIG_IsOK(res1)) { | |
21459 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21460 | } | |
21461 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21462 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21463 | if (!SWIG_IsOK(ecode2)) { | |
21464 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'"); | |
21465 | } | |
21466 | arg2 = static_cast< int >(val2); | |
21467 | { | |
21468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21469 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); | |
21470 | wxPyEndAllowThreads(__tstate); | |
21471 | if (PyErr_Occurred()) SWIG_fail; | |
21472 | } | |
21473 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21474 | return resultobj; | |
21475 | fail: | |
21476 | return NULL; | |
21477 | } | |
21478 | ||
21479 | ||
21480 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21481 | PyObject *resultobj = 0; | |
21482 | wxDC *arg1 = (wxDC *) 0 ; | |
21483 | int arg2 ; | |
21484 | int result; | |
21485 | void *argp1 = 0 ; | |
21486 | int res1 = 0 ; | |
21487 | int val2 ; | |
21488 | int ecode2 = 0 ; | |
21489 | PyObject * obj0 = 0 ; | |
21490 | PyObject * obj1 = 0 ; | |
21491 | char * kwnames[] = { | |
21492 | (char *) "self",(char *) "y", NULL | |
21493 | }; | |
21494 | ||
21495 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail; | |
21496 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21497 | if (!SWIG_IsOK(res1)) { | |
21498 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21499 | } | |
21500 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21501 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21502 | if (!SWIG_IsOK(ecode2)) { | |
21503 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'"); | |
21504 | } | |
21505 | arg2 = static_cast< int >(val2); | |
21506 | { | |
21507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21508 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); | |
21509 | wxPyEndAllowThreads(__tstate); | |
21510 | if (PyErr_Occurred()) SWIG_fail; | |
21511 | } | |
21512 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21513 | return resultobj; | |
21514 | fail: | |
21515 | return NULL; | |
21516 | } | |
21517 | ||
21518 | ||
21519 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21520 | PyObject *resultobj = 0; | |
21521 | wxDC *arg1 = (wxDC *) 0 ; | |
21522 | int arg2 ; | |
21523 | int result; | |
21524 | void *argp1 = 0 ; | |
21525 | int res1 = 0 ; | |
21526 | int val2 ; | |
21527 | int ecode2 = 0 ; | |
21528 | PyObject * obj0 = 0 ; | |
21529 | PyObject * obj1 = 0 ; | |
21530 | char * kwnames[] = { | |
21531 | (char *) "self",(char *) "x", NULL | |
21532 | }; | |
21533 | ||
21534 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
21535 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21536 | if (!SWIG_IsOK(res1)) { | |
21537 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21538 | } | |
21539 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21540 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21541 | if (!SWIG_IsOK(ecode2)) { | |
21542 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'"); | |
21543 | } | |
21544 | arg2 = static_cast< int >(val2); | |
21545 | { | |
21546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21547 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); | |
21548 | wxPyEndAllowThreads(__tstate); | |
21549 | if (PyErr_Occurred()) SWIG_fail; | |
21550 | } | |
21551 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21552 | return resultobj; | |
21553 | fail: | |
21554 | return NULL; | |
21555 | } | |
21556 | ||
21557 | ||
21558 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21559 | PyObject *resultobj = 0; | |
21560 | wxDC *arg1 = (wxDC *) 0 ; | |
21561 | int arg2 ; | |
21562 | int result; | |
21563 | void *argp1 = 0 ; | |
21564 | int res1 = 0 ; | |
21565 | int val2 ; | |
21566 | int ecode2 = 0 ; | |
21567 | PyObject * obj0 = 0 ; | |
21568 | PyObject * obj1 = 0 ; | |
21569 | char * kwnames[] = { | |
21570 | (char *) "self",(char *) "y", NULL | |
21571 | }; | |
21572 | ||
21573 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
21574 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21575 | if (!SWIG_IsOK(res1)) { | |
21576 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21577 | } | |
21578 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21579 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21580 | if (!SWIG_IsOK(ecode2)) { | |
21581 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'"); | |
21582 | } | |
21583 | arg2 = static_cast< int >(val2); | |
21584 | { | |
21585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21586 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); | |
21587 | wxPyEndAllowThreads(__tstate); | |
21588 | if (PyErr_Occurred()) SWIG_fail; | |
21589 | } | |
21590 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21591 | return resultobj; | |
21592 | fail: | |
21593 | return NULL; | |
21594 | } | |
21595 | ||
21596 | ||
21597 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21598 | PyObject *resultobj = 0; | |
21599 | wxDC *arg1 = (wxDC *) 0 ; | |
21600 | int arg2 ; | |
21601 | int result; | |
21602 | void *argp1 = 0 ; | |
21603 | int res1 = 0 ; | |
21604 | int val2 ; | |
21605 | int ecode2 = 0 ; | |
21606 | PyObject * obj0 = 0 ; | |
21607 | PyObject * obj1 = 0 ; | |
21608 | char * kwnames[] = { | |
21609 | (char *) "self",(char *) "x", NULL | |
21610 | }; | |
21611 | ||
21612 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail; | |
21613 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21614 | if (!SWIG_IsOK(res1)) { | |
21615 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21616 | } | |
21617 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21618 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21619 | if (!SWIG_IsOK(ecode2)) { | |
21620 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'"); | |
21621 | } | |
21622 | arg2 = static_cast< int >(val2); | |
21623 | { | |
21624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21625 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); | |
21626 | wxPyEndAllowThreads(__tstate); | |
21627 | if (PyErr_Occurred()) SWIG_fail; | |
21628 | } | |
21629 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21630 | return resultobj; | |
21631 | fail: | |
21632 | return NULL; | |
21633 | } | |
21634 | ||
21635 | ||
21636 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21637 | PyObject *resultobj = 0; | |
21638 | wxDC *arg1 = (wxDC *) 0 ; | |
21639 | int arg2 ; | |
21640 | int result; | |
21641 | void *argp1 = 0 ; | |
21642 | int res1 = 0 ; | |
21643 | int val2 ; | |
21644 | int ecode2 = 0 ; | |
21645 | PyObject * obj0 = 0 ; | |
21646 | PyObject * obj1 = 0 ; | |
21647 | char * kwnames[] = { | |
21648 | (char *) "self",(char *) "y", NULL | |
21649 | }; | |
21650 | ||
21651 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail; | |
21652 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21653 | if (!SWIG_IsOK(res1)) { | |
21654 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21655 | } | |
21656 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21657 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21658 | if (!SWIG_IsOK(ecode2)) { | |
21659 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'"); | |
21660 | } | |
21661 | arg2 = static_cast< int >(val2); | |
21662 | { | |
21663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21664 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); | |
21665 | wxPyEndAllowThreads(__tstate); | |
21666 | if (PyErr_Occurred()) SWIG_fail; | |
21667 | } | |
21668 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21669 | return resultobj; | |
21670 | fail: | |
21671 | return NULL; | |
21672 | } | |
21673 | ||
21674 | ||
21675 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21676 | PyObject *resultobj = 0; | |
21677 | wxDC *arg1 = (wxDC *) 0 ; | |
21678 | int arg2 ; | |
21679 | int result; | |
21680 | void *argp1 = 0 ; | |
21681 | int res1 = 0 ; | |
21682 | int val2 ; | |
21683 | int ecode2 = 0 ; | |
21684 | PyObject * obj0 = 0 ; | |
21685 | PyObject * obj1 = 0 ; | |
21686 | char * kwnames[] = { | |
21687 | (char *) "self",(char *) "x", NULL | |
21688 | }; | |
21689 | ||
21690 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
21691 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21692 | if (!SWIG_IsOK(res1)) { | |
21693 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21694 | } | |
21695 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21696 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21697 | if (!SWIG_IsOK(ecode2)) { | |
21698 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'"); | |
21699 | } | |
21700 | arg2 = static_cast< int >(val2); | |
21701 | { | |
21702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21703 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); | |
21704 | wxPyEndAllowThreads(__tstate); | |
21705 | if (PyErr_Occurred()) SWIG_fail; | |
21706 | } | |
21707 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21708 | return resultobj; | |
21709 | fail: | |
21710 | return NULL; | |
21711 | } | |
21712 | ||
21713 | ||
21714 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21715 | PyObject *resultobj = 0; | |
21716 | wxDC *arg1 = (wxDC *) 0 ; | |
21717 | int arg2 ; | |
21718 | int result; | |
21719 | void *argp1 = 0 ; | |
21720 | int res1 = 0 ; | |
21721 | int val2 ; | |
21722 | int ecode2 = 0 ; | |
21723 | PyObject * obj0 = 0 ; | |
21724 | PyObject * obj1 = 0 ; | |
21725 | char * kwnames[] = { | |
21726 | (char *) "self",(char *) "y", NULL | |
21727 | }; | |
21728 | ||
21729 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
21730 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21731 | if (!SWIG_IsOK(res1)) { | |
21732 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21733 | } | |
21734 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21735 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21736 | if (!SWIG_IsOK(ecode2)) { | |
21737 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'"); | |
21738 | } | |
21739 | arg2 = static_cast< int >(val2); | |
21740 | { | |
21741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21742 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); | |
21743 | wxPyEndAllowThreads(__tstate); | |
21744 | if (PyErr_Occurred()) SWIG_fail; | |
21745 | } | |
21746 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21747 | return resultobj; | |
21748 | fail: | |
21749 | return NULL; | |
21750 | } | |
21751 | ||
21752 | ||
21753 | SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21754 | PyObject *resultobj = 0; | |
21755 | wxDC *arg1 = (wxDC *) 0 ; | |
21756 | bool result; | |
21757 | void *argp1 = 0 ; | |
21758 | int res1 = 0 ; | |
21759 | PyObject *swig_obj[1] ; | |
21760 | ||
21761 | if (!args) SWIG_fail; | |
21762 | swig_obj[0] = args; | |
21763 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21764 | if (!SWIG_IsOK(res1)) { | |
21765 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21766 | } | |
21767 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21768 | { | |
21769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21770 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
21771 | wxPyEndAllowThreads(__tstate); | |
21772 | if (PyErr_Occurred()) SWIG_fail; | |
21773 | } | |
21774 | { | |
21775 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21776 | } | |
21777 | return resultobj; | |
21778 | fail: | |
21779 | return NULL; | |
21780 | } | |
21781 | ||
21782 | ||
21783 | SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21784 | PyObject *resultobj = 0; | |
21785 | wxDC *arg1 = (wxDC *) 0 ; | |
21786 | bool result; | |
21787 | void *argp1 = 0 ; | |
21788 | int res1 = 0 ; | |
21789 | PyObject *swig_obj[1] ; | |
21790 | ||
21791 | if (!args) SWIG_fail; | |
21792 | swig_obj[0] = args; | |
21793 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21794 | if (!SWIG_IsOK(res1)) { | |
21795 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21796 | } | |
21797 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21798 | { | |
21799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21800 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
21801 | wxPyEndAllowThreads(__tstate); | |
21802 | if (PyErr_Occurred()) SWIG_fail; | |
21803 | } | |
21804 | { | |
21805 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21806 | } | |
21807 | return resultobj; | |
21808 | fail: | |
21809 | return NULL; | |
21810 | } | |
21811 | ||
21812 | ||
21813 | SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21814 | PyObject *resultobj = 0; | |
21815 | wxDC *arg1 = (wxDC *) 0 ; | |
21816 | int result; | |
21817 | void *argp1 = 0 ; | |
21818 | int res1 = 0 ; | |
21819 | PyObject *swig_obj[1] ; | |
21820 | ||
21821 | if (!args) SWIG_fail; | |
21822 | swig_obj[0] = args; | |
21823 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21824 | if (!SWIG_IsOK(res1)) { | |
21825 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21826 | } | |
21827 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21828 | { | |
21829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21830 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
21831 | wxPyEndAllowThreads(__tstate); | |
21832 | if (PyErr_Occurred()) SWIG_fail; | |
21833 | } | |
21834 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21835 | return resultobj; | |
21836 | fail: | |
21837 | return NULL; | |
21838 | } | |
21839 | ||
21840 | ||
21841 | SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21842 | PyObject *resultobj = 0; | |
21843 | wxDC *arg1 = (wxDC *) 0 ; | |
21844 | wxSize result; | |
21845 | void *argp1 = 0 ; | |
21846 | int res1 = 0 ; | |
21847 | PyObject *swig_obj[1] ; | |
21848 | ||
21849 | if (!args) SWIG_fail; | |
21850 | swig_obj[0] = args; | |
21851 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21852 | if (!SWIG_IsOK(res1)) { | |
21853 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21854 | } | |
21855 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21856 | { | |
21857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21858 | result = ((wxDC const *)arg1)->GetPPI(); | |
21859 | wxPyEndAllowThreads(__tstate); | |
21860 | if (PyErr_Occurred()) SWIG_fail; | |
21861 | } | |
21862 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21863 | return resultobj; | |
21864 | fail: | |
21865 | return NULL; | |
21866 | } | |
21867 | ||
21868 | ||
b39fe951 | 21869 | SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
21870 | PyObject *resultobj = 0; |
21871 | wxDC *arg1 = (wxDC *) 0 ; | |
21872 | bool result; | |
21873 | void *argp1 = 0 ; | |
21874 | int res1 = 0 ; | |
21875 | PyObject *swig_obj[1] ; | |
21876 | ||
21877 | if (!args) SWIG_fail; | |
21878 | swig_obj[0] = args; | |
21879 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21880 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 21881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'"); |
0085ce49 RD |
21882 | } |
21883 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21884 | { | |
21885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 21886 | result = (bool)((wxDC const *)arg1)->IsOk(); |
0085ce49 RD |
21887 | wxPyEndAllowThreads(__tstate); |
21888 | if (PyErr_Occurred()) SWIG_fail; | |
21889 | } | |
21890 | { | |
21891 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21892 | } | |
21893 | return resultobj; | |
21894 | fail: | |
21895 | return NULL; | |
21896 | } | |
21897 | ||
21898 | ||
21899 | SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21900 | PyObject *resultobj = 0; | |
21901 | wxDC *arg1 = (wxDC *) 0 ; | |
21902 | int result; | |
21903 | void *argp1 = 0 ; | |
21904 | int res1 = 0 ; | |
21905 | PyObject *swig_obj[1] ; | |
21906 | ||
21907 | if (!args) SWIG_fail; | |
21908 | swig_obj[0] = args; | |
21909 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21910 | if (!SWIG_IsOK(res1)) { | |
21911 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21912 | } | |
21913 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21914 | { | |
21915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21916 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
21917 | wxPyEndAllowThreads(__tstate); | |
21918 | if (PyErr_Occurred()) SWIG_fail; | |
21919 | } | |
21920 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21921 | return resultobj; | |
21922 | fail: | |
21923 | return NULL; | |
21924 | } | |
21925 | ||
21926 | ||
21927 | SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21928 | PyObject *resultobj = 0; | |
21929 | wxDC *arg1 = (wxDC *) 0 ; | |
21930 | wxBrush *result = 0 ; | |
21931 | void *argp1 = 0 ; | |
21932 | int res1 = 0 ; | |
21933 | PyObject *swig_obj[1] ; | |
21934 | ||
21935 | if (!args) SWIG_fail; | |
21936 | swig_obj[0] = args; | |
21937 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21938 | if (!SWIG_IsOK(res1)) { | |
21939 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21940 | } | |
21941 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21942 | { | |
21943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21944 | { |
0085ce49 RD |
21945 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); |
21946 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 21947 | } |
0085ce49 RD |
21948 | wxPyEndAllowThreads(__tstate); |
21949 | if (PyErr_Occurred()) SWIG_fail; | |
21950 | } | |
21951 | { | |
21952 | wxBrush* resultptr = new wxBrush(*result); | |
21953 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
21954 | } | |
21955 | return resultobj; | |
21956 | fail: | |
21957 | return NULL; | |
21958 | } | |
21959 | ||
21960 | ||
21961 | SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21962 | PyObject *resultobj = 0; | |
21963 | wxDC *arg1 = (wxDC *) 0 ; | |
21964 | wxBrush *result = 0 ; | |
21965 | void *argp1 = 0 ; | |
21966 | int res1 = 0 ; | |
21967 | PyObject *swig_obj[1] ; | |
21968 | ||
21969 | if (!args) SWIG_fail; | |
21970 | swig_obj[0] = args; | |
21971 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21972 | if (!SWIG_IsOK(res1)) { | |
21973 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21974 | } | |
21975 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21976 | { | |
21977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21978 | { |
0085ce49 RD |
21979 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); |
21980 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 21981 | } |
0085ce49 RD |
21982 | wxPyEndAllowThreads(__tstate); |
21983 | if (PyErr_Occurred()) SWIG_fail; | |
21984 | } | |
21985 | { | |
21986 | wxBrush* resultptr = new wxBrush(*result); | |
21987 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
21988 | } | |
21989 | return resultobj; | |
21990 | fail: | |
21991 | return NULL; | |
21992 | } | |
21993 | ||
21994 | ||
21995 | SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21996 | PyObject *resultobj = 0; | |
21997 | wxDC *arg1 = (wxDC *) 0 ; | |
21998 | wxFont *result = 0 ; | |
21999 | void *argp1 = 0 ; | |
22000 | int res1 = 0 ; | |
22001 | PyObject *swig_obj[1] ; | |
22002 | ||
22003 | if (!args) SWIG_fail; | |
22004 | swig_obj[0] = args; | |
22005 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22006 | if (!SWIG_IsOK(res1)) { | |
22007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22008 | } | |
22009 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22010 | { | |
22011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22012 | { |
0085ce49 RD |
22013 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); |
22014 | result = (wxFont *) &_result_ref; | |
093d3ff1 | 22015 | } |
0085ce49 RD |
22016 | wxPyEndAllowThreads(__tstate); |
22017 | if (PyErr_Occurred()) SWIG_fail; | |
22018 | } | |
22019 | { | |
22020 | wxFont* resultptr = new wxFont(*result); | |
22021 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
22022 | } | |
22023 | return resultobj; | |
22024 | fail: | |
22025 | return NULL; | |
22026 | } | |
22027 | ||
22028 | ||
22029 | SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22030 | PyObject *resultobj = 0; | |
22031 | wxDC *arg1 = (wxDC *) 0 ; | |
22032 | wxPen *result = 0 ; | |
22033 | void *argp1 = 0 ; | |
22034 | int res1 = 0 ; | |
22035 | PyObject *swig_obj[1] ; | |
22036 | ||
22037 | if (!args) SWIG_fail; | |
22038 | swig_obj[0] = args; | |
22039 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22040 | if (!SWIG_IsOK(res1)) { | |
22041 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22042 | } | |
22043 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22044 | { | |
22045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22046 | { |
0085ce49 RD |
22047 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); |
22048 | result = (wxPen *) &_result_ref; | |
093d3ff1 | 22049 | } |
0085ce49 RD |
22050 | wxPyEndAllowThreads(__tstate); |
22051 | if (PyErr_Occurred()) SWIG_fail; | |
22052 | } | |
22053 | { | |
22054 | wxPen* resultptr = new wxPen(*result); | |
22055 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
22056 | } | |
22057 | return resultobj; | |
22058 | fail: | |
22059 | return NULL; | |
22060 | } | |
22061 | ||
22062 | ||
22063 | SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22064 | PyObject *resultobj = 0; | |
22065 | wxDC *arg1 = (wxDC *) 0 ; | |
22066 | wxColour *result = 0 ; | |
22067 | void *argp1 = 0 ; | |
22068 | int res1 = 0 ; | |
22069 | PyObject *swig_obj[1] ; | |
22070 | ||
22071 | if (!args) SWIG_fail; | |
22072 | swig_obj[0] = args; | |
22073 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22074 | if (!SWIG_IsOK(res1)) { | |
22075 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22076 | } | |
22077 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22078 | { | |
22079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22080 | { |
0085ce49 RD |
22081 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); |
22082 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 22083 | } |
0085ce49 RD |
22084 | wxPyEndAllowThreads(__tstate); |
22085 | if (PyErr_Occurred()) SWIG_fail; | |
22086 | } | |
22087 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
22088 | return resultobj; | |
22089 | fail: | |
22090 | return NULL; | |
22091 | } | |
22092 | ||
22093 | ||
22094 | SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22095 | PyObject *resultobj = 0; | |
22096 | wxDC *arg1 = (wxDC *) 0 ; | |
22097 | wxColour *result = 0 ; | |
22098 | void *argp1 = 0 ; | |
22099 | int res1 = 0 ; | |
22100 | PyObject *swig_obj[1] ; | |
22101 | ||
22102 | if (!args) SWIG_fail; | |
22103 | swig_obj[0] = args; | |
22104 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22105 | if (!SWIG_IsOK(res1)) { | |
22106 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22107 | } | |
22108 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22109 | { | |
22110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22111 | { |
0085ce49 RD |
22112 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); |
22113 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 22114 | } |
0085ce49 RD |
22115 | wxPyEndAllowThreads(__tstate); |
22116 | if (PyErr_Occurred()) SWIG_fail; | |
22117 | } | |
22118 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
22119 | return resultobj; | |
22120 | fail: | |
22121 | return NULL; | |
22122 | } | |
22123 | ||
22124 | ||
22125 | SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22126 | PyObject *resultobj = 0; | |
22127 | wxDC *arg1 = (wxDC *) 0 ; | |
22128 | wxColour *arg2 = 0 ; | |
22129 | void *argp1 = 0 ; | |
22130 | int res1 = 0 ; | |
22131 | wxColour temp2 ; | |
22132 | PyObject * obj0 = 0 ; | |
22133 | PyObject * obj1 = 0 ; | |
22134 | char * kwnames[] = { | |
22135 | (char *) "self",(char *) "colour", NULL | |
22136 | }; | |
22137 | ||
22138 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22139 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22140 | if (!SWIG_IsOK(res1)) { | |
22141 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22142 | } | |
22143 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22144 | { | |
22145 | arg2 = &temp2; | |
22146 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22147 | } | |
22148 | { | |
22149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22150 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
22151 | wxPyEndAllowThreads(__tstate); | |
22152 | if (PyErr_Occurred()) SWIG_fail; | |
22153 | } | |
22154 | resultobj = SWIG_Py_Void(); | |
22155 | return resultobj; | |
22156 | fail: | |
22157 | return NULL; | |
22158 | } | |
22159 | ||
22160 | ||
22161 | SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22162 | PyObject *resultobj = 0; | |
22163 | wxDC *arg1 = (wxDC *) 0 ; | |
22164 | wxColour *arg2 = 0 ; | |
22165 | void *argp1 = 0 ; | |
22166 | int res1 = 0 ; | |
22167 | wxColour temp2 ; | |
22168 | PyObject * obj0 = 0 ; | |
22169 | PyObject * obj1 = 0 ; | |
22170 | char * kwnames[] = { | |
22171 | (char *) "self",(char *) "colour", NULL | |
22172 | }; | |
22173 | ||
22174 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22175 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22176 | if (!SWIG_IsOK(res1)) { | |
22177 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22178 | } | |
22179 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22180 | { | |
22181 | arg2 = &temp2; | |
22182 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22183 | } | |
22184 | { | |
22185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22186 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
22187 | wxPyEndAllowThreads(__tstate); | |
22188 | if (PyErr_Occurred()) SWIG_fail; | |
22189 | } | |
22190 | resultobj = SWIG_Py_Void(); | |
22191 | return resultobj; | |
22192 | fail: | |
22193 | return NULL; | |
22194 | } | |
22195 | ||
22196 | ||
22197 | SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22198 | PyObject *resultobj = 0; | |
22199 | wxDC *arg1 = (wxDC *) 0 ; | |
22200 | int result; | |
22201 | void *argp1 = 0 ; | |
22202 | int res1 = 0 ; | |
22203 | PyObject *swig_obj[1] ; | |
22204 | ||
22205 | if (!args) SWIG_fail; | |
22206 | swig_obj[0] = args; | |
22207 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22208 | if (!SWIG_IsOK(res1)) { | |
22209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22210 | } | |
22211 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22212 | { | |
22213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22214 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
22215 | wxPyEndAllowThreads(__tstate); | |
22216 | if (PyErr_Occurred()) SWIG_fail; | |
22217 | } | |
22218 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22219 | return resultobj; | |
22220 | fail: | |
22221 | return NULL; | |
22222 | } | |
22223 | ||
22224 | ||
22225 | SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22226 | PyObject *resultobj = 0; | |
22227 | wxDC *arg1 = (wxDC *) 0 ; | |
22228 | int arg2 ; | |
22229 | void *argp1 = 0 ; | |
22230 | int res1 = 0 ; | |
22231 | int val2 ; | |
22232 | int ecode2 = 0 ; | |
22233 | PyObject * obj0 = 0 ; | |
22234 | PyObject * obj1 = 0 ; | |
22235 | char * kwnames[] = { | |
22236 | (char *) "self",(char *) "mode", NULL | |
22237 | }; | |
22238 | ||
22239 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
22240 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22241 | if (!SWIG_IsOK(res1)) { | |
22242 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22243 | } | |
22244 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22245 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22246 | if (!SWIG_IsOK(ecode2)) { | |
22247 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'"); | |
22248 | } | |
22249 | arg2 = static_cast< int >(val2); | |
22250 | { | |
22251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22252 | (arg1)->SetMapMode(arg2); | |
22253 | wxPyEndAllowThreads(__tstate); | |
22254 | if (PyErr_Occurred()) SWIG_fail; | |
22255 | } | |
22256 | resultobj = SWIG_Py_Void(); | |
22257 | return resultobj; | |
22258 | fail: | |
22259 | return NULL; | |
22260 | } | |
22261 | ||
22262 | ||
22263 | SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22264 | PyObject *resultobj = 0; | |
22265 | wxDC *arg1 = (wxDC *) 0 ; | |
22266 | double *arg2 = (double *) 0 ; | |
22267 | double *arg3 = (double *) 0 ; | |
22268 | void *argp1 = 0 ; | |
22269 | int res1 = 0 ; | |
22270 | double temp2 ; | |
22271 | int res2 = SWIG_TMPOBJ ; | |
22272 | double temp3 ; | |
22273 | int res3 = SWIG_TMPOBJ ; | |
22274 | PyObject *swig_obj[1] ; | |
22275 | ||
22276 | arg2 = &temp2; | |
22277 | arg3 = &temp3; | |
22278 | if (!args) SWIG_fail; | |
22279 | swig_obj[0] = args; | |
22280 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22281 | if (!SWIG_IsOK(res1)) { | |
22282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22283 | } | |
22284 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22285 | { | |
22286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22287 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
22288 | wxPyEndAllowThreads(__tstate); | |
22289 | if (PyErr_Occurred()) SWIG_fail; | |
22290 | } | |
22291 | resultobj = SWIG_Py_Void(); | |
22292 | if (SWIG_IsTmpObj(res2)) { | |
22293 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
22294 | } else { | |
22295 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22296 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
22297 | } | |
22298 | if (SWIG_IsTmpObj(res3)) { | |
22299 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
22300 | } else { | |
22301 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22302 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
22303 | } | |
22304 | return resultobj; | |
22305 | fail: | |
22306 | return NULL; | |
22307 | } | |
22308 | ||
22309 | ||
22310 | SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22311 | PyObject *resultobj = 0; | |
22312 | wxDC *arg1 = (wxDC *) 0 ; | |
22313 | double arg2 ; | |
22314 | double arg3 ; | |
22315 | void *argp1 = 0 ; | |
22316 | int res1 = 0 ; | |
22317 | double val2 ; | |
22318 | int ecode2 = 0 ; | |
22319 | double val3 ; | |
22320 | int ecode3 = 0 ; | |
22321 | PyObject * obj0 = 0 ; | |
22322 | PyObject * obj1 = 0 ; | |
22323 | PyObject * obj2 = 0 ; | |
22324 | char * kwnames[] = { | |
22325 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22326 | }; | |
22327 | ||
22328 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22329 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22330 | if (!SWIG_IsOK(res1)) { | |
22331 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22332 | } | |
22333 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22334 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
22335 | if (!SWIG_IsOK(ecode2)) { | |
22336 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'"); | |
22337 | } | |
22338 | arg2 = static_cast< double >(val2); | |
22339 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
22340 | if (!SWIG_IsOK(ecode3)) { | |
22341 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'"); | |
22342 | } | |
22343 | arg3 = static_cast< double >(val3); | |
22344 | { | |
22345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22346 | (arg1)->SetUserScale(arg2,arg3); | |
22347 | wxPyEndAllowThreads(__tstate); | |
22348 | if (PyErr_Occurred()) SWIG_fail; | |
22349 | } | |
22350 | resultobj = SWIG_Py_Void(); | |
22351 | return resultobj; | |
22352 | fail: | |
22353 | return NULL; | |
22354 | } | |
22355 | ||
22356 | ||
22357 | SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22358 | PyObject *resultobj = 0; | |
22359 | wxDC *arg1 = (wxDC *) 0 ; | |
22360 | double *arg2 = (double *) 0 ; | |
22361 | double *arg3 = (double *) 0 ; | |
22362 | void *argp1 = 0 ; | |
22363 | int res1 = 0 ; | |
22364 | double temp2 ; | |
22365 | int res2 = SWIG_TMPOBJ ; | |
22366 | double temp3 ; | |
22367 | int res3 = SWIG_TMPOBJ ; | |
22368 | PyObject *swig_obj[1] ; | |
22369 | ||
22370 | arg2 = &temp2; | |
22371 | arg3 = &temp3; | |
22372 | if (!args) SWIG_fail; | |
22373 | swig_obj[0] = args; | |
22374 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22375 | if (!SWIG_IsOK(res1)) { | |
22376 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22377 | } | |
22378 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22379 | { | |
22380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22381 | (arg1)->GetLogicalScale(arg2,arg3); | |
22382 | wxPyEndAllowThreads(__tstate); | |
22383 | if (PyErr_Occurred()) SWIG_fail; | |
22384 | } | |
22385 | resultobj = SWIG_Py_Void(); | |
22386 | if (SWIG_IsTmpObj(res2)) { | |
22387 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
22388 | } else { | |
22389 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22390 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
22391 | } | |
22392 | if (SWIG_IsTmpObj(res3)) { | |
22393 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
22394 | } else { | |
22395 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22396 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
22397 | } | |
22398 | return resultobj; | |
22399 | fail: | |
22400 | return NULL; | |
22401 | } | |
22402 | ||
22403 | ||
22404 | SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22405 | PyObject *resultobj = 0; | |
22406 | wxDC *arg1 = (wxDC *) 0 ; | |
22407 | double arg2 ; | |
22408 | double arg3 ; | |
22409 | void *argp1 = 0 ; | |
22410 | int res1 = 0 ; | |
22411 | double val2 ; | |
22412 | int ecode2 = 0 ; | |
22413 | double val3 ; | |
22414 | int ecode3 = 0 ; | |
22415 | PyObject * obj0 = 0 ; | |
22416 | PyObject * obj1 = 0 ; | |
22417 | PyObject * obj2 = 0 ; | |
22418 | char * kwnames[] = { | |
22419 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22420 | }; | |
22421 | ||
22422 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22423 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22424 | if (!SWIG_IsOK(res1)) { | |
22425 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22426 | } | |
22427 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22428 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
22429 | if (!SWIG_IsOK(ecode2)) { | |
22430 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'"); | |
22431 | } | |
22432 | arg2 = static_cast< double >(val2); | |
22433 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
22434 | if (!SWIG_IsOK(ecode3)) { | |
22435 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'"); | |
22436 | } | |
22437 | arg3 = static_cast< double >(val3); | |
22438 | { | |
22439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22440 | (arg1)->SetLogicalScale(arg2,arg3); | |
22441 | wxPyEndAllowThreads(__tstate); | |
22442 | if (PyErr_Occurred()) SWIG_fail; | |
22443 | } | |
22444 | resultobj = SWIG_Py_Void(); | |
22445 | return resultobj; | |
22446 | fail: | |
22447 | return NULL; | |
22448 | } | |
22449 | ||
22450 | ||
22451 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22452 | PyObject *resultobj = 0; | |
22453 | wxDC *arg1 = (wxDC *) 0 ; | |
22454 | wxPoint result; | |
22455 | void *argp1 = 0 ; | |
22456 | int res1 = 0 ; | |
22457 | PyObject *swig_obj[1] ; | |
22458 | ||
22459 | if (!args) SWIG_fail; | |
22460 | swig_obj[0] = args; | |
22461 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22462 | if (!SWIG_IsOK(res1)) { | |
22463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22464 | } | |
22465 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22466 | { | |
22467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22468 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); | |
22469 | wxPyEndAllowThreads(__tstate); | |
22470 | if (PyErr_Occurred()) SWIG_fail; | |
22471 | } | |
22472 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
22473 | return resultobj; | |
22474 | fail: | |
22475 | return NULL; | |
22476 | } | |
22477 | ||
22478 | ||
22479 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22480 | PyObject *resultobj = 0; | |
22481 | wxDC *arg1 = (wxDC *) 0 ; | |
22482 | int *arg2 = (int *) 0 ; | |
22483 | int *arg3 = (int *) 0 ; | |
22484 | void *argp1 = 0 ; | |
22485 | int res1 = 0 ; | |
22486 | int temp2 ; | |
22487 | int res2 = SWIG_TMPOBJ ; | |
22488 | int temp3 ; | |
22489 | int res3 = SWIG_TMPOBJ ; | |
22490 | PyObject *swig_obj[1] ; | |
22491 | ||
22492 | arg2 = &temp2; | |
22493 | arg3 = &temp3; | |
22494 | if (!args) SWIG_fail; | |
22495 | swig_obj[0] = args; | |
22496 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22497 | if (!SWIG_IsOK(res1)) { | |
22498 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22499 | } | |
22500 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22501 | { | |
22502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22503 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); | |
22504 | wxPyEndAllowThreads(__tstate); | |
22505 | if (PyErr_Occurred()) SWIG_fail; | |
22506 | } | |
22507 | resultobj = SWIG_Py_Void(); | |
22508 | if (SWIG_IsTmpObj(res2)) { | |
22509 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22510 | } else { | |
22511 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22512 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22513 | } | |
22514 | if (SWIG_IsTmpObj(res3)) { | |
22515 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22516 | } else { | |
22517 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22518 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22519 | } | |
22520 | return resultobj; | |
22521 | fail: | |
22522 | return NULL; | |
22523 | } | |
22524 | ||
22525 | ||
22526 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22527 | PyObject *resultobj = 0; | |
22528 | wxDC *arg1 = (wxDC *) 0 ; | |
22529 | int arg2 ; | |
22530 | int arg3 ; | |
22531 | void *argp1 = 0 ; | |
22532 | int res1 = 0 ; | |
22533 | int val2 ; | |
22534 | int ecode2 = 0 ; | |
22535 | int val3 ; | |
22536 | int ecode3 = 0 ; | |
22537 | PyObject * obj0 = 0 ; | |
22538 | PyObject * obj1 = 0 ; | |
22539 | PyObject * obj2 = 0 ; | |
22540 | char * kwnames[] = { | |
22541 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22542 | }; | |
22543 | ||
22544 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) 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_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22548 | } | |
22549 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22550 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22551 | if (!SWIG_IsOK(ecode2)) { | |
22552 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'"); | |
22553 | } | |
22554 | arg2 = static_cast< int >(val2); | |
22555 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22556 | if (!SWIG_IsOK(ecode3)) { | |
22557 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'"); | |
22558 | } | |
22559 | arg3 = static_cast< int >(val3); | |
22560 | { | |
22561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22562 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
22563 | wxPyEndAllowThreads(__tstate); | |
22564 | if (PyErr_Occurred()) SWIG_fail; | |
22565 | } | |
22566 | resultobj = SWIG_Py_Void(); | |
22567 | return resultobj; | |
22568 | fail: | |
22569 | return NULL; | |
22570 | } | |
22571 | ||
22572 | ||
22573 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22574 | PyObject *resultobj = 0; | |
22575 | wxDC *arg1 = (wxDC *) 0 ; | |
22576 | wxPoint *arg2 = 0 ; | |
22577 | void *argp1 = 0 ; | |
22578 | int res1 = 0 ; | |
22579 | wxPoint temp2 ; | |
22580 | PyObject * obj0 = 0 ; | |
22581 | PyObject * obj1 = 0 ; | |
22582 | char * kwnames[] = { | |
22583 | (char *) "self",(char *) "point", NULL | |
22584 | }; | |
22585 | ||
22586 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
22587 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22588 | if (!SWIG_IsOK(res1)) { | |
22589 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22590 | } | |
22591 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22592 | { | |
22593 | arg2 = &temp2; | |
22594 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22595 | } | |
22596 | { | |
22597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22598 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); | |
22599 | wxPyEndAllowThreads(__tstate); | |
22600 | if (PyErr_Occurred()) SWIG_fail; | |
22601 | } | |
22602 | resultobj = SWIG_Py_Void(); | |
22603 | return resultobj; | |
22604 | fail: | |
22605 | return NULL; | |
22606 | } | |
22607 | ||
22608 | ||
22609 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22610 | PyObject *resultobj = 0; | |
22611 | wxDC *arg1 = (wxDC *) 0 ; | |
22612 | wxPoint result; | |
22613 | void *argp1 = 0 ; | |
22614 | int res1 = 0 ; | |
22615 | PyObject *swig_obj[1] ; | |
22616 | ||
22617 | if (!args) SWIG_fail; | |
22618 | swig_obj[0] = args; | |
22619 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22620 | if (!SWIG_IsOK(res1)) { | |
22621 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22622 | } | |
22623 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22624 | { | |
22625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22626 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); | |
22627 | wxPyEndAllowThreads(__tstate); | |
22628 | if (PyErr_Occurred()) SWIG_fail; | |
22629 | } | |
22630 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
22631 | return resultobj; | |
22632 | fail: | |
22633 | return NULL; | |
22634 | } | |
22635 | ||
22636 | ||
22637 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22638 | PyObject *resultobj = 0; | |
22639 | wxDC *arg1 = (wxDC *) 0 ; | |
22640 | int *arg2 = (int *) 0 ; | |
22641 | int *arg3 = (int *) 0 ; | |
22642 | void *argp1 = 0 ; | |
22643 | int res1 = 0 ; | |
22644 | int temp2 ; | |
22645 | int res2 = SWIG_TMPOBJ ; | |
22646 | int temp3 ; | |
22647 | int res3 = SWIG_TMPOBJ ; | |
22648 | PyObject *swig_obj[1] ; | |
22649 | ||
22650 | arg2 = &temp2; | |
22651 | arg3 = &temp3; | |
22652 | if (!args) SWIG_fail; | |
22653 | swig_obj[0] = args; | |
22654 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22655 | if (!SWIG_IsOK(res1)) { | |
22656 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22657 | } | |
22658 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22659 | { | |
22660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22661 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); | |
22662 | wxPyEndAllowThreads(__tstate); | |
22663 | if (PyErr_Occurred()) SWIG_fail; | |
22664 | } | |
22665 | resultobj = SWIG_Py_Void(); | |
22666 | if (SWIG_IsTmpObj(res2)) { | |
22667 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22668 | } else { | |
22669 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22670 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22671 | } | |
22672 | if (SWIG_IsTmpObj(res3)) { | |
22673 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22674 | } else { | |
22675 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22676 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22677 | } | |
22678 | return resultobj; | |
22679 | fail: | |
22680 | return NULL; | |
22681 | } | |
22682 | ||
22683 | ||
22684 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22685 | PyObject *resultobj = 0; | |
22686 | wxDC *arg1 = (wxDC *) 0 ; | |
22687 | int arg2 ; | |
22688 | int arg3 ; | |
22689 | void *argp1 = 0 ; | |
22690 | int res1 = 0 ; | |
22691 | int val2 ; | |
22692 | int ecode2 = 0 ; | |
22693 | int val3 ; | |
22694 | int ecode3 = 0 ; | |
22695 | PyObject * obj0 = 0 ; | |
22696 | PyObject * obj1 = 0 ; | |
22697 | PyObject * obj2 = 0 ; | |
22698 | char * kwnames[] = { | |
22699 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22700 | }; | |
22701 | ||
22702 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) 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_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22706 | } | |
22707 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22708 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22709 | if (!SWIG_IsOK(ecode2)) { | |
22710 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'"); | |
22711 | } | |
22712 | arg2 = static_cast< int >(val2); | |
22713 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22714 | if (!SWIG_IsOK(ecode3)) { | |
22715 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'"); | |
22716 | } | |
22717 | arg3 = static_cast< int >(val3); | |
22718 | { | |
22719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22720 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
22721 | wxPyEndAllowThreads(__tstate); | |
22722 | if (PyErr_Occurred()) SWIG_fail; | |
22723 | } | |
22724 | resultobj = SWIG_Py_Void(); | |
22725 | return resultobj; | |
22726 | fail: | |
22727 | return NULL; | |
22728 | } | |
22729 | ||
22730 | ||
22731 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22732 | PyObject *resultobj = 0; | |
22733 | wxDC *arg1 = (wxDC *) 0 ; | |
22734 | wxPoint *arg2 = 0 ; | |
22735 | void *argp1 = 0 ; | |
22736 | int res1 = 0 ; | |
22737 | wxPoint temp2 ; | |
22738 | PyObject * obj0 = 0 ; | |
22739 | PyObject * obj1 = 0 ; | |
22740 | char * kwnames[] = { | |
22741 | (char *) "self",(char *) "point", NULL | |
22742 | }; | |
22743 | ||
22744 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
22745 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22746 | if (!SWIG_IsOK(res1)) { | |
22747 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22748 | } | |
22749 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22750 | { | |
22751 | arg2 = &temp2; | |
22752 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22753 | } | |
22754 | { | |
22755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22756 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); | |
22757 | wxPyEndAllowThreads(__tstate); | |
22758 | if (PyErr_Occurred()) SWIG_fail; | |
22759 | } | |
22760 | resultobj = SWIG_Py_Void(); | |
22761 | return resultobj; | |
22762 | fail: | |
22763 | return NULL; | |
22764 | } | |
22765 | ||
22766 | ||
22767 | SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22768 | PyObject *resultobj = 0; | |
22769 | wxDC *arg1 = (wxDC *) 0 ; | |
22770 | bool arg2 ; | |
22771 | bool arg3 ; | |
22772 | void *argp1 = 0 ; | |
22773 | int res1 = 0 ; | |
22774 | bool val2 ; | |
22775 | int ecode2 = 0 ; | |
22776 | bool val3 ; | |
22777 | int ecode3 = 0 ; | |
22778 | PyObject * obj0 = 0 ; | |
22779 | PyObject * obj1 = 0 ; | |
22780 | PyObject * obj2 = 0 ; | |
22781 | char * kwnames[] = { | |
22782 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
22783 | }; | |
22784 | ||
22785 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22786 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22787 | if (!SWIG_IsOK(res1)) { | |
22788 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22789 | } | |
22790 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22791 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
22792 | if (!SWIG_IsOK(ecode2)) { | |
22793 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'"); | |
22794 | } | |
22795 | arg2 = static_cast< bool >(val2); | |
22796 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
22797 | if (!SWIG_IsOK(ecode3)) { | |
22798 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'"); | |
22799 | } | |
22800 | arg3 = static_cast< bool >(val3); | |
22801 | { | |
22802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22803 | (arg1)->SetAxisOrientation(arg2,arg3); | |
22804 | wxPyEndAllowThreads(__tstate); | |
22805 | if (PyErr_Occurred()) SWIG_fail; | |
22806 | } | |
22807 | resultobj = SWIG_Py_Void(); | |
22808 | return resultobj; | |
22809 | fail: | |
22810 | return NULL; | |
22811 | } | |
22812 | ||
22813 | ||
22814 | SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22815 | PyObject *resultobj = 0; | |
22816 | wxDC *arg1 = (wxDC *) 0 ; | |
22817 | int result; | |
22818 | void *argp1 = 0 ; | |
22819 | int res1 = 0 ; | |
22820 | PyObject *swig_obj[1] ; | |
22821 | ||
22822 | if (!args) SWIG_fail; | |
22823 | swig_obj[0] = args; | |
22824 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22825 | if (!SWIG_IsOK(res1)) { | |
22826 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22827 | } | |
22828 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22829 | { | |
22830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22831 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
22832 | wxPyEndAllowThreads(__tstate); | |
22833 | if (PyErr_Occurred()) SWIG_fail; | |
22834 | } | |
22835 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22836 | return resultobj; | |
22837 | fail: | |
22838 | return NULL; | |
22839 | } | |
22840 | ||
22841 | ||
22842 | SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22843 | PyObject *resultobj = 0; | |
22844 | wxDC *arg1 = (wxDC *) 0 ; | |
22845 | int arg2 ; | |
22846 | void *argp1 = 0 ; | |
22847 | int res1 = 0 ; | |
22848 | int val2 ; | |
22849 | int ecode2 = 0 ; | |
22850 | PyObject * obj0 = 0 ; | |
22851 | PyObject * obj1 = 0 ; | |
22852 | char * kwnames[] = { | |
22853 | (char *) "self",(char *) "function", NULL | |
22854 | }; | |
22855 | ||
22856 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
22857 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22858 | if (!SWIG_IsOK(res1)) { | |
22859 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22860 | } | |
22861 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22862 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22863 | if (!SWIG_IsOK(ecode2)) { | |
22864 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
22865 | } | |
22866 | arg2 = static_cast< int >(val2); | |
22867 | { | |
22868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22869 | (arg1)->SetLogicalFunction(arg2); | |
22870 | wxPyEndAllowThreads(__tstate); | |
22871 | if (PyErr_Occurred()) SWIG_fail; | |
22872 | } | |
22873 | resultobj = SWIG_Py_Void(); | |
22874 | return resultobj; | |
22875 | fail: | |
22876 | return NULL; | |
22877 | } | |
22878 | ||
22879 | ||
22880 | SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22881 | PyObject *resultobj = 0; | |
22882 | wxDC *arg1 = (wxDC *) 0 ; | |
22883 | void *argp1 = 0 ; | |
22884 | int res1 = 0 ; | |
22885 | PyObject *swig_obj[1] ; | |
22886 | ||
22887 | if (!args) SWIG_fail; | |
22888 | swig_obj[0] = args; | |
22889 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22890 | if (!SWIG_IsOK(res1)) { | |
22891 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22892 | } | |
22893 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22894 | { | |
22895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22896 | (arg1)->ComputeScaleAndOrigin(); | |
22897 | wxPyEndAllowThreads(__tstate); | |
22898 | if (PyErr_Occurred()) SWIG_fail; | |
22899 | } | |
22900 | resultobj = SWIG_Py_Void(); | |
22901 | return resultobj; | |
22902 | fail: | |
22903 | return NULL; | |
22904 | } | |
22905 | ||
22906 | ||
22907 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22908 | PyObject *resultobj = 0; | |
22909 | wxDC *arg1 = (wxDC *) 0 ; | |
22910 | int arg2 ; | |
22911 | int arg3 ; | |
22912 | void *argp1 = 0 ; | |
22913 | int res1 = 0 ; | |
22914 | int val2 ; | |
22915 | int ecode2 = 0 ; | |
22916 | int val3 ; | |
22917 | int ecode3 = 0 ; | |
22918 | PyObject * obj0 = 0 ; | |
22919 | PyObject * obj1 = 0 ; | |
22920 | PyObject * obj2 = 0 ; | |
22921 | char * kwnames[] = { | |
22922 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22923 | }; | |
22924 | ||
22925 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) 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_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22929 | } | |
22930 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22931 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22932 | if (!SWIG_IsOK(ecode2)) { | |
22933 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'"); | |
22934 | } | |
22935 | arg2 = static_cast< int >(val2); | |
22936 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22937 | if (!SWIG_IsOK(ecode3)) { | |
22938 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'"); | |
22939 | } | |
22940 | arg3 = static_cast< int >(val3); | |
22941 | { | |
22942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22943 | (arg1)->CalcBoundingBox(arg2,arg3); | |
22944 | wxPyEndAllowThreads(__tstate); | |
22945 | if (PyErr_Occurred()) SWIG_fail; | |
22946 | } | |
22947 | resultobj = SWIG_Py_Void(); | |
22948 | return resultobj; | |
22949 | fail: | |
22950 | return NULL; | |
22951 | } | |
22952 | ||
22953 | ||
22954 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22955 | PyObject *resultobj = 0; | |
22956 | wxDC *arg1 = (wxDC *) 0 ; | |
22957 | wxPoint *arg2 = 0 ; | |
22958 | void *argp1 = 0 ; | |
22959 | int res1 = 0 ; | |
22960 | wxPoint temp2 ; | |
22961 | PyObject * obj0 = 0 ; | |
22962 | PyObject * obj1 = 0 ; | |
22963 | char * kwnames[] = { | |
22964 | (char *) "self",(char *) "point", NULL | |
22965 | }; | |
22966 | ||
22967 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
22968 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22969 | if (!SWIG_IsOK(res1)) { | |
22970 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22971 | } | |
22972 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22973 | { | |
22974 | arg2 = &temp2; | |
22975 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22976 | } | |
22977 | { | |
22978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22979 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); | |
22980 | wxPyEndAllowThreads(__tstate); | |
22981 | if (PyErr_Occurred()) SWIG_fail; | |
22982 | } | |
22983 | resultobj = SWIG_Py_Void(); | |
22984 | return resultobj; | |
22985 | fail: | |
22986 | return NULL; | |
22987 | } | |
22988 | ||
22989 | ||
22990 | SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22991 | PyObject *resultobj = 0; | |
22992 | wxDC *arg1 = (wxDC *) 0 ; | |
22993 | void *argp1 = 0 ; | |
22994 | int res1 = 0 ; | |
22995 | PyObject *swig_obj[1] ; | |
22996 | ||
22997 | if (!args) SWIG_fail; | |
22998 | swig_obj[0] = args; | |
22999 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23000 | if (!SWIG_IsOK(res1)) { | |
23001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23002 | } | |
23003 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23004 | { | |
23005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23006 | (arg1)->ResetBoundingBox(); | |
23007 | wxPyEndAllowThreads(__tstate); | |
23008 | if (PyErr_Occurred()) SWIG_fail; | |
23009 | } | |
23010 | resultobj = SWIG_Py_Void(); | |
23011 | return resultobj; | |
23012 | fail: | |
23013 | return NULL; | |
23014 | } | |
23015 | ||
23016 | ||
23017 | SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23018 | PyObject *resultobj = 0; | |
23019 | wxDC *arg1 = (wxDC *) 0 ; | |
23020 | int result; | |
23021 | void *argp1 = 0 ; | |
23022 | int res1 = 0 ; | |
23023 | PyObject *swig_obj[1] ; | |
23024 | ||
23025 | if (!args) SWIG_fail; | |
23026 | swig_obj[0] = args; | |
23027 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23028 | if (!SWIG_IsOK(res1)) { | |
23029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23030 | } | |
23031 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23032 | { | |
23033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23034 | result = (int)((wxDC const *)arg1)->MinX(); | |
23035 | wxPyEndAllowThreads(__tstate); | |
23036 | if (PyErr_Occurred()) SWIG_fail; | |
23037 | } | |
23038 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23039 | return resultobj; | |
23040 | fail: | |
23041 | return NULL; | |
23042 | } | |
23043 | ||
23044 | ||
23045 | SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23046 | PyObject *resultobj = 0; | |
23047 | wxDC *arg1 = (wxDC *) 0 ; | |
23048 | int result; | |
23049 | void *argp1 = 0 ; | |
23050 | int res1 = 0 ; | |
23051 | PyObject *swig_obj[1] ; | |
23052 | ||
23053 | if (!args) SWIG_fail; | |
23054 | swig_obj[0] = args; | |
23055 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23056 | if (!SWIG_IsOK(res1)) { | |
23057 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23058 | } | |
23059 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23060 | { | |
23061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23062 | result = (int)((wxDC const *)arg1)->MaxX(); | |
23063 | wxPyEndAllowThreads(__tstate); | |
23064 | if (PyErr_Occurred()) SWIG_fail; | |
23065 | } | |
23066 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23067 | return resultobj; | |
23068 | fail: | |
23069 | return NULL; | |
23070 | } | |
23071 | ||
23072 | ||
23073 | SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23074 | PyObject *resultobj = 0; | |
23075 | wxDC *arg1 = (wxDC *) 0 ; | |
23076 | int result; | |
23077 | void *argp1 = 0 ; | |
23078 | int res1 = 0 ; | |
23079 | PyObject *swig_obj[1] ; | |
23080 | ||
23081 | if (!args) SWIG_fail; | |
23082 | swig_obj[0] = args; | |
23083 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23084 | if (!SWIG_IsOK(res1)) { | |
23085 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23086 | } | |
23087 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23088 | { | |
23089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23090 | result = (int)((wxDC const *)arg1)->MinY(); | |
23091 | wxPyEndAllowThreads(__tstate); | |
23092 | if (PyErr_Occurred()) SWIG_fail; | |
23093 | } | |
23094 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23095 | return resultobj; | |
23096 | fail: | |
23097 | return NULL; | |
23098 | } | |
23099 | ||
23100 | ||
23101 | SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23102 | PyObject *resultobj = 0; | |
23103 | wxDC *arg1 = (wxDC *) 0 ; | |
23104 | int result; | |
23105 | void *argp1 = 0 ; | |
23106 | int res1 = 0 ; | |
23107 | PyObject *swig_obj[1] ; | |
23108 | ||
23109 | if (!args) SWIG_fail; | |
23110 | swig_obj[0] = args; | |
23111 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23112 | if (!SWIG_IsOK(res1)) { | |
23113 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23114 | } | |
23115 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23116 | { | |
23117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23118 | result = (int)((wxDC const *)arg1)->MaxY(); | |
23119 | wxPyEndAllowThreads(__tstate); | |
23120 | if (PyErr_Occurred()) SWIG_fail; | |
23121 | } | |
23122 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23123 | return resultobj; | |
23124 | fail: | |
23125 | return NULL; | |
23126 | } | |
23127 | ||
23128 | ||
23129 | SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23130 | PyObject *resultobj = 0; | |
23131 | wxDC *arg1 = (wxDC *) 0 ; | |
23132 | int *arg2 = (int *) 0 ; | |
23133 | int *arg3 = (int *) 0 ; | |
23134 | int *arg4 = (int *) 0 ; | |
23135 | int *arg5 = (int *) 0 ; | |
23136 | void *argp1 = 0 ; | |
23137 | int res1 = 0 ; | |
23138 | int temp2 ; | |
23139 | int res2 = SWIG_TMPOBJ ; | |
23140 | int temp3 ; | |
23141 | int res3 = SWIG_TMPOBJ ; | |
23142 | int temp4 ; | |
23143 | int res4 = SWIG_TMPOBJ ; | |
23144 | int temp5 ; | |
23145 | int res5 = SWIG_TMPOBJ ; | |
23146 | PyObject *swig_obj[1] ; | |
23147 | ||
23148 | arg2 = &temp2; | |
23149 | arg3 = &temp3; | |
23150 | arg4 = &temp4; | |
23151 | arg5 = &temp5; | |
23152 | if (!args) SWIG_fail; | |
23153 | swig_obj[0] = args; | |
23154 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23155 | if (!SWIG_IsOK(res1)) { | |
23156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23157 | } | |
23158 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23159 | { | |
23160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23161 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
23162 | wxPyEndAllowThreads(__tstate); | |
23163 | if (PyErr_Occurred()) SWIG_fail; | |
23164 | } | |
23165 | resultobj = SWIG_Py_Void(); | |
23166 | if (SWIG_IsTmpObj(res2)) { | |
23167 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23168 | } else { | |
23169 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23170 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23171 | } | |
23172 | if (SWIG_IsTmpObj(res3)) { | |
23173 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23174 | } else { | |
23175 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23176 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23177 | } | |
23178 | if (SWIG_IsTmpObj(res4)) { | |
23179 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
23180 | } else { | |
23181 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23182 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
23183 | } | |
23184 | if (SWIG_IsTmpObj(res5)) { | |
23185 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
23186 | } else { | |
23187 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23188 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
23189 | } | |
23190 | return resultobj; | |
23191 | fail: | |
23192 | return NULL; | |
23193 | } | |
23194 | ||
23195 | ||
b39fe951 RD |
23196 | SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23197 | PyObject *resultobj = 0; | |
23198 | wxDC *arg1 = (wxDC *) 0 ; | |
23199 | wxLayoutDirection result; | |
23200 | void *argp1 = 0 ; | |
23201 | int res1 = 0 ; | |
23202 | PyObject *swig_obj[1] ; | |
23203 | ||
23204 | if (!args) SWIG_fail; | |
23205 | swig_obj[0] = args; | |
23206 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23207 | if (!SWIG_IsOK(res1)) { | |
23208 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23209 | } | |
23210 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23211 | { | |
23212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23213 | result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection(); | |
23214 | wxPyEndAllowThreads(__tstate); | |
23215 | if (PyErr_Occurred()) SWIG_fail; | |
23216 | } | |
23217 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23218 | return resultobj; | |
23219 | fail: | |
23220 | return NULL; | |
23221 | } | |
23222 | ||
23223 | ||
23224 | SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23225 | PyObject *resultobj = 0; | |
23226 | wxDC *arg1 = (wxDC *) 0 ; | |
23227 | wxLayoutDirection arg2 ; | |
23228 | void *argp1 = 0 ; | |
23229 | int res1 = 0 ; | |
23230 | int val2 ; | |
23231 | int ecode2 = 0 ; | |
23232 | PyObject * obj0 = 0 ; | |
23233 | PyObject * obj1 = 0 ; | |
23234 | char * kwnames[] = { | |
23235 | (char *) "self",(char *) "dir", NULL | |
23236 | }; | |
23237 | ||
23238 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail; | |
23239 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23240 | if (!SWIG_IsOK(res1)) { | |
23241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23242 | } | |
23243 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23244 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23245 | if (!SWIG_IsOK(ecode2)) { | |
23246 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'"); | |
23247 | } | |
23248 | arg2 = static_cast< wxLayoutDirection >(val2); | |
23249 | { | |
23250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23251 | (arg1)->SetLayoutDirection(arg2); | |
23252 | wxPyEndAllowThreads(__tstate); | |
23253 | if (PyErr_Occurred()) SWIG_fail; | |
23254 | } | |
23255 | resultobj = SWIG_Py_Void(); | |
23256 | return resultobj; | |
23257 | fail: | |
23258 | return NULL; | |
23259 | } | |
23260 | ||
23261 | ||
0085ce49 RD |
23262 | SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
23263 | PyObject *resultobj = 0; | |
23264 | wxDC *arg1 = (wxDC *) 0 ; | |
23265 | PyObject *arg2 = (PyObject *) 0 ; | |
23266 | PyObject *arg3 = (PyObject *) 0 ; | |
23267 | PyObject *arg4 = (PyObject *) 0 ; | |
23268 | PyObject *result = 0 ; | |
23269 | void *argp1 = 0 ; | |
23270 | int res1 = 0 ; | |
23271 | PyObject * obj0 = 0 ; | |
23272 | PyObject * obj1 = 0 ; | |
23273 | PyObject * obj2 = 0 ; | |
23274 | PyObject * obj3 = 0 ; | |
23275 | char * kwnames[] = { | |
23276 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23277 | }; | |
23278 | ||
23279 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23280 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23281 | if (!SWIG_IsOK(res1)) { | |
23282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23283 | } | |
23284 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23285 | arg2 = obj1; | |
23286 | arg3 = obj2; | |
23287 | arg4 = obj3; | |
23288 | { | |
23289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23290 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
23291 | wxPyEndAllowThreads(__tstate); | |
23292 | if (PyErr_Occurred()) SWIG_fail; | |
23293 | } | |
23294 | resultobj = result; | |
23295 | return resultobj; | |
23296 | fail: | |
23297 | return NULL; | |
23298 | } | |
23299 | ||
23300 | ||
23301 | SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23302 | PyObject *resultobj = 0; | |
23303 | wxDC *arg1 = (wxDC *) 0 ; | |
23304 | PyObject *arg2 = (PyObject *) 0 ; | |
23305 | PyObject *arg3 = (PyObject *) 0 ; | |
23306 | PyObject *arg4 = (PyObject *) 0 ; | |
23307 | PyObject *result = 0 ; | |
23308 | void *argp1 = 0 ; | |
23309 | int res1 = 0 ; | |
23310 | PyObject * obj0 = 0 ; | |
23311 | PyObject * obj1 = 0 ; | |
23312 | PyObject * obj2 = 0 ; | |
23313 | PyObject * obj3 = 0 ; | |
23314 | char * kwnames[] = { | |
23315 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23316 | }; | |
23317 | ||
23318 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23319 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23320 | if (!SWIG_IsOK(res1)) { | |
23321 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23322 | } | |
23323 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23324 | arg2 = obj1; | |
23325 | arg3 = obj2; | |
23326 | arg4 = obj3; | |
23327 | { | |
23328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23329 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
23330 | wxPyEndAllowThreads(__tstate); | |
23331 | if (PyErr_Occurred()) SWIG_fail; | |
23332 | } | |
23333 | resultobj = result; | |
23334 | return resultobj; | |
23335 | fail: | |
23336 | return NULL; | |
23337 | } | |
23338 | ||
23339 | ||
23340 | SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23341 | PyObject *resultobj = 0; | |
23342 | wxDC *arg1 = (wxDC *) 0 ; | |
23343 | PyObject *arg2 = (PyObject *) 0 ; | |
23344 | PyObject *arg3 = (PyObject *) 0 ; | |
23345 | PyObject *arg4 = (PyObject *) 0 ; | |
23346 | PyObject *result = 0 ; | |
23347 | void *argp1 = 0 ; | |
23348 | int res1 = 0 ; | |
23349 | PyObject * obj0 = 0 ; | |
23350 | PyObject * obj1 = 0 ; | |
23351 | PyObject * obj2 = 0 ; | |
23352 | PyObject * obj3 = 0 ; | |
23353 | char * kwnames[] = { | |
23354 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23355 | }; | |
23356 | ||
23357 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23358 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23359 | if (!SWIG_IsOK(res1)) { | |
23360 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23361 | } | |
23362 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23363 | arg2 = obj1; | |
23364 | arg3 = obj2; | |
23365 | arg4 = obj3; | |
23366 | { | |
23367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23368 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
23369 | wxPyEndAllowThreads(__tstate); | |
23370 | if (PyErr_Occurred()) SWIG_fail; | |
23371 | } | |
23372 | resultobj = result; | |
23373 | return resultobj; | |
23374 | fail: | |
23375 | return NULL; | |
23376 | } | |
23377 | ||
23378 | ||
23379 | SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23380 | PyObject *resultobj = 0; | |
23381 | wxDC *arg1 = (wxDC *) 0 ; | |
23382 | PyObject *arg2 = (PyObject *) 0 ; | |
23383 | PyObject *arg3 = (PyObject *) 0 ; | |
23384 | PyObject *arg4 = (PyObject *) 0 ; | |
23385 | PyObject *result = 0 ; | |
23386 | void *argp1 = 0 ; | |
23387 | int res1 = 0 ; | |
23388 | PyObject * obj0 = 0 ; | |
23389 | PyObject * obj1 = 0 ; | |
23390 | PyObject * obj2 = 0 ; | |
23391 | PyObject * obj3 = 0 ; | |
23392 | char * kwnames[] = { | |
23393 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23394 | }; | |
23395 | ||
23396 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23397 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23398 | if (!SWIG_IsOK(res1)) { | |
23399 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23400 | } | |
23401 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23402 | arg2 = obj1; | |
23403 | arg3 = obj2; | |
23404 | arg4 = obj3; | |
23405 | { | |
23406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23407 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
23408 | wxPyEndAllowThreads(__tstate); | |
23409 | if (PyErr_Occurred()) SWIG_fail; | |
23410 | } | |
23411 | resultobj = result; | |
23412 | return resultobj; | |
23413 | fail: | |
23414 | return NULL; | |
23415 | } | |
23416 | ||
23417 | ||
23418 | SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23419 | PyObject *resultobj = 0; | |
23420 | wxDC *arg1 = (wxDC *) 0 ; | |
23421 | PyObject *arg2 = (PyObject *) 0 ; | |
23422 | PyObject *arg3 = (PyObject *) 0 ; | |
23423 | PyObject *arg4 = (PyObject *) 0 ; | |
23424 | PyObject *result = 0 ; | |
23425 | void *argp1 = 0 ; | |
23426 | int res1 = 0 ; | |
23427 | PyObject * obj0 = 0 ; | |
23428 | PyObject * obj1 = 0 ; | |
23429 | PyObject * obj2 = 0 ; | |
23430 | PyObject * obj3 = 0 ; | |
23431 | char * kwnames[] = { | |
23432 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23433 | }; | |
23434 | ||
23435 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23436 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23437 | if (!SWIG_IsOK(res1)) { | |
23438 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23439 | } | |
23440 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23441 | arg2 = obj1; | |
23442 | arg3 = obj2; | |
23443 | arg4 = obj3; | |
23444 | { | |
23445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23446 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
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 *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23458 | PyObject *resultobj = 0; | |
23459 | wxDC *arg1 = (wxDC *) 0 ; | |
23460 | PyObject *arg2 = (PyObject *) 0 ; | |
23461 | PyObject *arg3 = (PyObject *) 0 ; | |
23462 | PyObject *arg4 = (PyObject *) 0 ; | |
23463 | PyObject *arg5 = (PyObject *) 0 ; | |
23464 | PyObject *result = 0 ; | |
23465 | void *argp1 = 0 ; | |
23466 | int res1 = 0 ; | |
23467 | PyObject * obj0 = 0 ; | |
23468 | PyObject * obj1 = 0 ; | |
23469 | PyObject * obj2 = 0 ; | |
23470 | PyObject * obj3 = 0 ; | |
23471 | PyObject * obj4 = 0 ; | |
23472 | char * kwnames[] = { | |
23473 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
23474 | }; | |
23475 | ||
23476 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
23477 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23478 | if (!SWIG_IsOK(res1)) { | |
23479 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23480 | } | |
23481 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23482 | arg2 = obj1; | |
23483 | arg3 = obj2; | |
23484 | arg4 = obj3; | |
23485 | arg5 = obj4; | |
23486 | { | |
23487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23488 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
23489 | wxPyEndAllowThreads(__tstate); | |
23490 | if (PyErr_Occurred()) SWIG_fail; | |
23491 | } | |
23492 | resultobj = result; | |
23493 | return resultobj; | |
23494 | fail: | |
23495 | return NULL; | |
23496 | } | |
23497 | ||
23498 | ||
23499 | SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23500 | PyObject *obj; | |
23501 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23502 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj)); | |
23503 | return SWIG_Py_Void(); | |
23504 | } | |
23505 | ||
70d7cb34 RD |
23506 | SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
23507 | PyObject *resultobj = 0; | |
23508 | wxDC *arg1 = 0 ; | |
23509 | wxColour *arg2 = 0 ; | |
23510 | wxDCTextColourChanger *result = 0 ; | |
23511 | void *argp1 = 0 ; | |
23512 | int res1 = 0 ; | |
23513 | wxColour temp2 ; | |
23514 | PyObject * obj0 = 0 ; | |
23515 | PyObject * obj1 = 0 ; | |
23516 | char * kwnames[] = { | |
23517 | (char *) "dc",(char *) "col", NULL | |
23518 | }; | |
23519 | ||
23520 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
23521 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23522 | if (!SWIG_IsOK(res1)) { | |
23523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23524 | } | |
23525 | if (!argp1) { | |
23526 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23527 | } | |
23528 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23529 | { | |
23530 | arg2 = &temp2; | |
23531 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23532 | } | |
23533 | { | |
23534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23535 | result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2); | |
23536 | wxPyEndAllowThreads(__tstate); | |
23537 | if (PyErr_Occurred()) SWIG_fail; | |
23538 | } | |
23539 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 ); | |
23540 | return resultobj; | |
23541 | fail: | |
23542 | return NULL; | |
23543 | } | |
23544 | ||
23545 | ||
23546 | SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23547 | PyObject *resultobj = 0; | |
23548 | wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ; | |
23549 | void *argp1 = 0 ; | |
23550 | int res1 = 0 ; | |
23551 | PyObject *swig_obj[1] ; | |
23552 | ||
23553 | if (!args) SWIG_fail; | |
23554 | swig_obj[0] = args; | |
23555 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 ); | |
23556 | if (!SWIG_IsOK(res1)) { | |
23557 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'"); | |
23558 | } | |
23559 | arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1); | |
23560 | { | |
23561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23562 | delete arg1; | |
23563 | ||
23564 | wxPyEndAllowThreads(__tstate); | |
23565 | if (PyErr_Occurred()) SWIG_fail; | |
23566 | } | |
23567 | resultobj = SWIG_Py_Void(); | |
23568 | return resultobj; | |
23569 | fail: | |
23570 | return NULL; | |
23571 | } | |
23572 | ||
23573 | ||
23574 | SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23575 | PyObject *obj; | |
23576 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23577 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj)); | |
23578 | return SWIG_Py_Void(); | |
23579 | } | |
23580 | ||
23581 | SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23582 | return SWIG_Python_InitShadowInstance(args); | |
23583 | } | |
23584 | ||
23585 | SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23586 | PyObject *resultobj = 0; | |
23587 | wxDC *arg1 = 0 ; | |
23588 | wxPen *arg2 = 0 ; | |
23589 | wxDCPenChanger *result = 0 ; | |
23590 | void *argp1 = 0 ; | |
23591 | int res1 = 0 ; | |
23592 | void *argp2 = 0 ; | |
23593 | int res2 = 0 ; | |
23594 | PyObject * obj0 = 0 ; | |
23595 | PyObject * obj1 = 0 ; | |
23596 | char * kwnames[] = { | |
23597 | (char *) "dc",(char *) "pen", NULL | |
23598 | }; | |
23599 | ||
23600 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
23601 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23602 | if (!SWIG_IsOK(res1)) { | |
23603 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23604 | } | |
23605 | if (!argp1) { | |
23606 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23607 | } | |
23608 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23609 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
23610 | if (!SWIG_IsOK(res2)) { | |
23611 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
23612 | } | |
23613 | if (!argp2) { | |
23614 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
23615 | } | |
23616 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
23617 | { | |
23618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23619 | result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2); | |
23620 | wxPyEndAllowThreads(__tstate); | |
23621 | if (PyErr_Occurred()) SWIG_fail; | |
23622 | } | |
23623 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 ); | |
23624 | return resultobj; | |
23625 | fail: | |
23626 | return NULL; | |
23627 | } | |
23628 | ||
23629 | ||
23630 | SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23631 | PyObject *resultobj = 0; | |
23632 | wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ; | |
23633 | void *argp1 = 0 ; | |
23634 | int res1 = 0 ; | |
23635 | PyObject *swig_obj[1] ; | |
23636 | ||
23637 | if (!args) SWIG_fail; | |
23638 | swig_obj[0] = args; | |
23639 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 ); | |
23640 | if (!SWIG_IsOK(res1)) { | |
23641 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'"); | |
23642 | } | |
23643 | arg1 = reinterpret_cast< wxDCPenChanger * >(argp1); | |
23644 | { | |
23645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23646 | delete arg1; | |
23647 | ||
23648 | wxPyEndAllowThreads(__tstate); | |
23649 | if (PyErr_Occurred()) SWIG_fail; | |
23650 | } | |
23651 | resultobj = SWIG_Py_Void(); | |
23652 | return resultobj; | |
23653 | fail: | |
23654 | return NULL; | |
23655 | } | |
23656 | ||
23657 | ||
23658 | SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23659 | PyObject *obj; | |
23660 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23661 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj)); | |
23662 | return SWIG_Py_Void(); | |
23663 | } | |
23664 | ||
23665 | SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23666 | return SWIG_Python_InitShadowInstance(args); | |
23667 | } | |
23668 | ||
23669 | SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23670 | PyObject *resultobj = 0; | |
23671 | wxDC *arg1 = 0 ; | |
23672 | wxBrush *arg2 = 0 ; | |
23673 | wxDCBrushChanger *result = 0 ; | |
23674 | void *argp1 = 0 ; | |
23675 | int res1 = 0 ; | |
23676 | void *argp2 = 0 ; | |
23677 | int res2 = 0 ; | |
23678 | PyObject * obj0 = 0 ; | |
23679 | PyObject * obj1 = 0 ; | |
23680 | char * kwnames[] = { | |
23681 | (char *) "dc",(char *) "brush", NULL | |
23682 | }; | |
23683 | ||
23684 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
23685 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23686 | if (!SWIG_IsOK(res1)) { | |
23687 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23688 | } | |
23689 | if (!argp1) { | |
23690 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23691 | } | |
23692 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23693 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
23694 | if (!SWIG_IsOK(res2)) { | |
23695 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
23696 | } | |
23697 | if (!argp2) { | |
23698 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
23699 | } | |
23700 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
23701 | { | |
23702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23703 | result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2); | |
23704 | wxPyEndAllowThreads(__tstate); | |
23705 | if (PyErr_Occurred()) SWIG_fail; | |
23706 | } | |
23707 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 ); | |
23708 | return resultobj; | |
23709 | fail: | |
23710 | return NULL; | |
23711 | } | |
23712 | ||
23713 | ||
23714 | SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23715 | PyObject *resultobj = 0; | |
23716 | wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ; | |
23717 | void *argp1 = 0 ; | |
23718 | int res1 = 0 ; | |
23719 | PyObject *swig_obj[1] ; | |
23720 | ||
23721 | if (!args) SWIG_fail; | |
23722 | swig_obj[0] = args; | |
23723 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 ); | |
23724 | if (!SWIG_IsOK(res1)) { | |
23725 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'"); | |
23726 | } | |
23727 | arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1); | |
23728 | { | |
23729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23730 | delete arg1; | |
23731 | ||
23732 | wxPyEndAllowThreads(__tstate); | |
23733 | if (PyErr_Occurred()) SWIG_fail; | |
23734 | } | |
23735 | resultobj = SWIG_Py_Void(); | |
23736 | return resultobj; | |
23737 | fail: | |
23738 | return NULL; | |
23739 | } | |
23740 | ||
23741 | ||
23742 | SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23743 | PyObject *obj; | |
23744 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23745 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj)); | |
23746 | return SWIG_Py_Void(); | |
23747 | } | |
23748 | ||
23749 | SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23750 | return SWIG_Python_InitShadowInstance(args); | |
23751 | } | |
23752 | ||
23753 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
23754 | PyObject *resultobj = 0; | |
23755 | wxDC *arg1 = 0 ; | |
23756 | wxRegion *arg2 = 0 ; | |
23757 | wxDCClipper *result = 0 ; | |
23758 | void *argp1 = 0 ; | |
23759 | int res1 = 0 ; | |
23760 | void *argp2 = 0 ; | |
23761 | int res2 = 0 ; | |
23762 | ||
23763 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
23764 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23765 | if (!SWIG_IsOK(res1)) { | |
23766 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23767 | } | |
23768 | if (!argp1) { | |
23769 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23770 | } | |
23771 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23772 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
23773 | if (!SWIG_IsOK(res2)) { | |
23774 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
23775 | } | |
23776 | if (!argp2) { | |
23777 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
23778 | } | |
23779 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
23780 | { | |
23781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23782 | result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2); | |
23783 | wxPyEndAllowThreads(__tstate); | |
23784 | if (PyErr_Occurred()) SWIG_fail; | |
23785 | } | |
23786 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
23787 | return resultobj; | |
23788 | fail: | |
23789 | return NULL; | |
23790 | } | |
23791 | ||
23792 | ||
23793 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
23794 | PyObject *resultobj = 0; | |
23795 | wxDC *arg1 = 0 ; | |
23796 | wxRect *arg2 = 0 ; | |
23797 | wxDCClipper *result = 0 ; | |
23798 | void *argp1 = 0 ; | |
23799 | int res1 = 0 ; | |
23800 | wxRect temp2 ; | |
23801 | ||
23802 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
23803 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23804 | if (!SWIG_IsOK(res1)) { | |
23805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23806 | } | |
23807 | if (!argp1) { | |
23808 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23809 | } | |
23810 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23811 | { | |
23812 | arg2 = &temp2; | |
23813 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
23814 | } | |
23815 | { | |
23816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23817 | result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2); | |
23818 | wxPyEndAllowThreads(__tstate); | |
23819 | if (PyErr_Occurred()) SWIG_fail; | |
23820 | } | |
23821 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
23822 | return resultobj; | |
23823 | fail: | |
23824 | return NULL; | |
23825 | } | |
23826 | ||
23827 | ||
23828 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
23829 | PyObject *resultobj = 0; | |
23830 | wxDC *arg1 = 0 ; | |
23831 | int arg2 ; | |
23832 | int arg3 ; | |
23833 | int arg4 ; | |
23834 | int arg5 ; | |
23835 | wxDCClipper *result = 0 ; | |
23836 | void *argp1 = 0 ; | |
23837 | int res1 = 0 ; | |
23838 | int val2 ; | |
23839 | int ecode2 = 0 ; | |
23840 | int val3 ; | |
23841 | int ecode3 = 0 ; | |
23842 | int val4 ; | |
23843 | int ecode4 = 0 ; | |
23844 | int val5 ; | |
23845 | int ecode5 = 0 ; | |
23846 | ||
23847 | if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; | |
23848 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23849 | if (!SWIG_IsOK(res1)) { | |
23850 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23851 | } | |
23852 | if (!argp1) { | |
23853 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23854 | } | |
23855 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23856 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
23857 | if (!SWIG_IsOK(ecode2)) { | |
23858 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'"); | |
23859 | } | |
23860 | arg2 = static_cast< int >(val2); | |
23861 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
23862 | if (!SWIG_IsOK(ecode3)) { | |
23863 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'"); | |
23864 | } | |
23865 | arg3 = static_cast< int >(val3); | |
23866 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
23867 | if (!SWIG_IsOK(ecode4)) { | |
23868 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'"); | |
23869 | } | |
23870 | arg4 = static_cast< int >(val4); | |
23871 | ecode5 = SWIG_AsVal_int(swig_obj[4], &val5); | |
23872 | if (!SWIG_IsOK(ecode5)) { | |
23873 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'"); | |
23874 | } | |
23875 | arg5 = static_cast< int >(val5); | |
23876 | { | |
23877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23878 | result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5); | |
23879 | wxPyEndAllowThreads(__tstate); | |
23880 | if (PyErr_Occurred()) SWIG_fail; | |
23881 | } | |
23882 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
23883 | return resultobj; | |
23884 | fail: | |
23885 | return NULL; | |
23886 | } | |
23887 | ||
23888 | ||
23889 | SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) { | |
23890 | int argc; | |
23891 | PyObject *argv[6]; | |
23892 | ||
23893 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail; | |
23894 | --argc; | |
23895 | if (argc == 2) { | |
23896 | int _v = 0; | |
23897 | { | |
23898 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0); | |
23899 | _v = SWIG_CheckState(res); | |
23900 | } | |
23901 | if (!_v) goto check_1; | |
23902 | return _wrap_new_DCClipper__SWIG_0(self, argc, argv); | |
23903 | } | |
23904 | check_1: | |
23905 | ||
23906 | if (argc == 2) { | |
23907 | return _wrap_new_DCClipper__SWIG_1(self, argc, argv); | |
23908 | } | |
23909 | if (argc == 5) { | |
23910 | return _wrap_new_DCClipper__SWIG_2(self, argc, argv); | |
23911 | } | |
23912 | ||
23913 | fail: | |
23914 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'"); | |
23915 | return NULL; | |
23916 | } | |
23917 | ||
23918 | ||
23919 | SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23920 | PyObject *resultobj = 0; | |
23921 | wxDCClipper *arg1 = (wxDCClipper *) 0 ; | |
23922 | void *argp1 = 0 ; | |
23923 | int res1 = 0 ; | |
23924 | PyObject *swig_obj[1] ; | |
23925 | ||
23926 | if (!args) SWIG_fail; | |
23927 | swig_obj[0] = args; | |
23928 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 ); | |
23929 | if (!SWIG_IsOK(res1)) { | |
23930 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'"); | |
23931 | } | |
23932 | arg1 = reinterpret_cast< wxDCClipper * >(argp1); | |
23933 | { | |
23934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23935 | delete arg1; | |
23936 | ||
23937 | wxPyEndAllowThreads(__tstate); | |
23938 | if (PyErr_Occurred()) SWIG_fail; | |
23939 | } | |
23940 | resultobj = SWIG_Py_Void(); | |
23941 | return resultobj; | |
23942 | fail: | |
23943 | return NULL; | |
23944 | } | |
23945 | ||
23946 | ||
23947 | SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23948 | PyObject *obj; | |
23949 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23950 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj)); | |
23951 | return SWIG_Py_Void(); | |
23952 | } | |
23953 | ||
23954 | SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23955 | return SWIG_Python_InitShadowInstance(args); | |
23956 | } | |
23957 | ||
24f6c4e8 RD |
23958 | SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23959 | PyObject *resultobj = 0; | |
23960 | wxScreenDC *result = 0 ; | |
23961 | ||
23962 | if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail; | |
23963 | { | |
23964 | if (!wxPyCheckForApp()) SWIG_fail; | |
23965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23966 | result = (wxScreenDC *)new wxScreenDC(); | |
23967 | wxPyEndAllowThreads(__tstate); | |
23968 | if (PyErr_Occurred()) SWIG_fail; | |
23969 | } | |
23970 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 ); | |
23971 | return resultobj; | |
23972 | fail: | |
23973 | return NULL; | |
23974 | } | |
23975 | ||
23976 | ||
23977 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23978 | PyObject *resultobj = 0; | |
23979 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
23980 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23981 | bool result; | |
23982 | void *argp1 = 0 ; | |
23983 | int res1 = 0 ; | |
23984 | void *argp2 = 0 ; | |
23985 | int res2 = 0 ; | |
23986 | PyObject * obj0 = 0 ; | |
23987 | PyObject * obj1 = 0 ; | |
23988 | char * kwnames[] = { | |
23989 | (char *) "self",(char *) "window", NULL | |
23990 | }; | |
23991 | ||
23992 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail; | |
23993 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
23994 | if (!SWIG_IsOK(res1)) { | |
23995 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
23996 | } | |
23997 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
23998 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
23999 | if (!SWIG_IsOK(res2)) { | |
24000 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
24001 | } | |
24002 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
24003 | { | |
24004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24005 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
24006 | wxPyEndAllowThreads(__tstate); | |
24007 | if (PyErr_Occurred()) SWIG_fail; | |
24008 | } | |
24009 | { | |
24010 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24011 | } | |
24012 | return resultobj; | |
24013 | fail: | |
24014 | return NULL; | |
24015 | } | |
24016 | ||
24017 | ||
24018 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24019 | PyObject *resultobj = 0; | |
24020 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
24021 | wxRect *arg2 = (wxRect *) NULL ; | |
24022 | bool result; | |
24023 | void *argp1 = 0 ; | |
24024 | int res1 = 0 ; | |
24025 | void *argp2 = 0 ; | |
24026 | int res2 = 0 ; | |
24027 | PyObject * obj0 = 0 ; | |
24028 | PyObject * obj1 = 0 ; | |
24029 | char * kwnames[] = { | |
24030 | (char *) "self",(char *) "rect", NULL | |
24031 | }; | |
24032 | ||
24033 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail; | |
24034 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
24035 | if (!SWIG_IsOK(res1)) { | |
24036 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
24037 | } | |
24038 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
24039 | if (obj1) { | |
24040 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 ); | |
24041 | if (!SWIG_IsOK(res2)) { | |
24042 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'"); | |
24043 | } | |
24044 | arg2 = reinterpret_cast< wxRect * >(argp2); | |
24045 | } | |
24046 | { | |
24047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24048 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
24049 | wxPyEndAllowThreads(__tstate); | |
24050 | if (PyErr_Occurred()) SWIG_fail; | |
24051 | } | |
24052 | { | |
24053 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24054 | } | |
24055 | return resultobj; | |
24056 | fail: | |
24057 | return NULL; | |
24058 | } | |
24059 | ||
24060 | ||
24061 | SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24062 | PyObject *resultobj = 0; | |
24063 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
24064 | bool result; | |
24065 | void *argp1 = 0 ; | |
24066 | int res1 = 0 ; | |
24067 | PyObject *swig_obj[1] ; | |
24068 | ||
24069 | if (!args) SWIG_fail; | |
24070 | swig_obj[0] = args; | |
24071 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
24072 | if (!SWIG_IsOK(res1)) { | |
24073 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
24074 | } | |
24075 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
24076 | { | |
24077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24078 | result = (bool)(arg1)->EndDrawingOnTop(); | |
24079 | wxPyEndAllowThreads(__tstate); | |
24080 | if (PyErr_Occurred()) SWIG_fail; | |
24081 | } | |
24082 | { | |
24083 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24084 | } | |
24085 | return resultobj; | |
24086 | fail: | |
24087 | return NULL; | |
24088 | } | |
24089 | ||
24090 | ||
24091 | SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24092 | PyObject *obj; | |
24093 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24094 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj)); | |
24095 | return SWIG_Py_Void(); | |
24096 | } | |
24097 | ||
24098 | SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24099 | return SWIG_Python_InitShadowInstance(args); | |
24100 | } | |
24101 | ||
24102 | SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24103 | PyObject *resultobj = 0; | |
24104 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24105 | wxWindowDC *result = 0 ; | |
24106 | void *argp1 = 0 ; | |
24107 | int res1 = 0 ; | |
24108 | PyObject * obj0 = 0 ; | |
24109 | char * kwnames[] = { | |
24110 | (char *) "win", NULL | |
24111 | }; | |
24112 | ||
24113 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail; | |
24114 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24115 | if (!SWIG_IsOK(res1)) { | |
24116 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24117 | } | |
24118 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24119 | { | |
24120 | if (!wxPyCheckForApp()) SWIG_fail; | |
24121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24122 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
24123 | wxPyEndAllowThreads(__tstate); | |
24124 | if (PyErr_Occurred()) SWIG_fail; | |
24125 | } | |
24126 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 ); | |
24127 | return resultobj; | |
24128 | fail: | |
24129 | return NULL; | |
24130 | } | |
24131 | ||
24132 | ||
24133 | SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24134 | PyObject *obj; | |
24135 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24136 | SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj)); | |
24137 | return SWIG_Py_Void(); | |
24138 | } | |
24139 | ||
24140 | SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24141 | return SWIG_Python_InitShadowInstance(args); | |
24142 | } | |
24143 | ||
24144 | SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24145 | PyObject *resultobj = 0; | |
24146 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24147 | wxClientDC *result = 0 ; | |
24148 | void *argp1 = 0 ; | |
24149 | int res1 = 0 ; | |
24150 | PyObject * obj0 = 0 ; | |
24151 | char * kwnames[] = { | |
24152 | (char *) "win", NULL | |
24153 | }; | |
24154 | ||
24155 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail; | |
24156 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24157 | if (!SWIG_IsOK(res1)) { | |
24158 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24159 | } | |
24160 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24161 | { | |
24162 | if (!wxPyCheckForApp()) SWIG_fail; | |
24163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24164 | result = (wxClientDC *)new wxClientDC(arg1); | |
24165 | wxPyEndAllowThreads(__tstate); | |
24166 | if (PyErr_Occurred()) SWIG_fail; | |
24167 | } | |
24168 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 ); | |
24169 | return resultobj; | |
24170 | fail: | |
24171 | return NULL; | |
24172 | } | |
24173 | ||
24174 | ||
24175 | SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24176 | PyObject *obj; | |
24177 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24178 | SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj)); | |
24179 | return SWIG_Py_Void(); | |
24180 | } | |
24181 | ||
24182 | SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24183 | return SWIG_Python_InitShadowInstance(args); | |
24184 | } | |
24185 | ||
24186 | SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24187 | PyObject *resultobj = 0; | |
24188 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24189 | wxPaintDC *result = 0 ; | |
24190 | void *argp1 = 0 ; | |
24191 | int res1 = 0 ; | |
24192 | PyObject * obj0 = 0 ; | |
24193 | char * kwnames[] = { | |
24194 | (char *) "win", NULL | |
24195 | }; | |
24196 | ||
24197 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail; | |
24198 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24199 | if (!SWIG_IsOK(res1)) { | |
24200 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24201 | } | |
24202 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24203 | { | |
24204 | if (!wxPyCheckForApp()) SWIG_fail; | |
24205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24206 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
24207 | wxPyEndAllowThreads(__tstate); | |
24208 | if (PyErr_Occurred()) SWIG_fail; | |
24209 | } | |
24210 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 ); | |
24211 | return resultobj; | |
24212 | fail: | |
24213 | return NULL; | |
24214 | } | |
24215 | ||
24216 | ||
24217 | SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24218 | PyObject *obj; | |
24219 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24220 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj)); | |
24221 | return SWIG_Py_Void(); | |
24222 | } | |
24223 | ||
24224 | SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24225 | return SWIG_Python_InitShadowInstance(args); | |
24226 | } | |
24227 | ||
26c4d26f RD |
24228 | SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24229 | PyObject *resultobj = 0; | |
24230 | wxBitmap &arg1_defvalue = wxNullBitmap ; | |
24231 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
24232 | wxMemoryDC *result = 0 ; | |
24233 | void *argp1 = 0 ; | |
24234 | int res1 = 0 ; | |
24235 | PyObject * obj0 = 0 ; | |
24236 | char * kwnames[] = { | |
24237 | (char *) "bitmap", NULL | |
24238 | }; | |
24239 | ||
24240 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail; | |
24241 | if (obj0) { | |
24242 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
24243 | if (!SWIG_IsOK(res1)) { | |
24244 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
24245 | } | |
24246 | if (!argp1) { | |
24247 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
24248 | } | |
24249 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
24250 | } | |
24251 | { | |
24252 | if (!wxPyCheckForApp()) SWIG_fail; | |
24253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24254 | result = (wxMemoryDC *)new wxMemoryDC(*arg1); | |
24255 | wxPyEndAllowThreads(__tstate); | |
24256 | if (PyErr_Occurred()) SWIG_fail; | |
24257 | } | |
24258 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 ); | |
24259 | return resultobj; | |
24260 | fail: | |
24261 | return NULL; | |
24262 | } | |
24263 | ||
24264 | ||
24265 | SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24266 | PyObject *resultobj = 0; | |
24267 | wxDC *arg1 = (wxDC *) 0 ; | |
24268 | wxMemoryDC *result = 0 ; | |
24269 | void *argp1 = 0 ; | |
24270 | int res1 = 0 ; | |
24271 | PyObject * obj0 = 0 ; | |
24272 | char * kwnames[] = { | |
24273 | (char *) "oldDC", NULL | |
24274 | }; | |
24275 | ||
24276 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail; | |
24277 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24278 | if (!SWIG_IsOK(res1)) { | |
24279 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24280 | } | |
24281 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24282 | { | |
24283 | if (!wxPyCheckForApp()) SWIG_fail; | |
24284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24285 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
24286 | wxPyEndAllowThreads(__tstate); | |
24287 | if (PyErr_Occurred()) SWIG_fail; | |
24288 | } | |
24289 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 ); | |
24290 | return resultobj; | |
24291 | fail: | |
24292 | return NULL; | |
24293 | } | |
24294 | ||
24295 | ||
24296 | SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24297 | PyObject *resultobj = 0; | |
24298 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
24299 | wxBitmap *arg2 = 0 ; | |
24300 | void *argp1 = 0 ; | |
24301 | int res1 = 0 ; | |
24302 | void *argp2 = 0 ; | |
24303 | int res2 = 0 ; | |
24304 | PyObject * obj0 = 0 ; | |
24305 | PyObject * obj1 = 0 ; | |
24306 | char * kwnames[] = { | |
24307 | (char *) "self",(char *) "bitmap", NULL | |
24308 | }; | |
24309 | ||
24310 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail; | |
24311 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 ); | |
24312 | if (!SWIG_IsOK(res1)) { | |
24313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'"); | |
24314 | } | |
24315 | arg1 = reinterpret_cast< wxMemoryDC * >(argp1); | |
24316 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 ); | |
24317 | if (!SWIG_IsOK(res2)) { | |
24318 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
24319 | } | |
24320 | if (!argp2) { | |
24321 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
24322 | } | |
24323 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
24324 | { | |
24325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24326 | (arg1)->SelectObject(*arg2); | |
24327 | wxPyEndAllowThreads(__tstate); | |
24328 | if (PyErr_Occurred()) SWIG_fail; | |
24329 | } | |
24330 | resultobj = SWIG_Py_Void(); | |
24331 | return resultobj; | |
24332 | fail: | |
24333 | return NULL; | |
24334 | } | |
24335 | ||
24336 | ||
24337 | SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24338 | PyObject *resultobj = 0; | |
24339 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
24340 | wxBitmap *arg2 = 0 ; | |
24341 | void *argp1 = 0 ; | |
24342 | int res1 = 0 ; | |
24343 | void *argp2 = 0 ; | |
24344 | int res2 = 0 ; | |
24345 | PyObject * obj0 = 0 ; | |
24346 | PyObject * obj1 = 0 ; | |
24347 | char * kwnames[] = { | |
24348 | (char *) "self",(char *) "bmp", NULL | |
24349 | }; | |
24350 | ||
24351 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail; | |
24352 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 ); | |
24353 | if (!SWIG_IsOK(res1)) { | |
24354 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'"); | |
24355 | } | |
24356 | arg1 = reinterpret_cast< wxMemoryDC * >(argp1); | |
24357 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
24358 | if (!SWIG_IsOK(res2)) { | |
24359 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
24360 | } | |
24361 | if (!argp2) { | |
24362 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
24363 | } | |
24364 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
24365 | { | |
24366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24367 | (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2); | |
24368 | wxPyEndAllowThreads(__tstate); | |
24369 | if (PyErr_Occurred()) SWIG_fail; | |
24370 | } | |
24371 | resultobj = SWIG_Py_Void(); | |
24372 | return resultobj; | |
24373 | fail: | |
24374 | return NULL; | |
24375 | } | |
24376 | ||
24377 | ||
24378 | SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24379 | PyObject *obj; | |
24380 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24381 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj)); | |
24382 | return SWIG_Py_Void(); | |
24383 | } | |
24384 | ||
24385 | SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24386 | return SWIG_Python_InitShadowInstance(args); | |
24387 | } | |
24388 | ||
0085ce49 RD |
24389 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
24390 | PyObject *resultobj = 0; | |
24391 | wxDC *arg1 = (wxDC *) 0 ; | |
b6df5cf9 | 24392 | wxBitmap &arg2_defvalue = wxNullBitmap ; |
0085ce49 RD |
24393 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; |
24394 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
24395 | wxBufferedDC *result = 0 ; | |
24396 | void *argp1 = 0 ; | |
24397 | int res1 = 0 ; | |
24398 | void *argp2 = 0 ; | |
24399 | int res2 = 0 ; | |
24400 | int val3 ; | |
24401 | int ecode3 = 0 ; | |
24402 | ||
24403 | if ((nobjs < 1) || (nobjs > 3)) SWIG_fail; | |
24404 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24405 | if (!SWIG_IsOK(res1)) { | |
24406 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24407 | } | |
24408 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24409 | if (swig_obj[1]) { | |
b6df5cf9 | 24410 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 ); |
0085ce49 | 24411 | if (!SWIG_IsOK(res2)) { |
b6df5cf9 | 24412 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 24413 | } |
0085ce49 | 24414 | if (!argp2) { |
b6df5cf9 | 24415 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 24416 | } |
0085ce49 RD |
24417 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
24418 | } | |
24419 | if (swig_obj[2]) { | |
24420 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
24421 | if (!SWIG_IsOK(ecode3)) { | |
24422 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
24423 | } | |
24424 | arg3 = static_cast< int >(val3); | |
24425 | } | |
24426 | { | |
24427 | if (!wxPyCheckForApp()) SWIG_fail; | |
24428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b6df5cf9 | 24429 | result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3); |
0085ce49 RD |
24430 | wxPyEndAllowThreads(__tstate); |
24431 | if (PyErr_Occurred()) SWIG_fail; | |
24432 | } | |
24433 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
24434 | return resultobj; | |
24435 | fail: | |
24436 | return NULL; | |
24437 | } | |
24438 | ||
24439 | ||
24440 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
24441 | PyObject *resultobj = 0; | |
24442 | wxDC *arg1 = (wxDC *) 0 ; | |
24443 | wxSize *arg2 = 0 ; | |
24444 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
24445 | wxBufferedDC *result = 0 ; | |
24446 | void *argp1 = 0 ; | |
24447 | int res1 = 0 ; | |
24448 | wxSize temp2 ; | |
24449 | int val3 ; | |
24450 | int ecode3 = 0 ; | |
24451 | ||
24452 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
24453 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24454 | if (!SWIG_IsOK(res1)) { | |
24455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24456 | } | |
24457 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24458 | { | |
24459 | arg2 = &temp2; | |
24460 | if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail; | |
24461 | } | |
24462 | if (swig_obj[2]) { | |
24463 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
24464 | if (!SWIG_IsOK(ecode3)) { | |
24465 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
24466 | } | |
24467 | arg3 = static_cast< int >(val3); | |
24468 | } | |
24469 | { | |
24470 | if (!wxPyCheckForApp()) SWIG_fail; | |
24471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24472 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3); | |
24473 | wxPyEndAllowThreads(__tstate); | |
24474 | if (PyErr_Occurred()) SWIG_fail; | |
24475 | } | |
24476 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
24477 | return resultobj; | |
24478 | fail: | |
24479 | return NULL; | |
24480 | } | |
24481 | ||
24482 | ||
24483 | SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
24484 | int argc; | |
8e99bda9 | 24485 | PyObject *argv[4]; |
0085ce49 | 24486 | |
8e99bda9 | 24487 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail; |
0085ce49 RD |
24488 | --argc; |
24489 | if ((argc >= 1) && (argc <= 3)) { | |
24490 | int _v = 0; | |
24491 | if (argc > 1) { | |
24492 | { | |
b6df5cf9 RD |
24493 | void *vptr = 0; |
24494 | int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0); | |
0085ce49 RD |
24495 | _v = SWIG_CheckState(res); |
24496 | } | |
24497 | if (!_v) goto check_1; | |
093d3ff1 | 24498 | } |
0085ce49 RD |
24499 | return _wrap_new_BufferedDC__SWIG_0(self, argc, argv); |
24500 | } | |
24501 | check_1: | |
24502 | ||
24503 | if ((argc >= 2) && (argc <= 3)) { | |
24504 | return _wrap_new_BufferedDC__SWIG_1(self, argc, argv); | |
24505 | } | |
24506 | ||
24507 | fail: | |
24508 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'"); | |
24509 | return NULL; | |
24510 | } | |
24511 | ||
24512 | ||
24513 | SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24514 | PyObject *resultobj = 0; | |
24515 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
24516 | void *argp1 = 0 ; | |
24517 | int res1 = 0 ; | |
24518 | PyObject *swig_obj[1] ; | |
24519 | ||
24520 | if (!args) SWIG_fail; | |
24521 | swig_obj[0] = args; | |
24522 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 ); | |
24523 | if (!SWIG_IsOK(res1)) { | |
24524 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
24525 | } | |
24526 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
24527 | { | |
24528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24529 | delete arg1; | |
24530 | ||
24531 | wxPyEndAllowThreads(__tstate); | |
24532 | if (PyErr_Occurred()) SWIG_fail; | |
24533 | } | |
24534 | resultobj = SWIG_Py_Void(); | |
24535 | return resultobj; | |
24536 | fail: | |
24537 | return NULL; | |
24538 | } | |
24539 | ||
24540 | ||
24541 | SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24542 | PyObject *resultobj = 0; | |
24543 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
24544 | void *argp1 = 0 ; | |
24545 | int res1 = 0 ; | |
24546 | PyObject *swig_obj[1] ; | |
24547 | ||
24548 | if (!args) SWIG_fail; | |
24549 | swig_obj[0] = args; | |
24550 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
24551 | if (!SWIG_IsOK(res1)) { | |
24552 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
24553 | } | |
24554 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
24555 | { | |
24556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24557 | (arg1)->UnMask(); | |
24558 | wxPyEndAllowThreads(__tstate); | |
24559 | if (PyErr_Occurred()) SWIG_fail; | |
24560 | } | |
24561 | resultobj = SWIG_Py_Void(); | |
24562 | return resultobj; | |
24563 | fail: | |
24564 | return NULL; | |
24565 | } | |
24566 | ||
24567 | ||
b6df5cf9 RD |
24568 | SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24569 | PyObject *resultobj = 0; | |
24570 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
24571 | int arg2 ; | |
24572 | void *argp1 = 0 ; | |
24573 | int res1 = 0 ; | |
24574 | int val2 ; | |
24575 | int ecode2 = 0 ; | |
24576 | PyObject * obj0 = 0 ; | |
24577 | PyObject * obj1 = 0 ; | |
24578 | char * kwnames[] = { | |
24579 | (char *) "self",(char *) "style", NULL | |
24580 | }; | |
24581 | ||
24582 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
24583 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
24584 | if (!SWIG_IsOK(res1)) { | |
24585 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
24586 | } | |
24587 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
24588 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24589 | if (!SWIG_IsOK(ecode2)) { | |
24590 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
24591 | } | |
24592 | arg2 = static_cast< int >(val2); | |
24593 | { | |
24594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24595 | (arg1)->SetStyle(arg2); | |
24596 | wxPyEndAllowThreads(__tstate); | |
24597 | if (PyErr_Occurred()) SWIG_fail; | |
24598 | } | |
24599 | resultobj = SWIG_Py_Void(); | |
24600 | return resultobj; | |
24601 | fail: | |
24602 | return NULL; | |
24603 | } | |
24604 | ||
24605 | ||
24606 | SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24607 | PyObject *resultobj = 0; | |
24608 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
24609 | int result; | |
24610 | void *argp1 = 0 ; | |
24611 | int res1 = 0 ; | |
24612 | PyObject *swig_obj[1] ; | |
24613 | ||
24614 | if (!args) SWIG_fail; | |
24615 | swig_obj[0] = args; | |
24616 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
24617 | if (!SWIG_IsOK(res1)) { | |
24618 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'"); | |
24619 | } | |
24620 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
24621 | { | |
24622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24623 | result = (int)((wxBufferedDC const *)arg1)->GetStyle(); | |
24624 | wxPyEndAllowThreads(__tstate); | |
24625 | if (PyErr_Occurred()) SWIG_fail; | |
24626 | } | |
24627 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24628 | return resultobj; | |
24629 | fail: | |
24630 | return NULL; | |
24631 | } | |
24632 | ||
24633 | ||
0085ce49 RD |
24634 | SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24635 | PyObject *obj; | |
24636 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24637 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj)); | |
24638 | return SWIG_Py_Void(); | |
24639 | } | |
24640 | ||
24641 | SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24642 | return SWIG_Python_InitShadowInstance(args); | |
24643 | } | |
24644 | ||
24645 | SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24646 | PyObject *resultobj = 0; | |
24647 | wxWindow *arg1 = (wxWindow *) 0 ; | |
b6df5cf9 | 24648 | wxBitmap &arg2_defvalue = wxNullBitmap ; |
0085ce49 RD |
24649 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; |
24650 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
24651 | wxBufferedPaintDC *result = 0 ; | |
24652 | void *argp1 = 0 ; | |
24653 | int res1 = 0 ; | |
24654 | void *argp2 = 0 ; | |
24655 | int res2 = 0 ; | |
24656 | int val3 ; | |
24657 | int ecode3 = 0 ; | |
24658 | PyObject * obj0 = 0 ; | |
24659 | PyObject * obj1 = 0 ; | |
24660 | PyObject * obj2 = 0 ; | |
24661 | char * kwnames[] = { | |
24662 | (char *) "window",(char *) "buffer",(char *) "style", NULL | |
24663 | }; | |
24664 | ||
24665 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24666 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24667 | if (!SWIG_IsOK(res1)) { | |
24668 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24669 | } | |
24670 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24671 | if (obj1) { | |
b6df5cf9 | 24672 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 ); |
0085ce49 | 24673 | if (!SWIG_IsOK(res2)) { |
b6df5cf9 | 24674 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 24675 | } |
0085ce49 | 24676 | if (!argp2) { |
b6df5cf9 | 24677 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 24678 | } |
0085ce49 RD |
24679 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
24680 | } | |
24681 | if (obj2) { | |
24682 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
24683 | if (!SWIG_IsOK(ecode3)) { | |
24684 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'"); | |
24685 | } | |
24686 | arg3 = static_cast< int >(val3); | |
24687 | } | |
24688 | { | |
24689 | if (!wxPyCheckForApp()) SWIG_fail; | |
24690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b6df5cf9 | 24691 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3); |
0085ce49 RD |
24692 | wxPyEndAllowThreads(__tstate); |
24693 | if (PyErr_Occurred()) SWIG_fail; | |
24694 | } | |
24695 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 ); | |
24696 | return resultobj; | |
24697 | fail: | |
24698 | return NULL; | |
24699 | } | |
24700 | ||
24701 | ||
24702 | SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24703 | PyObject *obj; | |
24704 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24705 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj)); | |
24706 | return SWIG_Py_Void(); | |
24707 | } | |
24708 | ||
24709 | SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24710 | return SWIG_Python_InitShadowInstance(args); | |
24711 | } | |
24712 | ||
24f6c4e8 | 24713 | SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
24714 | PyObject *resultobj = 0; |
24715 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24f6c4e8 | 24716 | wxAutoBufferedPaintDC *result = 0 ; |
0085ce49 RD |
24717 | void *argp1 = 0 ; |
24718 | int res1 = 0 ; | |
24719 | PyObject * obj0 = 0 ; | |
24720 | char * kwnames[] = { | |
24721 | (char *) "win", NULL | |
24722 | }; | |
24723 | ||
24f6c4e8 | 24724 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail; |
0085ce49 RD |
24725 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); |
24726 | if (!SWIG_IsOK(res1)) { | |
24f6c4e8 | 24727 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); |
0085ce49 RD |
24728 | } |
24729 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24730 | { | |
0085ce49 | 24731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24f6c4e8 | 24732 | result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1); |
0085ce49 RD |
24733 | wxPyEndAllowThreads(__tstate); |
24734 | if (PyErr_Occurred()) SWIG_fail; | |
24735 | } | |
24f6c4e8 | 24736 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 ); |
0085ce49 RD |
24737 | return resultobj; |
24738 | fail: | |
24739 | return NULL; | |
24740 | } | |
24741 | ||
24742 | ||
24f6c4e8 | 24743 | SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
24744 | PyObject *obj; |
24745 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24f6c4e8 | 24746 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj)); |
0085ce49 RD |
24747 | return SWIG_Py_Void(); |
24748 | } | |
24749 | ||
24f6c4e8 | 24750 | SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
24751 | return SWIG_Python_InitShadowInstance(args); |
24752 | } | |
24753 | ||
8e99bda9 RD |
24754 | SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24755 | PyObject *resultobj = 0; | |
24756 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24757 | wxDC *result = 0 ; | |
24758 | void *argp1 = 0 ; | |
24759 | int res1 = 0 ; | |
24760 | PyObject * obj0 = 0 ; | |
24761 | char * kwnames[] = { | |
24762 | (char *) "window", NULL | |
24763 | }; | |
24764 | ||
24765 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail; | |
24766 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24767 | if (!SWIG_IsOK(res1)) { | |
24768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24769 | } | |
24770 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24771 | { | |
24772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24773 | result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1); | |
24774 | wxPyEndAllowThreads(__tstate); | |
24775 | if (PyErr_Occurred()) SWIG_fail; | |
24776 | } | |
24777 | { | |
24778 | resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN); | |
24779 | } | |
24780 | return resultobj; | |
24781 | fail: | |
24782 | return NULL; | |
24783 | } | |
24784 | ||
24785 | ||
0085ce49 RD |
24786 | SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24787 | PyObject *resultobj = 0; | |
24788 | wxDC *arg1 = 0 ; | |
24789 | bool arg2 ; | |
24790 | wxMirrorDC *result = 0 ; | |
24791 | void *argp1 = 0 ; | |
24792 | int res1 = 0 ; | |
24793 | bool val2 ; | |
24794 | int ecode2 = 0 ; | |
24795 | PyObject * obj0 = 0 ; | |
24796 | PyObject * obj1 = 0 ; | |
24797 | char * kwnames[] = { | |
24798 | (char *) "dc",(char *) "mirror", NULL | |
24799 | }; | |
24800 | ||
24801 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
24802 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24803 | if (!SWIG_IsOK(res1)) { | |
24804 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24805 | } | |
24806 | if (!argp1) { | |
24807 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24808 | } | |
24809 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24810 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24811 | if (!SWIG_IsOK(ecode2)) { | |
24812 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'"); | |
24813 | } | |
24814 | arg2 = static_cast< bool >(val2); | |
24815 | { | |
24816 | if (!wxPyCheckForApp()) SWIG_fail; | |
24817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24818 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
24819 | wxPyEndAllowThreads(__tstate); | |
24820 | if (PyErr_Occurred()) SWIG_fail; | |
24821 | } | |
24822 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 ); | |
24823 | return resultobj; | |
24824 | fail: | |
24825 | return NULL; | |
24826 | } | |
24827 | ||
24828 | ||
24829 | SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24830 | PyObject *obj; | |
24831 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24832 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj)); | |
24833 | return SWIG_Py_Void(); | |
24834 | } | |
24835 | ||
24836 | SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24837 | return SWIG_Python_InitShadowInstance(args); | |
24838 | } | |
24839 | ||
24840 | SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24841 | PyObject *resultobj = 0; | |
24842 | wxPrintData *arg1 = 0 ; | |
24843 | wxPostScriptDC *result = 0 ; | |
24844 | void *argp1 = 0 ; | |
24845 | int res1 = 0 ; | |
24846 | PyObject * obj0 = 0 ; | |
24847 | char * kwnames[] = { | |
24848 | (char *) "printData", NULL | |
24849 | }; | |
24850 | ||
24851 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail; | |
24852 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
24853 | if (!SWIG_IsOK(res1)) { | |
24854 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24855 | } | |
24856 | if (!argp1) { | |
24857 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24858 | } | |
24859 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24860 | { | |
24861 | if (!wxPyCheckForApp()) SWIG_fail; | |
24862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24863 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
24864 | wxPyEndAllowThreads(__tstate); | |
24865 | if (PyErr_Occurred()) SWIG_fail; | |
24866 | } | |
24867 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 ); | |
24868 | return resultobj; | |
24869 | fail: | |
24870 | return NULL; | |
24871 | } | |
24872 | ||
24873 | ||
24874 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24875 | PyObject *resultobj = 0; | |
24876 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
24877 | wxPrintData *result = 0 ; | |
24878 | void *argp1 = 0 ; | |
24879 | int res1 = 0 ; | |
24880 | PyObject *swig_obj[1] ; | |
24881 | ||
24882 | if (!args) SWIG_fail; | |
24883 | swig_obj[0] = args; | |
24884 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
24885 | if (!SWIG_IsOK(res1)) { | |
24886 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
24887 | } | |
24888 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
24889 | { | |
24890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e2950dbb | 24891 | { |
0085ce49 RD |
24892 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
24893 | result = (wxPrintData *) &_result_ref; | |
e2950dbb | 24894 | } |
0085ce49 RD |
24895 | wxPyEndAllowThreads(__tstate); |
24896 | if (PyErr_Occurred()) SWIG_fail; | |
24897 | } | |
24898 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24899 | return resultobj; | |
24900 | fail: | |
24901 | return NULL; | |
24902 | } | |
24903 | ||
24904 | ||
24905 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24906 | PyObject *resultobj = 0; | |
24907 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
24908 | wxPrintData *arg2 = 0 ; | |
24909 | void *argp1 = 0 ; | |
24910 | int res1 = 0 ; | |
24911 | void *argp2 = 0 ; | |
24912 | int res2 = 0 ; | |
24913 | PyObject * obj0 = 0 ; | |
24914 | PyObject * obj1 = 0 ; | |
24915 | char * kwnames[] = { | |
24916 | (char *) "self",(char *) "data", NULL | |
24917 | }; | |
24918 | ||
24919 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
24920 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
24921 | if (!SWIG_IsOK(res1)) { | |
24922 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
24923 | } | |
24924 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
24925 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
24926 | if (!SWIG_IsOK(res2)) { | |
24927 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
24928 | } | |
24929 | if (!argp2) { | |
24930 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
24931 | } | |
24932 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
24933 | { | |
24934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24935 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
24936 | wxPyEndAllowThreads(__tstate); | |
24937 | if (PyErr_Occurred()) SWIG_fail; | |
24938 | } | |
24939 | resultobj = SWIG_Py_Void(); | |
24940 | return resultobj; | |
24941 | fail: | |
24942 | return NULL; | |
24943 | } | |
24944 | ||
24945 | ||
24946 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24947 | PyObject *resultobj = 0; | |
24948 | int arg1 ; | |
24949 | int val1 ; | |
24950 | int ecode1 = 0 ; | |
24951 | PyObject * obj0 = 0 ; | |
24952 | char * kwnames[] = { | |
24953 | (char *) "ppi", NULL | |
24954 | }; | |
24955 | ||
24956 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail; | |
24957 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
24958 | if (!SWIG_IsOK(ecode1)) { | |
24959 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'"); | |
24960 | } | |
24961 | arg1 = static_cast< int >(val1); | |
24962 | { | |
24963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24964 | wxPostScriptDC::SetResolution(arg1); | |
24965 | wxPyEndAllowThreads(__tstate); | |
24966 | if (PyErr_Occurred()) SWIG_fail; | |
24967 | } | |
24968 | resultobj = SWIG_Py_Void(); | |
24969 | return resultobj; | |
24970 | fail: | |
24971 | return NULL; | |
24972 | } | |
24973 | ||
24974 | ||
24975 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24976 | PyObject *resultobj = 0; | |
24977 | int result; | |
24978 | ||
24979 | if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail; | |
24980 | { | |
24981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24982 | result = (int)wxPostScriptDC::GetResolution(); | |
24983 | wxPyEndAllowThreads(__tstate); | |
24984 | if (PyErr_Occurred()) SWIG_fail; | |
24985 | } | |
24986 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24987 | return resultobj; | |
24988 | fail: | |
24989 | return NULL; | |
24990 | } | |
24991 | ||
24992 | ||
24993 | SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24994 | PyObject *obj; | |
24995 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24996 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj)); | |
24997 | return SWIG_Py_Void(); | |
24998 | } | |
24999 | ||
25000 | SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25001 | return SWIG_Python_InitShadowInstance(args); | |
25002 | } | |
25003 | ||
25004 | SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25005 | PyObject *resultobj = 0; | |
25006 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25007 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25008 | wxMetaFile *result = 0 ; | |
25009 | bool temp1 = false ; | |
25010 | PyObject * obj0 = 0 ; | |
25011 | char * kwnames[] = { | |
25012 | (char *) "filename", NULL | |
25013 | }; | |
25014 | ||
25015 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail; | |
25016 | if (obj0) { | |
093d3ff1 | 25017 | { |
0085ce49 RD |
25018 | arg1 = wxString_in_helper(obj0); |
25019 | if (arg1 == NULL) SWIG_fail; | |
25020 | temp1 = true; | |
093d3ff1 | 25021 | } |
0085ce49 RD |
25022 | } |
25023 | { | |
25024 | if (!wxPyCheckForApp()) SWIG_fail; | |
25025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25026 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
25027 | wxPyEndAllowThreads(__tstate); | |
25028 | if (PyErr_Occurred()) SWIG_fail; | |
25029 | } | |
25030 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 ); | |
25031 | { | |
25032 | if (temp1) | |
25033 | delete arg1; | |
25034 | } | |
25035 | return resultobj; | |
25036 | fail: | |
25037 | { | |
25038 | if (temp1) | |
25039 | delete arg1; | |
25040 | } | |
25041 | return NULL; | |
25042 | } | |
25043 | ||
25044 | ||
25045 | SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25046 | PyObject *obj; | |
25047 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25048 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj)); | |
25049 | return SWIG_Py_Void(); | |
25050 | } | |
25051 | ||
25052 | SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25053 | return SWIG_Python_InitShadowInstance(args); | |
25054 | } | |
25055 | ||
25056 | SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25057 | PyObject *resultobj = 0; | |
25058 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25059 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25060 | int arg2 = (int) 0 ; | |
25061 | int arg3 = (int) 0 ; | |
25062 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
25063 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
25064 | wxMetaFileDC *result = 0 ; | |
25065 | bool temp1 = false ; | |
25066 | int val2 ; | |
25067 | int ecode2 = 0 ; | |
25068 | int val3 ; | |
25069 | int ecode3 = 0 ; | |
25070 | bool temp4 = false ; | |
25071 | PyObject * obj0 = 0 ; | |
25072 | PyObject * obj1 = 0 ; | |
25073 | PyObject * obj2 = 0 ; | |
25074 | PyObject * obj3 = 0 ; | |
25075 | char * kwnames[] = { | |
25076 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
25077 | }; | |
25078 | ||
25079 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
25080 | if (obj0) { | |
093d3ff1 | 25081 | { |
0085ce49 RD |
25082 | arg1 = wxString_in_helper(obj0); |
25083 | if (arg1 == NULL) SWIG_fail; | |
25084 | temp1 = true; | |
093d3ff1 | 25085 | } |
0085ce49 RD |
25086 | } |
25087 | if (obj1) { | |
25088 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25089 | if (!SWIG_IsOK(ecode2)) { | |
25090 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'"); | |
25091 | } | |
25092 | arg2 = static_cast< int >(val2); | |
25093 | } | |
25094 | if (obj2) { | |
25095 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25096 | if (!SWIG_IsOK(ecode3)) { | |
25097 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'"); | |
25098 | } | |
25099 | arg3 = static_cast< int >(val3); | |
25100 | } | |
25101 | if (obj3) { | |
093d3ff1 | 25102 | { |
0085ce49 RD |
25103 | arg4 = wxString_in_helper(obj3); |
25104 | if (arg4 == NULL) SWIG_fail; | |
25105 | temp4 = true; | |
093d3ff1 | 25106 | } |
0085ce49 RD |
25107 | } |
25108 | { | |
25109 | if (!wxPyCheckForApp()) SWIG_fail; | |
25110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25111 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
25112 | wxPyEndAllowThreads(__tstate); | |
25113 | if (PyErr_Occurred()) SWIG_fail; | |
25114 | } | |
25115 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 ); | |
25116 | { | |
25117 | if (temp1) | |
25118 | delete arg1; | |
25119 | } | |
25120 | { | |
25121 | if (temp4) | |
25122 | delete arg4; | |
25123 | } | |
25124 | return resultobj; | |
25125 | fail: | |
25126 | { | |
25127 | if (temp1) | |
25128 | delete arg1; | |
25129 | } | |
25130 | { | |
25131 | if (temp4) | |
25132 | delete arg4; | |
25133 | } | |
25134 | return NULL; | |
25135 | } | |
25136 | ||
25137 | ||
25138 | SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25139 | PyObject *obj; | |
25140 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25141 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj)); | |
25142 | return SWIG_Py_Void(); | |
25143 | } | |
25144 | ||
25145 | SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25146 | return SWIG_Python_InitShadowInstance(args); | |
25147 | } | |
25148 | ||
25149 | SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25150 | PyObject *resultobj = 0; | |
25151 | wxPrintData *arg1 = 0 ; | |
25152 | wxPrinterDC *result = 0 ; | |
25153 | void *argp1 = 0 ; | |
25154 | int res1 = 0 ; | |
25155 | PyObject * obj0 = 0 ; | |
25156 | char * kwnames[] = { | |
25157 | (char *) "printData", NULL | |
25158 | }; | |
25159 | ||
25160 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail; | |
25161 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
25162 | if (!SWIG_IsOK(res1)) { | |
25163 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25164 | } | |
25165 | if (!argp1) { | |
25166 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25167 | } | |
25168 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
25169 | { | |
25170 | if (!wxPyCheckForApp()) SWIG_fail; | |
25171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25172 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
25173 | wxPyEndAllowThreads(__tstate); | |
25174 | if (PyErr_Occurred()) SWIG_fail; | |
25175 | } | |
25176 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 ); | |
25177 | return resultobj; | |
25178 | fail: | |
25179 | return NULL; | |
25180 | } | |
25181 | ||
25182 | ||
25183 | SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25184 | PyObject *obj; | |
25185 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25186 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj)); | |
25187 | return SWIG_Py_Void(); | |
25188 | } | |
25189 | ||
25190 | SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25191 | return SWIG_Python_InitShadowInstance(args); | |
25192 | } | |
25193 | ||
70d7cb34 RD |
25194 | SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25195 | PyObject *resultobj = 0; | |
25196 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ; | |
25197 | wxGraphicsObject *result = 0 ; | |
25198 | void *argp1 = 0 ; | |
25199 | int res1 = 0 ; | |
25200 | PyObject * obj0 = 0 ; | |
25201 | char * kwnames[] = { | |
25202 | (char *) "renderer", NULL | |
25203 | }; | |
25204 | ||
25205 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail; | |
25206 | if (obj0) { | |
25207 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
25208 | if (!SWIG_IsOK(res1)) { | |
25209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
25210 | } | |
25211 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
25212 | } | |
25213 | { | |
25214 | result = (wxGraphicsObject *)new wxGraphicsObject(arg1); | |
25215 | if (PyErr_Occurred()) SWIG_fail; | |
25216 | } | |
25217 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 ); | |
25218 | return resultobj; | |
25219 | fail: | |
25220 | return NULL; | |
25221 | } | |
25222 | ||
25223 | ||
25224 | SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25225 | PyObject *resultobj = 0; | |
25226 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
25227 | void *argp1 = 0 ; | |
25228 | int res1 = 0 ; | |
25229 | PyObject *swig_obj[1] ; | |
25230 | ||
25231 | if (!args) SWIG_fail; | |
25232 | swig_obj[0] = args; | |
25233 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 ); | |
25234 | if (!SWIG_IsOK(res1)) { | |
25235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'"); | |
25236 | } | |
25237 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
25238 | { | |
25239 | delete arg1; | |
25240 | ||
25241 | if (PyErr_Occurred()) SWIG_fail; | |
25242 | } | |
25243 | resultobj = SWIG_Py_Void(); | |
25244 | return resultobj; | |
25245 | fail: | |
25246 | return NULL; | |
25247 | } | |
25248 | ||
25249 | ||
25250 | SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25251 | PyObject *resultobj = 0; | |
25252 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
25253 | bool result; | |
25254 | void *argp1 = 0 ; | |
25255 | int res1 = 0 ; | |
25256 | PyObject *swig_obj[1] ; | |
25257 | ||
25258 | if (!args) SWIG_fail; | |
25259 | swig_obj[0] = args; | |
25260 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 ); | |
25261 | if (!SWIG_IsOK(res1)) { | |
25262 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'"); | |
25263 | } | |
25264 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
25265 | { | |
25266 | result = (bool)((wxGraphicsObject const *)arg1)->IsNull(); | |
25267 | if (PyErr_Occurred()) SWIG_fail; | |
25268 | } | |
25269 | { | |
25270 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25271 | } | |
25272 | return resultobj; | |
25273 | fail: | |
25274 | return NULL; | |
25275 | } | |
25276 | ||
25277 | ||
25278 | SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25279 | PyObject *resultobj = 0; | |
25280 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
25281 | wxGraphicsRenderer *result = 0 ; | |
25282 | void *argp1 = 0 ; | |
25283 | int res1 = 0 ; | |
25284 | PyObject *swig_obj[1] ; | |
25285 | ||
25286 | if (!args) SWIG_fail; | |
25287 | swig_obj[0] = args; | |
25288 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 ); | |
25289 | if (!SWIG_IsOK(res1)) { | |
25290 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'"); | |
25291 | } | |
25292 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
25293 | { | |
25294 | result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer(); | |
25295 | if (PyErr_Occurred()) SWIG_fail; | |
25296 | } | |
25297 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
25298 | return resultobj; | |
25299 | fail: | |
25300 | return NULL; | |
25301 | } | |
25302 | ||
25303 | ||
25304 | SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25305 | PyObject *obj; | |
25306 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25307 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj)); | |
25308 | return SWIG_Py_Void(); | |
25309 | } | |
25310 | ||
25311 | SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25312 | return SWIG_Python_InitShadowInstance(args); | |
25313 | } | |
25314 | ||
25315 | SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25316 | PyObject *resultobj = 0; | |
25317 | wxGraphicsPen *result = 0 ; | |
25318 | ||
25319 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail; | |
25320 | { | |
25321 | result = (wxGraphicsPen *)new wxGraphicsPen(); | |
25322 | if (PyErr_Occurred()) SWIG_fail; | |
25323 | } | |
25324 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 ); | |
25325 | return resultobj; | |
25326 | fail: | |
25327 | return NULL; | |
25328 | } | |
25329 | ||
25330 | ||
25331 | SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25332 | PyObject *resultobj = 0; | |
25333 | wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ; | |
25334 | void *argp1 = 0 ; | |
25335 | int res1 = 0 ; | |
25336 | PyObject *swig_obj[1] ; | |
25337 | ||
25338 | if (!args) SWIG_fail; | |
25339 | swig_obj[0] = args; | |
25340 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 ); | |
25341 | if (!SWIG_IsOK(res1)) { | |
25342 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'"); | |
25343 | } | |
25344 | arg1 = reinterpret_cast< wxGraphicsPen * >(argp1); | |
25345 | { | |
25346 | delete arg1; | |
25347 | ||
25348 | if (PyErr_Occurred()) SWIG_fail; | |
25349 | } | |
25350 | resultobj = SWIG_Py_Void(); | |
25351 | return resultobj; | |
25352 | fail: | |
25353 | return NULL; | |
25354 | } | |
25355 | ||
25356 | ||
25357 | SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25358 | PyObject *obj; | |
25359 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25360 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj)); | |
25361 | return SWIG_Py_Void(); | |
25362 | } | |
25363 | ||
25364 | SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25365 | return SWIG_Python_InitShadowInstance(args); | |
25366 | } | |
25367 | ||
25368 | SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25369 | PyObject *resultobj = 0; | |
25370 | wxGraphicsBrush *result = 0 ; | |
25371 | ||
25372 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail; | |
25373 | { | |
25374 | result = (wxGraphicsBrush *)new wxGraphicsBrush(); | |
25375 | if (PyErr_Occurred()) SWIG_fail; | |
25376 | } | |
25377 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 ); | |
25378 | return resultobj; | |
25379 | fail: | |
25380 | return NULL; | |
25381 | } | |
25382 | ||
25383 | ||
25384 | SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25385 | PyObject *resultobj = 0; | |
25386 | wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ; | |
25387 | void *argp1 = 0 ; | |
25388 | int res1 = 0 ; | |
25389 | PyObject *swig_obj[1] ; | |
25390 | ||
25391 | if (!args) SWIG_fail; | |
25392 | swig_obj[0] = args; | |
25393 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 ); | |
25394 | if (!SWIG_IsOK(res1)) { | |
25395 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'"); | |
25396 | } | |
25397 | arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1); | |
25398 | { | |
25399 | delete arg1; | |
25400 | ||
25401 | if (PyErr_Occurred()) SWIG_fail; | |
25402 | } | |
25403 | resultobj = SWIG_Py_Void(); | |
25404 | return resultobj; | |
25405 | fail: | |
25406 | return NULL; | |
25407 | } | |
25408 | ||
25409 | ||
25410 | SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25411 | PyObject *obj; | |
25412 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25413 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj)); | |
25414 | return SWIG_Py_Void(); | |
25415 | } | |
25416 | ||
25417 | SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25418 | return SWIG_Python_InitShadowInstance(args); | |
25419 | } | |
25420 | ||
25421 | SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25422 | PyObject *resultobj = 0; | |
25423 | wxGraphicsFont *result = 0 ; | |
25424 | ||
25425 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail; | |
25426 | { | |
25427 | result = (wxGraphicsFont *)new wxGraphicsFont(); | |
25428 | if (PyErr_Occurred()) SWIG_fail; | |
25429 | } | |
25430 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 ); | |
25431 | return resultobj; | |
25432 | fail: | |
25433 | return NULL; | |
25434 | } | |
25435 | ||
25436 | ||
25437 | SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25438 | PyObject *resultobj = 0; | |
25439 | wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ; | |
25440 | void *argp1 = 0 ; | |
25441 | int res1 = 0 ; | |
25442 | PyObject *swig_obj[1] ; | |
25443 | ||
25444 | if (!args) SWIG_fail; | |
25445 | swig_obj[0] = args; | |
25446 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 ); | |
25447 | if (!SWIG_IsOK(res1)) { | |
25448 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'"); | |
25449 | } | |
25450 | arg1 = reinterpret_cast< wxGraphicsFont * >(argp1); | |
25451 | { | |
25452 | delete arg1; | |
25453 | ||
25454 | if (PyErr_Occurred()) SWIG_fail; | |
25455 | } | |
25456 | resultobj = SWIG_Py_Void(); | |
25457 | return resultobj; | |
25458 | fail: | |
25459 | return NULL; | |
25460 | } | |
25461 | ||
25462 | ||
25463 | SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25464 | PyObject *obj; | |
25465 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25466 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj)); | |
25467 | return SWIG_Py_Void(); | |
25468 | } | |
25469 | ||
25470 | SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25471 | return SWIG_Python_InitShadowInstance(args); | |
25472 | } | |
25473 | ||
8f514ab4 RD |
25474 | SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25475 | PyObject *resultobj = 0; | |
25476 | wxGraphicsMatrix *result = 0 ; | |
25477 | ||
25478 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail; | |
25479 | { | |
25480 | result = (wxGraphicsMatrix *)new wxGraphicsMatrix(); | |
25481 | if (PyErr_Occurred()) SWIG_fail; | |
25482 | } | |
25483 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 ); | |
25484 | return resultobj; | |
25485 | fail: | |
25486 | return NULL; | |
25487 | } | |
25488 | ||
25489 | ||
5c8c7dd3 | 25490 | SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 25491 | PyObject *resultobj = 0; |
5c8c7dd3 | 25492 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
0085ce49 RD |
25493 | void *argp1 = 0 ; |
25494 | int res1 = 0 ; | |
25495 | PyObject *swig_obj[1] ; | |
25496 | ||
25497 | if (!args) SWIG_fail; | |
25498 | swig_obj[0] = args; | |
5c8c7dd3 | 25499 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 ); |
0085ce49 | 25500 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25501 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
0085ce49 | 25502 | } |
5c8c7dd3 | 25503 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
0085ce49 | 25504 | { |
0085ce49 RD |
25505 | delete arg1; |
25506 | ||
0085ce49 RD |
25507 | if (PyErr_Occurred()) SWIG_fail; |
25508 | } | |
25509 | resultobj = SWIG_Py_Void(); | |
25510 | return resultobj; | |
25511 | fail: | |
25512 | return NULL; | |
25513 | } | |
25514 | ||
25515 | ||
5c8c7dd3 | 25516 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25517 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25518 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25519 | wxGraphicsMatrix *arg2 = 0 ; | |
70d7cb34 RD |
25520 | void *argp1 = 0 ; |
25521 | int res1 = 0 ; | |
5c8c7dd3 RD |
25522 | void *argp2 = 0 ; |
25523 | int res2 = 0 ; | |
25524 | PyObject * obj0 = 0 ; | |
25525 | PyObject * obj1 = 0 ; | |
25526 | char * kwnames[] = { | |
25527 | (char *) "self",(char *) "t", NULL | |
25528 | }; | |
70d7cb34 | 25529 | |
5c8c7dd3 RD |
25530 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail; |
25531 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 25532 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25533 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 25534 | } |
5c8c7dd3 RD |
25535 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25536 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
25537 | if (!SWIG_IsOK(res2)) { | |
25538 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
25539 | } | |
25540 | if (!argp2) { | |
25541 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
25542 | } | |
25543 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
70d7cb34 | 25544 | { |
5c8c7dd3 | 25545 | (arg1)->Concat((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
25546 | if (PyErr_Occurred()) SWIG_fail; |
25547 | } | |
5c8c7dd3 | 25548 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
25549 | return resultobj; |
25550 | fail: | |
25551 | return NULL; | |
25552 | } | |
25553 | ||
25554 | ||
5c8c7dd3 | 25555 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25556 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25557 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25558 | wxDouble arg2 = (wxDouble) 1.0 ; | |
25559 | wxDouble arg3 = (wxDouble) 0.0 ; | |
25560 | wxDouble arg4 = (wxDouble) 0.0 ; | |
25561 | wxDouble arg5 = (wxDouble) 1.0 ; | |
25562 | wxDouble arg6 = (wxDouble) 0.0 ; | |
25563 | wxDouble arg7 = (wxDouble) 0.0 ; | |
70d7cb34 RD |
25564 | void *argp1 = 0 ; |
25565 | int res1 = 0 ; | |
5c8c7dd3 RD |
25566 | double val2 ; |
25567 | int ecode2 = 0 ; | |
25568 | double val3 ; | |
25569 | int ecode3 = 0 ; | |
25570 | double val4 ; | |
25571 | int ecode4 = 0 ; | |
25572 | double val5 ; | |
25573 | int ecode5 = 0 ; | |
25574 | double val6 ; | |
25575 | int ecode6 = 0 ; | |
25576 | double val7 ; | |
25577 | int ecode7 = 0 ; | |
25578 | PyObject * obj0 = 0 ; | |
25579 | PyObject * obj1 = 0 ; | |
25580 | PyObject * obj2 = 0 ; | |
25581 | PyObject * obj3 = 0 ; | |
25582 | PyObject * obj4 = 0 ; | |
25583 | PyObject * obj5 = 0 ; | |
25584 | PyObject * obj6 = 0 ; | |
25585 | char * kwnames[] = { | |
25586 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL | |
25587 | }; | |
70d7cb34 | 25588 | |
5c8c7dd3 RD |
25589 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
25590 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 25591 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25592 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 25593 | } |
5c8c7dd3 RD |
25594 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25595 | if (obj1) { | |
25596 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
25597 | if (!SWIG_IsOK(ecode2)) { | |
25598 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25599 | } | |
25600 | arg2 = static_cast< wxDouble >(val2); | |
25601 | } | |
25602 | if (obj2) { | |
25603 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
25604 | if (!SWIG_IsOK(ecode3)) { | |
25605 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25606 | } | |
25607 | arg3 = static_cast< wxDouble >(val3); | |
25608 | } | |
25609 | if (obj3) { | |
25610 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
25611 | if (!SWIG_IsOK(ecode4)) { | |
25612 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'"); | |
25613 | } | |
25614 | arg4 = static_cast< wxDouble >(val4); | |
25615 | } | |
25616 | if (obj4) { | |
25617 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
25618 | if (!SWIG_IsOK(ecode5)) { | |
25619 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'"); | |
25620 | } | |
25621 | arg5 = static_cast< wxDouble >(val5); | |
25622 | } | |
25623 | if (obj5) { | |
25624 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
25625 | if (!SWIG_IsOK(ecode6)) { | |
25626 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'"); | |
25627 | } | |
25628 | arg6 = static_cast< wxDouble >(val6); | |
25629 | } | |
25630 | if (obj6) { | |
25631 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
25632 | if (!SWIG_IsOK(ecode7)) { | |
25633 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'"); | |
25634 | } | |
25635 | arg7 = static_cast< wxDouble >(val7); | |
70d7cb34 RD |
25636 | } |
25637 | { | |
5c8c7dd3 | 25638 | (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
25639 | if (PyErr_Occurred()) SWIG_fail; |
25640 | } | |
25641 | resultobj = SWIG_Py_Void(); | |
25642 | return resultobj; | |
25643 | fail: | |
25644 | return NULL; | |
25645 | } | |
25646 | ||
25647 | ||
5c8c7dd3 | 25648 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 25649 | PyObject *resultobj = 0; |
5c8c7dd3 | 25650 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
0085ce49 RD |
25651 | void *argp1 = 0 ; |
25652 | int res1 = 0 ; | |
5c8c7dd3 | 25653 | PyObject *swig_obj[1] ; |
0085ce49 | 25654 | |
5c8c7dd3 RD |
25655 | if (!args) SWIG_fail; |
25656 | swig_obj[0] = args; | |
25657 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
0085ce49 | 25658 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25659 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
0085ce49 | 25660 | } |
5c8c7dd3 | 25661 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
0085ce49 | 25662 | { |
5c8c7dd3 | 25663 | (arg1)->Invert(); |
0085ce49 RD |
25664 | if (PyErr_Occurred()) SWIG_fail; |
25665 | } | |
72ef6efb | 25666 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
25667 | return resultobj; |
25668 | fail: | |
25669 | return NULL; | |
25670 | } | |
25671 | ||
25672 | ||
5c8c7dd3 | 25673 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25674 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25675 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25676 | wxGraphicsMatrix *arg2 = 0 ; | |
25677 | bool result; | |
70d7cb34 RD |
25678 | void *argp1 = 0 ; |
25679 | int res1 = 0 ; | |
5c8c7dd3 RD |
25680 | void *argp2 = 0 ; |
25681 | int res2 = 0 ; | |
25682 | PyObject * obj0 = 0 ; | |
25683 | PyObject * obj1 = 0 ; | |
25684 | char * kwnames[] = { | |
25685 | (char *) "self",(char *) "t", NULL | |
25686 | }; | |
70d7cb34 | 25687 | |
5c8c7dd3 RD |
25688 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail; |
25689 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 25690 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25691 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); |
70d7cb34 | 25692 | } |
5c8c7dd3 RD |
25693 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25694 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
25695 | if (!SWIG_IsOK(res2)) { | |
25696 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
25697 | } | |
25698 | if (!argp2) { | |
25699 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
70d7cb34 | 25700 | } |
5c8c7dd3 | 25701 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); |
70d7cb34 | 25702 | { |
5c8c7dd3 | 25703 | result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
25704 | if (PyErr_Occurred()) SWIG_fail; |
25705 | } | |
5c8c7dd3 RD |
25706 | { |
25707 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25708 | } | |
70d7cb34 RD |
25709 | return resultobj; |
25710 | fail: | |
25711 | return NULL; | |
25712 | } | |
25713 | ||
25714 | ||
5c8c7dd3 RD |
25715 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25716 | PyObject *resultobj = 0; | |
25717 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
25718 | bool result; | |
25719 | void *argp1 = 0 ; | |
25720 | int res1 = 0 ; | |
25721 | PyObject *swig_obj[1] ; | |
70d7cb34 | 25722 | |
5c8c7dd3 RD |
25723 | if (!args) SWIG_fail; |
25724 | swig_obj[0] = args; | |
25725 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
25726 | if (!SWIG_IsOK(res1)) { | |
25727 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); | |
70d7cb34 | 25728 | } |
5c8c7dd3 RD |
25729 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25730 | { | |
25731 | result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity(); | |
25732 | if (PyErr_Occurred()) SWIG_fail; | |
70d7cb34 | 25733 | } |
5c8c7dd3 RD |
25734 | { |
25735 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25736 | } | |
25737 | return resultobj; | |
70d7cb34 | 25738 | fail: |
70d7cb34 RD |
25739 | return NULL; |
25740 | } | |
25741 | ||
25742 | ||
5c8c7dd3 | 25743 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 25744 | PyObject *resultobj = 0; |
5c8c7dd3 | 25745 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
72ef6efb RD |
25746 | wxDouble arg2 ; |
25747 | wxDouble arg3 ; | |
0085ce49 RD |
25748 | void *argp1 = 0 ; |
25749 | int res1 = 0 ; | |
72ef6efb RD |
25750 | double val2 ; |
25751 | int ecode2 = 0 ; | |
25752 | double val3 ; | |
25753 | int ecode3 = 0 ; | |
5c8c7dd3 RD |
25754 | PyObject * obj0 = 0 ; |
25755 | PyObject * obj1 = 0 ; | |
25756 | PyObject * obj2 = 0 ; | |
25757 | char * kwnames[] = { | |
25758 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
25759 | }; | |
72ef6efb | 25760 | |
5c8c7dd3 RD |
25761 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
25762 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
72ef6efb | 25763 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25764 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
72ef6efb | 25765 | } |
5c8c7dd3 RD |
25766 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25767 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
72ef6efb | 25768 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 25769 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
25770 | } |
25771 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 25772 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb | 25773 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 25774 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
25775 | } |
25776 | arg3 = static_cast< wxDouble >(val3); | |
72ef6efb | 25777 | { |
5c8c7dd3 | 25778 | (arg1)->Translate(arg2,arg3); |
72ef6efb RD |
25779 | if (PyErr_Occurred()) SWIG_fail; |
25780 | } | |
25781 | resultobj = SWIG_Py_Void(); | |
25782 | return resultobj; | |
25783 | fail: | |
25784 | return NULL; | |
25785 | } | |
25786 | ||
25787 | ||
5c8c7dd3 | 25788 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25789 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25790 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25791 | wxDouble arg2 ; | |
25792 | wxDouble arg3 ; | |
70d7cb34 RD |
25793 | void *argp1 = 0 ; |
25794 | int res1 = 0 ; | |
5c8c7dd3 RD |
25795 | double val2 ; |
25796 | int ecode2 = 0 ; | |
25797 | double val3 ; | |
25798 | int ecode3 = 0 ; | |
25799 | PyObject * obj0 = 0 ; | |
25800 | PyObject * obj1 = 0 ; | |
25801 | PyObject * obj2 = 0 ; | |
25802 | char * kwnames[] = { | |
25803 | (char *) "self",(char *) "xScale",(char *) "yScale", NULL | |
25804 | }; | |
70d7cb34 | 25805 | |
5c8c7dd3 RD |
25806 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
25807 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 25808 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25809 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 25810 | } |
5c8c7dd3 RD |
25811 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25812 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
25813 | if (!SWIG_IsOK(ecode2)) { | |
25814 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25815 | } | |
25816 | arg2 = static_cast< wxDouble >(val2); | |
25817 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
25818 | if (!SWIG_IsOK(ecode3)) { | |
25819 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25820 | } | |
25821 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 25822 | { |
5c8c7dd3 | 25823 | (arg1)->Scale(arg2,arg3); |
70d7cb34 RD |
25824 | if (PyErr_Occurred()) SWIG_fail; |
25825 | } | |
25826 | resultobj = SWIG_Py_Void(); | |
25827 | return resultobj; | |
25828 | fail: | |
25829 | return NULL; | |
25830 | } | |
25831 | ||
25832 | ||
5c8c7dd3 | 25833 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25834 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25835 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25836 | wxDouble arg2 ; | |
70d7cb34 RD |
25837 | void *argp1 = 0 ; |
25838 | int res1 = 0 ; | |
5c8c7dd3 RD |
25839 | double val2 ; |
25840 | int ecode2 = 0 ; | |
70d7cb34 RD |
25841 | PyObject * obj0 = 0 ; |
25842 | PyObject * obj1 = 0 ; | |
25843 | char * kwnames[] = { | |
5c8c7dd3 | 25844 | (char *) "self",(char *) "angle", NULL |
70d7cb34 RD |
25845 | }; |
25846 | ||
5c8c7dd3 RD |
25847 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail; |
25848 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 25849 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25850 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 25851 | } |
5c8c7dd3 RD |
25852 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25853 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
25854 | if (!SWIG_IsOK(ecode2)) { | |
25855 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25856 | } | |
25857 | arg2 = static_cast< wxDouble >(val2); | |
70d7cb34 | 25858 | { |
5c8c7dd3 | 25859 | (arg1)->Rotate(arg2); |
70d7cb34 RD |
25860 | if (PyErr_Occurred()) SWIG_fail; |
25861 | } | |
25862 | resultobj = SWIG_Py_Void(); | |
25863 | return resultobj; | |
25864 | fail: | |
25865 | return NULL; | |
25866 | } | |
25867 | ||
25868 | ||
5c8c7dd3 | 25869 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 25870 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25871 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25872 | wxDouble *arg2 = (wxDouble *) 0 ; | |
25873 | wxDouble *arg3 = (wxDouble *) 0 ; | |
72ef6efb RD |
25874 | void *argp1 = 0 ; |
25875 | int res1 = 0 ; | |
5c8c7dd3 RD |
25876 | wxDouble temp2 ; |
25877 | int res2 = 0 ; | |
25878 | wxDouble temp3 ; | |
25879 | int res3 = 0 ; | |
25880 | PyObject * obj0 = 0 ; | |
25881 | PyObject * obj1 = 0 ; | |
25882 | PyObject * obj2 = 0 ; | |
25883 | char * kwnames[] = { | |
25884 | (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL | |
25885 | }; | |
72ef6efb | 25886 | |
5c8c7dd3 RD |
25887 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
25888 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
72ef6efb | 25889 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 RD |
25890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); |
25891 | } | |
25892 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
25893 | if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) { | |
25894 | double val; | |
25895 | int ecode = SWIG_AsVal_double(obj1, &val); | |
25896 | if (!SWIG_IsOK(ecode)) { | |
25897 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25898 | } | |
25899 | temp2 = static_cast< wxDouble >(val); | |
25900 | arg2 = &temp2; | |
25901 | res2 = SWIG_AddTmpMask(ecode); | |
25902 | } | |
25903 | if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) { | |
25904 | double val; | |
25905 | int ecode = SWIG_AsVal_double(obj2, &val); | |
25906 | if (!SWIG_IsOK(ecode)) { | |
25907 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25908 | } | |
25909 | temp3 = static_cast< wxDouble >(val); | |
25910 | arg3 = &temp3; | |
25911 | res3 = SWIG_AddTmpMask(ecode); | |
25912 | } | |
25913 | { | |
25914 | ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3); | |
25915 | if (PyErr_Occurred()) SWIG_fail; | |
72ef6efb RD |
25916 | } |
25917 | resultobj = SWIG_Py_Void(); | |
5c8c7dd3 RD |
25918 | if (SWIG_IsTmpObj(res2)) { |
25919 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
25920 | } else { | |
25921 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
25922 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
25923 | } | |
25924 | if (SWIG_IsTmpObj(res3)) { | |
25925 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
25926 | } else { | |
25927 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
25928 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
25929 | } | |
72ef6efb RD |
25930 | return resultobj; |
25931 | fail: | |
25932 | return NULL; | |
25933 | } | |
25934 | ||
25935 | ||
5c8c7dd3 RD |
25936 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25937 | PyObject *resultobj = 0; | |
25938 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
25939 | wxDouble *arg2 = (wxDouble *) 0 ; | |
25940 | wxDouble *arg3 = (wxDouble *) 0 ; | |
25941 | void *argp1 = 0 ; | |
25942 | int res1 = 0 ; | |
25943 | wxDouble temp2 ; | |
25944 | int res2 = 0 ; | |
25945 | wxDouble temp3 ; | |
25946 | int res3 = 0 ; | |
25947 | PyObject * obj0 = 0 ; | |
25948 | PyObject * obj1 = 0 ; | |
25949 | PyObject * obj2 = 0 ; | |
25950 | char * kwnames[] = { | |
25951 | (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL | |
25952 | }; | |
25953 | ||
25954 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25955 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
25956 | if (!SWIG_IsOK(res1)) { | |
25957 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); | |
25958 | } | |
25959 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
25960 | if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) { | |
25961 | double val; | |
25962 | int ecode = SWIG_AsVal_double(obj1, &val); | |
25963 | if (!SWIG_IsOK(ecode)) { | |
25964 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25965 | } | |
25966 | temp2 = static_cast< wxDouble >(val); | |
25967 | arg2 = &temp2; | |
25968 | res2 = SWIG_AddTmpMask(ecode); | |
25969 | } | |
25970 | if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) { | |
25971 | double val; | |
25972 | int ecode = SWIG_AsVal_double(obj2, &val); | |
25973 | if (!SWIG_IsOK(ecode)) { | |
25974 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25975 | } | |
25976 | temp3 = static_cast< wxDouble >(val); | |
25977 | arg3 = &temp3; | |
25978 | res3 = SWIG_AddTmpMask(ecode); | |
25979 | } | |
25980 | { | |
25981 | ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3); | |
25982 | if (PyErr_Occurred()) SWIG_fail; | |
25983 | } | |
25984 | resultobj = SWIG_Py_Void(); | |
25985 | if (SWIG_IsTmpObj(res2)) { | |
25986 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
25987 | } else { | |
25988 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
25989 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
25990 | } | |
25991 | if (SWIG_IsTmpObj(res3)) { | |
25992 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
25993 | } else { | |
25994 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
25995 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
25996 | } | |
25997 | return resultobj; | |
25998 | fail: | |
25999 | return NULL; | |
26000 | } | |
26001 | ||
26002 | ||
26003 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26004 | PyObject *resultobj = 0; | |
26005 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
26006 | void *result = 0 ; | |
26007 | void *argp1 = 0 ; | |
26008 | int res1 = 0 ; | |
26009 | PyObject *swig_obj[1] ; | |
26010 | ||
26011 | if (!args) SWIG_fail; | |
26012 | swig_obj[0] = args; | |
26013 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
26014 | if (!SWIG_IsOK(res1)) { | |
26015 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); | |
26016 | } | |
26017 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
26018 | { | |
26019 | result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix(); | |
26020 | if (PyErr_Occurred()) SWIG_fail; | |
26021 | } | |
26022 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
26023 | return resultobj; | |
26024 | fail: | |
26025 | return NULL; | |
26026 | } | |
26027 | ||
26028 | ||
26029 | SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26030 | PyObject *obj; | |
26031 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26032 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj)); | |
26033 | return SWIG_Py_Void(); | |
26034 | } | |
26035 | ||
8f514ab4 RD |
26036 | SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26037 | return SWIG_Python_InitShadowInstance(args); | |
26038 | } | |
26039 | ||
26040 | SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26041 | PyObject *resultobj = 0; | |
26042 | wxGraphicsPath *result = 0 ; | |
26043 | ||
26044 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail; | |
26045 | { | |
26046 | if (!wxPyCheckForApp()) SWIG_fail; | |
26047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26048 | result = (wxGraphicsPath *)new wxGraphicsPath(); | |
26049 | wxPyEndAllowThreads(__tstate); | |
26050 | if (PyErr_Occurred()) SWIG_fail; | |
26051 | } | |
26052 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 ); | |
26053 | return resultobj; | |
26054 | fail: | |
26055 | return NULL; | |
26056 | } | |
26057 | ||
26058 | ||
5c8c7dd3 | 26059 | SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
26060 | PyObject *resultobj = 0; |
26061 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
72ef6efb RD |
26062 | void *argp1 = 0 ; |
26063 | int res1 = 0 ; | |
26064 | PyObject *swig_obj[1] ; | |
26065 | ||
26066 | if (!args) SWIG_fail; | |
26067 | swig_obj[0] = args; | |
5c8c7dd3 | 26068 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 ); |
72ef6efb | 26069 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
72ef6efb RD |
26071 | } |
26072 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26073 | { | |
5c8c7dd3 RD |
26074 | delete arg1; |
26075 | ||
72ef6efb RD |
26076 | if (PyErr_Occurred()) SWIG_fail; |
26077 | } | |
5c8c7dd3 | 26078 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
26079 | return resultobj; |
26080 | fail: | |
26081 | return NULL; | |
26082 | } | |
26083 | ||
26084 | ||
5c8c7dd3 | 26085 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26086 | PyObject *resultobj = 0; |
26087 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
26088 | wxDouble arg2 ; | |
26089 | wxDouble arg3 ; | |
70d7cb34 RD |
26090 | void *argp1 = 0 ; |
26091 | int res1 = 0 ; | |
26092 | double val2 ; | |
26093 | int ecode2 = 0 ; | |
26094 | double val3 ; | |
26095 | int ecode3 = 0 ; | |
70d7cb34 | 26096 | |
5c8c7dd3 | 26097 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; |
70d7cb34 RD |
26098 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26099 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26100 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26101 | } |
26102 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26103 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
26104 | if (!SWIG_IsOK(ecode2)) { | |
5c8c7dd3 | 26105 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26106 | } |
26107 | arg2 = static_cast< wxDouble >(val2); | |
26108 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
26109 | if (!SWIG_IsOK(ecode3)) { | |
5c8c7dd3 | 26110 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26111 | } |
26112 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 26113 | { |
5c8c7dd3 | 26114 | (arg1)->MoveToPoint(arg2,arg3); |
70d7cb34 RD |
26115 | if (PyErr_Occurred()) SWIG_fail; |
26116 | } | |
26117 | resultobj = SWIG_Py_Void(); | |
26118 | return resultobj; | |
26119 | fail: | |
26120 | return NULL; | |
26121 | } | |
26122 | ||
26123 | ||
5c8c7dd3 | 26124 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26125 | PyObject *resultobj = 0; |
26126 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
26127 | wxPoint2D *arg2 = 0 ; | |
70d7cb34 RD |
26128 | void *argp1 = 0 ; |
26129 | int res1 = 0 ; | |
26130 | wxPoint2D temp2 ; | |
70d7cb34 | 26131 | |
5c8c7dd3 | 26132 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
70d7cb34 RD |
26133 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26134 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26135 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26136 | } |
26137 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26138 | { | |
26139 | arg2 = &temp2; | |
26140 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
26141 | } | |
70d7cb34 | 26142 | { |
5c8c7dd3 | 26143 | (arg1)->MoveToPoint((wxPoint2D const &)*arg2); |
70d7cb34 RD |
26144 | if (PyErr_Occurred()) SWIG_fail; |
26145 | } | |
26146 | resultobj = SWIG_Py_Void(); | |
26147 | return resultobj; | |
26148 | fail: | |
26149 | return NULL; | |
26150 | } | |
26151 | ||
26152 | ||
5c8c7dd3 | 26153 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) { |
70d7cb34 | 26154 | int argc; |
5c8c7dd3 | 26155 | PyObject *argv[4]; |
70d7cb34 | 26156 | |
5c8c7dd3 | 26157 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail; |
70d7cb34 | 26158 | --argc; |
5c8c7dd3 RD |
26159 | if (argc == 2) { |
26160 | return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 26161 | } |
5c8c7dd3 RD |
26162 | if (argc == 3) { |
26163 | return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 RD |
26164 | } |
26165 | ||
26166 | fail: | |
5c8c7dd3 | 26167 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'"); |
70d7cb34 RD |
26168 | return NULL; |
26169 | } | |
26170 | ||
26171 | ||
5c8c7dd3 | 26172 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26173 | PyObject *resultobj = 0; |
26174 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
26175 | wxDouble arg2 ; | |
26176 | wxDouble arg3 ; | |
70d7cb34 RD |
26177 | void *argp1 = 0 ; |
26178 | int res1 = 0 ; | |
26179 | double val2 ; | |
26180 | int ecode2 = 0 ; | |
26181 | double val3 ; | |
26182 | int ecode3 = 0 ; | |
70d7cb34 | 26183 | |
5c8c7dd3 RD |
26184 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; |
26185 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26186 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26187 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26188 | } |
26189 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 26190 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); |
70d7cb34 | 26191 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 26192 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26193 | } |
26194 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 26195 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
70d7cb34 | 26196 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 26197 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26198 | } |
26199 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 26200 | { |
5c8c7dd3 | 26201 | (arg1)->AddLineToPoint(arg2,arg3); |
70d7cb34 RD |
26202 | if (PyErr_Occurred()) SWIG_fail; |
26203 | } | |
26204 | resultobj = SWIG_Py_Void(); | |
26205 | return resultobj; | |
26206 | fail: | |
26207 | return NULL; | |
26208 | } | |
26209 | ||
26210 | ||
5c8c7dd3 | 26211 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26212 | PyObject *resultobj = 0; |
26213 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 26214 | wxPoint2D *arg2 = 0 ; |
70d7cb34 RD |
26215 | void *argp1 = 0 ; |
26216 | int res1 = 0 ; | |
5c8c7dd3 | 26217 | wxPoint2D temp2 ; |
70d7cb34 | 26218 | |
5c8c7dd3 RD |
26219 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
26220 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26221 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26222 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26223 | } |
26224 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 26225 | { |
5c8c7dd3 RD |
26226 | arg2 = &temp2; |
26227 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
26228 | } | |
26229 | { | |
26230 | (arg1)->AddLineToPoint((wxPoint2D const &)*arg2); | |
70d7cb34 RD |
26231 | if (PyErr_Occurred()) SWIG_fail; |
26232 | } | |
26233 | resultobj = SWIG_Py_Void(); | |
26234 | return resultobj; | |
26235 | fail: | |
26236 | return NULL; | |
26237 | } | |
26238 | ||
26239 | ||
5c8c7dd3 RD |
26240 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) { |
26241 | int argc; | |
26242 | PyObject *argv[4]; | |
70d7cb34 | 26243 | |
5c8c7dd3 RD |
26244 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail; |
26245 | --argc; | |
26246 | if (argc == 2) { | |
26247 | return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 26248 | } |
5c8c7dd3 RD |
26249 | if (argc == 3) { |
26250 | return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 | 26251 | } |
5c8c7dd3 | 26252 | |
70d7cb34 | 26253 | fail: |
5c8c7dd3 | 26254 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'"); |
70d7cb34 RD |
26255 | return NULL; |
26256 | } | |
26257 | ||
26258 | ||
5c8c7dd3 | 26259 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26260 | PyObject *resultobj = 0; |
26261 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
26262 | wxDouble arg2 ; | |
26263 | wxDouble arg3 ; | |
26264 | wxDouble arg4 ; | |
26265 | wxDouble arg5 ; | |
26266 | wxDouble arg6 ; | |
5c8c7dd3 | 26267 | wxDouble arg7 ; |
70d7cb34 RD |
26268 | void *argp1 = 0 ; |
26269 | int res1 = 0 ; | |
26270 | double val2 ; | |
26271 | int ecode2 = 0 ; | |
26272 | double val3 ; | |
26273 | int ecode3 = 0 ; | |
26274 | double val4 ; | |
26275 | int ecode4 = 0 ; | |
26276 | double val5 ; | |
26277 | int ecode5 = 0 ; | |
26278 | double val6 ; | |
26279 | int ecode6 = 0 ; | |
5c8c7dd3 RD |
26280 | double val7 ; |
26281 | int ecode7 = 0 ; | |
70d7cb34 | 26282 | |
5c8c7dd3 RD |
26283 | if ((nobjs < 7) || (nobjs > 7)) SWIG_fail; |
26284 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26285 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26287 | } |
26288 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 26289 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); |
70d7cb34 | 26290 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 26291 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26292 | } |
26293 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 26294 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
70d7cb34 | 26295 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 26296 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26297 | } |
26298 | arg3 = static_cast< wxDouble >(val3); | |
5c8c7dd3 | 26299 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); |
70d7cb34 | 26300 | if (!SWIG_IsOK(ecode4)) { |
5c8c7dd3 | 26301 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26302 | } |
26303 | arg4 = static_cast< wxDouble >(val4); | |
5c8c7dd3 | 26304 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); |
70d7cb34 | 26305 | if (!SWIG_IsOK(ecode5)) { |
5c8c7dd3 | 26306 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26307 | } |
26308 | arg5 = static_cast< wxDouble >(val5); | |
5c8c7dd3 | 26309 | ecode6 = SWIG_AsVal_double(swig_obj[5], &val6); |
70d7cb34 | 26310 | if (!SWIG_IsOK(ecode6)) { |
5c8c7dd3 | 26311 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26312 | } |
26313 | arg6 = static_cast< wxDouble >(val6); | |
5c8c7dd3 RD |
26314 | ecode7 = SWIG_AsVal_double(swig_obj[6], &val7); |
26315 | if (!SWIG_IsOK(ecode7)) { | |
26316 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'"); | |
26317 | } | |
26318 | arg7 = static_cast< wxDouble >(val7); | |
70d7cb34 | 26319 | { |
5c8c7dd3 | 26320 | (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
26321 | if (PyErr_Occurred()) SWIG_fail; |
26322 | } | |
26323 | resultobj = SWIG_Py_Void(); | |
26324 | return resultobj; | |
26325 | fail: | |
26326 | return NULL; | |
26327 | } | |
26328 | ||
26329 | ||
5c8c7dd3 | 26330 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26331 | PyObject *resultobj = 0; |
26332 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 RD |
26333 | wxPoint2D *arg2 = 0 ; |
26334 | wxPoint2D *arg3 = 0 ; | |
26335 | wxPoint2D *arg4 = 0 ; | |
70d7cb34 RD |
26336 | void *argp1 = 0 ; |
26337 | int res1 = 0 ; | |
5c8c7dd3 RD |
26338 | wxPoint2D temp2 ; |
26339 | wxPoint2D temp3 ; | |
26340 | wxPoint2D temp4 ; | |
70d7cb34 | 26341 | |
5c8c7dd3 RD |
26342 | if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; |
26343 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26344 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26345 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26346 | } |
26347 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 26348 | { |
5c8c7dd3 RD |
26349 | arg2 = &temp2; |
26350 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
70d7cb34 | 26351 | } |
5c8c7dd3 RD |
26352 | { |
26353 | arg3 = &temp3; | |
26354 | if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail; | |
70d7cb34 | 26355 | } |
70d7cb34 | 26356 | { |
5c8c7dd3 RD |
26357 | arg4 = &temp4; |
26358 | if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail; | |
26359 | } | |
26360 | { | |
26361 | (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4); | |
70d7cb34 RD |
26362 | if (PyErr_Occurred()) SWIG_fail; |
26363 | } | |
26364 | resultobj = SWIG_Py_Void(); | |
26365 | return resultobj; | |
26366 | fail: | |
26367 | return NULL; | |
26368 | } | |
26369 | ||
26370 | ||
5c8c7dd3 RD |
26371 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) { |
26372 | int argc; | |
26373 | PyObject *argv[8]; | |
70d7cb34 | 26374 | |
5c8c7dd3 RD |
26375 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail; |
26376 | --argc; | |
26377 | if (argc == 4) { | |
26378 | return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 26379 | } |
5c8c7dd3 RD |
26380 | if (argc == 7) { |
26381 | return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 | 26382 | } |
5c8c7dd3 | 26383 | |
70d7cb34 | 26384 | fail: |
5c8c7dd3 | 26385 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'"); |
70d7cb34 RD |
26386 | return NULL; |
26387 | } | |
26388 | ||
26389 | ||
5c8c7dd3 | 26390 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 RD |
26391 | PyObject *resultobj = 0; |
26392 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 26393 | wxGraphicsPath *arg2 = 0 ; |
70d7cb34 RD |
26394 | void *argp1 = 0 ; |
26395 | int res1 = 0 ; | |
5c8c7dd3 RD |
26396 | void *argp2 = 0 ; |
26397 | int res2 = 0 ; | |
70d7cb34 RD |
26398 | PyObject * obj0 = 0 ; |
26399 | PyObject * obj1 = 0 ; | |
26400 | char * kwnames[] = { | |
5c8c7dd3 | 26401 | (char *) "self",(char *) "path", NULL |
70d7cb34 RD |
26402 | }; |
26403 | ||
5c8c7dd3 | 26404 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail; |
70d7cb34 RD |
26405 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26406 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26407 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26408 | } |
26409 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 26410 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
70d7cb34 | 26411 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
26412 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
26413 | } | |
26414 | if (!argp2) { | |
26415 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
70d7cb34 | 26416 | } |
5c8c7dd3 | 26417 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); |
70d7cb34 | 26418 | { |
5c8c7dd3 | 26419 | (arg1)->AddPath((wxGraphicsPath const &)*arg2); |
70d7cb34 RD |
26420 | if (PyErr_Occurred()) SWIG_fail; |
26421 | } | |
26422 | resultobj = SWIG_Py_Void(); | |
26423 | return resultobj; | |
26424 | fail: | |
26425 | return NULL; | |
26426 | } | |
26427 | ||
26428 | ||
5c8c7dd3 | 26429 | SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
26430 | PyObject *resultobj = 0; |
26431 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
70d7cb34 RD |
26432 | void *argp1 = 0 ; |
26433 | int res1 = 0 ; | |
5c8c7dd3 | 26434 | PyObject *swig_obj[1] ; |
70d7cb34 | 26435 | |
5c8c7dd3 RD |
26436 | if (!args) SWIG_fail; |
26437 | swig_obj[0] = args; | |
26438 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26439 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26440 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26441 | } |
26442 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 26443 | { |
5c8c7dd3 | 26444 | (arg1)->CloseSubpath(); |
70d7cb34 RD |
26445 | if (PyErr_Occurred()) SWIG_fail; |
26446 | } | |
26447 | resultobj = SWIG_Py_Void(); | |
26448 | return resultobj; | |
26449 | fail: | |
26450 | return NULL; | |
26451 | } | |
26452 | ||
26453 | ||
5c8c7dd3 | 26454 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
26455 | PyObject *resultobj = 0; |
26456 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 26457 | wxPoint2D result; |
70d7cb34 RD |
26458 | void *argp1 = 0 ; |
26459 | int res1 = 0 ; | |
26460 | PyObject *swig_obj[1] ; | |
26461 | ||
26462 | if (!args) SWIG_fail; | |
26463 | swig_obj[0] = args; | |
26464 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
26465 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26466 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 RD |
26467 | } |
26468 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26469 | { | |
5c8c7dd3 | 26470 | result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint(); |
70d7cb34 RD |
26471 | if (PyErr_Occurred()) SWIG_fail; |
26472 | } | |
5c8c7dd3 | 26473 | resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
26474 | return resultobj; |
26475 | fail: | |
26476 | return NULL; | |
26477 | } | |
26478 | ||
26479 | ||
5c8c7dd3 | 26480 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26481 | PyObject *resultobj = 0; |
26482 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
26483 | wxDouble arg2 ; | |
26484 | wxDouble arg3 ; | |
5c8c7dd3 RD |
26485 | wxDouble arg4 ; |
26486 | wxDouble arg5 ; | |
26487 | wxDouble arg6 ; | |
26488 | bool arg7 ; | |
70d7cb34 RD |
26489 | void *argp1 = 0 ; |
26490 | int res1 = 0 ; | |
26491 | double val2 ; | |
26492 | int ecode2 = 0 ; | |
26493 | double val3 ; | |
26494 | int ecode3 = 0 ; | |
5c8c7dd3 | 26495 | double val4 ; |
70d7cb34 | 26496 | int ecode4 = 0 ; |
5c8c7dd3 RD |
26497 | double val5 ; |
26498 | int ecode5 = 0 ; | |
26499 | double val6 ; | |
26500 | int ecode6 = 0 ; | |
26501 | bool val7 ; | |
26502 | int ecode7 = 0 ; | |
70d7cb34 | 26503 | |
5c8c7dd3 | 26504 | if ((nobjs < 7) || (nobjs > 7)) SWIG_fail; |
70d7cb34 RD |
26505 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26506 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26507 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26508 | } |
26509 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26510 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
26511 | if (!SWIG_IsOK(ecode2)) { | |
5c8c7dd3 | 26512 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26513 | } |
26514 | arg2 = static_cast< wxDouble >(val2); | |
26515 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
26516 | if (!SWIG_IsOK(ecode3)) { | |
5c8c7dd3 | 26517 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26518 | } |
26519 | arg3 = static_cast< wxDouble >(val3); | |
5c8c7dd3 RD |
26520 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); |
26521 | if (!SWIG_IsOK(ecode4)) { | |
26522 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26523 | } | |
26524 | arg4 = static_cast< wxDouble >(val4); | |
26525 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); | |
26526 | if (!SWIG_IsOK(ecode5)) { | |
26527 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26528 | } | |
26529 | arg5 = static_cast< wxDouble >(val5); | |
26530 | ecode6 = SWIG_AsVal_double(swig_obj[5], &val6); | |
26531 | if (!SWIG_IsOK(ecode6)) { | |
26532 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'"); | |
26533 | } | |
26534 | arg6 = static_cast< wxDouble >(val6); | |
26535 | ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7); | |
26536 | if (!SWIG_IsOK(ecode7)) { | |
26537 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'"); | |
26538 | } | |
26539 | arg7 = static_cast< bool >(val7); | |
70d7cb34 | 26540 | { |
5c8c7dd3 | 26541 | (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
26542 | if (PyErr_Occurred()) SWIG_fail; |
26543 | } | |
5c8c7dd3 | 26544 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
26545 | return resultobj; |
26546 | fail: | |
26547 | return NULL; | |
26548 | } | |
26549 | ||
26550 | ||
5c8c7dd3 | 26551 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26552 | PyObject *resultobj = 0; |
26553 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 RD |
26554 | wxPoint2D *arg2 = 0 ; |
26555 | wxDouble arg3 ; | |
26556 | wxDouble arg4 ; | |
26557 | wxDouble arg5 ; | |
26558 | bool arg6 ; | |
70d7cb34 RD |
26559 | void *argp1 = 0 ; |
26560 | int res1 = 0 ; | |
5c8c7dd3 RD |
26561 | wxPoint2D temp2 ; |
26562 | double val3 ; | |
70d7cb34 | 26563 | int ecode3 = 0 ; |
5c8c7dd3 RD |
26564 | double val4 ; |
26565 | int ecode4 = 0 ; | |
26566 | double val5 ; | |
26567 | int ecode5 = 0 ; | |
26568 | bool val6 ; | |
26569 | int ecode6 = 0 ; | |
70d7cb34 | 26570 | |
5c8c7dd3 | 26571 | if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; |
70d7cb34 RD |
26572 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26573 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26574 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26575 | } |
26576 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 26577 | { |
5c8c7dd3 RD |
26578 | arg2 = &temp2; |
26579 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
70d7cb34 | 26580 | } |
5c8c7dd3 RD |
26581 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
26582 | if (!SWIG_IsOK(ecode3)) { | |
26583 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26584 | } | |
26585 | arg3 = static_cast< wxDouble >(val3); | |
26586 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); | |
26587 | if (!SWIG_IsOK(ecode4)) { | |
26588 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26589 | } | |
26590 | arg4 = static_cast< wxDouble >(val4); | |
26591 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); | |
26592 | if (!SWIG_IsOK(ecode5)) { | |
26593 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26594 | } | |
26595 | arg5 = static_cast< wxDouble >(val5); | |
26596 | ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6); | |
26597 | if (!SWIG_IsOK(ecode6)) { | |
26598 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'"); | |
26599 | } | |
26600 | arg6 = static_cast< bool >(val6); | |
70d7cb34 | 26601 | { |
5c8c7dd3 RD |
26602 | (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6); |
26603 | if (PyErr_Occurred()) SWIG_fail; | |
70d7cb34 | 26604 | } |
5c8c7dd3 | 26605 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
26606 | return resultobj; |
26607 | fail: | |
26608 | return NULL; | |
26609 | } | |
26610 | ||
26611 | ||
5c8c7dd3 | 26612 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) { |
70d7cb34 | 26613 | int argc; |
5c8c7dd3 | 26614 | PyObject *argv[8]; |
70d7cb34 | 26615 | |
5c8c7dd3 | 26616 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail; |
70d7cb34 | 26617 | --argc; |
5c8c7dd3 RD |
26618 | if (argc == 6) { |
26619 | return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv); | |
70d7cb34 | 26620 | } |
5c8c7dd3 RD |
26621 | if (argc == 7) { |
26622 | return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv); | |
70d7cb34 RD |
26623 | } |
26624 | ||
26625 | fail: | |
5c8c7dd3 | 26626 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'"); |
70d7cb34 RD |
26627 | return NULL; |
26628 | } | |
26629 | ||
26630 | ||
5c8c7dd3 | 26631 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26632 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26633 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26634 | wxDouble arg2 ; | |
26635 | wxDouble arg3 ; | |
26636 | wxDouble arg4 ; | |
26637 | wxDouble arg5 ; | |
70d7cb34 RD |
26638 | void *argp1 = 0 ; |
26639 | int res1 = 0 ; | |
5c8c7dd3 RD |
26640 | double val2 ; |
26641 | int ecode2 = 0 ; | |
26642 | double val3 ; | |
26643 | int ecode3 = 0 ; | |
26644 | double val4 ; | |
26645 | int ecode4 = 0 ; | |
26646 | double val5 ; | |
26647 | int ecode5 = 0 ; | |
26648 | PyObject * obj0 = 0 ; | |
26649 | PyObject * obj1 = 0 ; | |
26650 | PyObject * obj2 = 0 ; | |
26651 | PyObject * obj3 = 0 ; | |
26652 | PyObject * obj4 = 0 ; | |
26653 | char * kwnames[] = { | |
26654 | (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL | |
26655 | }; | |
70d7cb34 | 26656 | |
5c8c7dd3 RD |
26657 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
26658 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26659 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26660 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26661 | } |
5c8c7dd3 RD |
26662 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26663 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26664 | if (!SWIG_IsOK(ecode2)) { | |
26665 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26666 | } | |
26667 | arg2 = static_cast< wxDouble >(val2); | |
26668 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26669 | if (!SWIG_IsOK(ecode3)) { | |
26670 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26671 | } | |
26672 | arg3 = static_cast< wxDouble >(val3); | |
26673 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26674 | if (!SWIG_IsOK(ecode4)) { | |
26675 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26676 | } | |
26677 | arg4 = static_cast< wxDouble >(val4); | |
26678 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26679 | if (!SWIG_IsOK(ecode5)) { | |
26680 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26681 | } | |
26682 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 26683 | { |
5c8c7dd3 | 26684 | (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
26685 | if (PyErr_Occurred()) SWIG_fail; |
26686 | } | |
26687 | resultobj = SWIG_Py_Void(); | |
26688 | return resultobj; | |
26689 | fail: | |
26690 | return NULL; | |
26691 | } | |
26692 | ||
26693 | ||
5c8c7dd3 | 26694 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26695 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26696 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26697 | wxDouble arg2 ; | |
26698 | wxDouble arg3 ; | |
26699 | wxDouble arg4 ; | |
26700 | wxDouble arg5 ; | |
70d7cb34 RD |
26701 | void *argp1 = 0 ; |
26702 | int res1 = 0 ; | |
5c8c7dd3 RD |
26703 | double val2 ; |
26704 | int ecode2 = 0 ; | |
26705 | double val3 ; | |
26706 | int ecode3 = 0 ; | |
26707 | double val4 ; | |
26708 | int ecode4 = 0 ; | |
26709 | double val5 ; | |
26710 | int ecode5 = 0 ; | |
70d7cb34 RD |
26711 | PyObject * obj0 = 0 ; |
26712 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
26713 | PyObject * obj2 = 0 ; |
26714 | PyObject * obj3 = 0 ; | |
26715 | PyObject * obj4 = 0 ; | |
70d7cb34 | 26716 | char * kwnames[] = { |
5c8c7dd3 | 26717 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL |
70d7cb34 RD |
26718 | }; |
26719 | ||
5c8c7dd3 RD |
26720 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
26721 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26722 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26724 | } |
5c8c7dd3 RD |
26725 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26726 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26727 | if (!SWIG_IsOK(ecode2)) { | |
26728 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26729 | } | |
26730 | arg2 = static_cast< wxDouble >(val2); | |
26731 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26732 | if (!SWIG_IsOK(ecode3)) { | |
26733 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26734 | } | |
26735 | arg3 = static_cast< wxDouble >(val3); | |
26736 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26737 | if (!SWIG_IsOK(ecode4)) { | |
26738 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26739 | } | |
26740 | arg4 = static_cast< wxDouble >(val4); | |
26741 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26742 | if (!SWIG_IsOK(ecode5)) { | |
26743 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26744 | } | |
26745 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 26746 | { |
5c8c7dd3 | 26747 | (arg1)->AddRectangle(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
26748 | if (PyErr_Occurred()) SWIG_fail; |
26749 | } | |
26750 | resultobj = SWIG_Py_Void(); | |
26751 | return resultobj; | |
26752 | fail: | |
26753 | return NULL; | |
26754 | } | |
26755 | ||
26756 | ||
5c8c7dd3 | 26757 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26758 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26759 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26760 | wxDouble arg2 ; | |
26761 | wxDouble arg3 ; | |
26762 | wxDouble arg4 ; | |
70d7cb34 RD |
26763 | void *argp1 = 0 ; |
26764 | int res1 = 0 ; | |
5c8c7dd3 RD |
26765 | double val2 ; |
26766 | int ecode2 = 0 ; | |
26767 | double val3 ; | |
26768 | int ecode3 = 0 ; | |
26769 | double val4 ; | |
26770 | int ecode4 = 0 ; | |
70d7cb34 RD |
26771 | PyObject * obj0 = 0 ; |
26772 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
26773 | PyObject * obj2 = 0 ; |
26774 | PyObject * obj3 = 0 ; | |
70d7cb34 | 26775 | char * kwnames[] = { |
5c8c7dd3 | 26776 | (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL |
70d7cb34 RD |
26777 | }; |
26778 | ||
5c8c7dd3 RD |
26779 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
26780 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26781 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26782 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26783 | } |
5c8c7dd3 RD |
26784 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26785 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26786 | if (!SWIG_IsOK(ecode2)) { | |
26787 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26788 | } | |
26789 | arg2 = static_cast< wxDouble >(val2); | |
26790 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26791 | if (!SWIG_IsOK(ecode3)) { | |
26792 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26793 | } | |
26794 | arg3 = static_cast< wxDouble >(val3); | |
26795 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26796 | if (!SWIG_IsOK(ecode4)) { | |
26797 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26798 | } | |
26799 | arg4 = static_cast< wxDouble >(val4); | |
70d7cb34 | 26800 | { |
5c8c7dd3 | 26801 | (arg1)->AddCircle(arg2,arg3,arg4); |
70d7cb34 RD |
26802 | if (PyErr_Occurred()) SWIG_fail; |
26803 | } | |
26804 | resultobj = SWIG_Py_Void(); | |
26805 | return resultobj; | |
26806 | fail: | |
26807 | return NULL; | |
26808 | } | |
26809 | ||
26810 | ||
5c8c7dd3 | 26811 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26812 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26813 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26814 | wxDouble arg2 ; | |
26815 | wxDouble arg3 ; | |
26816 | wxDouble arg4 ; | |
26817 | wxDouble arg5 ; | |
26818 | wxDouble arg6 ; | |
70d7cb34 RD |
26819 | void *argp1 = 0 ; |
26820 | int res1 = 0 ; | |
26821 | double val2 ; | |
26822 | int ecode2 = 0 ; | |
26823 | double val3 ; | |
26824 | int ecode3 = 0 ; | |
26825 | double val4 ; | |
26826 | int ecode4 = 0 ; | |
26827 | double val5 ; | |
26828 | int ecode5 = 0 ; | |
26829 | double val6 ; | |
26830 | int ecode6 = 0 ; | |
70d7cb34 RD |
26831 | PyObject * obj0 = 0 ; |
26832 | PyObject * obj1 = 0 ; | |
26833 | PyObject * obj2 = 0 ; | |
26834 | PyObject * obj3 = 0 ; | |
26835 | PyObject * obj4 = 0 ; | |
26836 | PyObject * obj5 = 0 ; | |
70d7cb34 | 26837 | char * kwnames[] = { |
5c8c7dd3 | 26838 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL |
70d7cb34 RD |
26839 | }; |
26840 | ||
5c8c7dd3 RD |
26841 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
26842 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26843 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26844 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26845 | } |
5c8c7dd3 RD |
26846 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26847 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26848 | if (!SWIG_IsOK(ecode2)) { | |
26849 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26850 | } | |
26851 | arg2 = static_cast< wxDouble >(val2); | |
26852 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26853 | if (!SWIG_IsOK(ecode3)) { | |
26854 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26855 | } | |
26856 | arg3 = static_cast< wxDouble >(val3); | |
26857 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26858 | if (!SWIG_IsOK(ecode4)) { | |
26859 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26860 | } | |
26861 | arg4 = static_cast< wxDouble >(val4); | |
26862 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26863 | if (!SWIG_IsOK(ecode5)) { | |
26864 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26865 | } | |
26866 | arg5 = static_cast< wxDouble >(val5); | |
26867 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
26868 | if (!SWIG_IsOK(ecode6)) { | |
26869 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'"); | |
26870 | } | |
26871 | arg6 = static_cast< wxDouble >(val6); | |
70d7cb34 | 26872 | { |
5c8c7dd3 | 26873 | (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6); |
70d7cb34 RD |
26874 | if (PyErr_Occurred()) SWIG_fail; |
26875 | } | |
26876 | resultobj = SWIG_Py_Void(); | |
26877 | return resultobj; | |
26878 | fail: | |
26879 | return NULL; | |
26880 | } | |
26881 | ||
26882 | ||
5c8c7dd3 | 26883 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26884 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26885 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26886 | wxDouble arg2 ; | |
26887 | wxDouble arg3 ; | |
26888 | wxDouble arg4 ; | |
26889 | wxDouble arg5 ; | |
70d7cb34 RD |
26890 | void *argp1 = 0 ; |
26891 | int res1 = 0 ; | |
5c8c7dd3 RD |
26892 | double val2 ; |
26893 | int ecode2 = 0 ; | |
26894 | double val3 ; | |
26895 | int ecode3 = 0 ; | |
26896 | double val4 ; | |
26897 | int ecode4 = 0 ; | |
26898 | double val5 ; | |
26899 | int ecode5 = 0 ; | |
26900 | PyObject * obj0 = 0 ; | |
26901 | PyObject * obj1 = 0 ; | |
26902 | PyObject * obj2 = 0 ; | |
26903 | PyObject * obj3 = 0 ; | |
26904 | PyObject * obj4 = 0 ; | |
26905 | char * kwnames[] = { | |
26906 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
26907 | }; | |
70d7cb34 | 26908 | |
5c8c7dd3 RD |
26909 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
26910 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26911 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26912 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26913 | } |
5c8c7dd3 RD |
26914 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26915 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26916 | if (!SWIG_IsOK(ecode2)) { | |
26917 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26918 | } | |
26919 | arg2 = static_cast< wxDouble >(val2); | |
26920 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26921 | if (!SWIG_IsOK(ecode3)) { | |
26922 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26923 | } | |
26924 | arg3 = static_cast< wxDouble >(val3); | |
26925 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26926 | if (!SWIG_IsOK(ecode4)) { | |
26927 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26928 | } | |
26929 | arg4 = static_cast< wxDouble >(val4); | |
26930 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26931 | if (!SWIG_IsOK(ecode5)) { | |
26932 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26933 | } | |
26934 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 26935 | { |
5c8c7dd3 | 26936 | (arg1)->AddEllipse(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
26937 | if (PyErr_Occurred()) SWIG_fail; |
26938 | } | |
26939 | resultobj = SWIG_Py_Void(); | |
26940 | return resultobj; | |
26941 | fail: | |
26942 | return NULL; | |
26943 | } | |
26944 | ||
26945 | ||
5c8c7dd3 | 26946 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26947 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26948 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26949 | wxDouble arg2 ; | |
26950 | wxDouble arg3 ; | |
26951 | wxDouble arg4 ; | |
26952 | wxDouble arg5 ; | |
26953 | wxDouble arg6 ; | |
70d7cb34 RD |
26954 | void *argp1 = 0 ; |
26955 | int res1 = 0 ; | |
5c8c7dd3 RD |
26956 | double val2 ; |
26957 | int ecode2 = 0 ; | |
26958 | double val3 ; | |
26959 | int ecode3 = 0 ; | |
26960 | double val4 ; | |
26961 | int ecode4 = 0 ; | |
26962 | double val5 ; | |
26963 | int ecode5 = 0 ; | |
26964 | double val6 ; | |
26965 | int ecode6 = 0 ; | |
70d7cb34 RD |
26966 | PyObject * obj0 = 0 ; |
26967 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
26968 | PyObject * obj2 = 0 ; |
26969 | PyObject * obj3 = 0 ; | |
26970 | PyObject * obj4 = 0 ; | |
26971 | PyObject * obj5 = 0 ; | |
70d7cb34 | 26972 | char * kwnames[] = { |
5c8c7dd3 | 26973 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL |
70d7cb34 RD |
26974 | }; |
26975 | ||
5c8c7dd3 RD |
26976 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
26977 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26978 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26980 | } |
5c8c7dd3 RD |
26981 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26982 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26983 | if (!SWIG_IsOK(ecode2)) { | |
26984 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26985 | } | |
26986 | arg2 = static_cast< wxDouble >(val2); | |
26987 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26988 | if (!SWIG_IsOK(ecode3)) { | |
26989 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26990 | } | |
26991 | arg3 = static_cast< wxDouble >(val3); | |
26992 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26993 | if (!SWIG_IsOK(ecode4)) { | |
26994 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26995 | } | |
26996 | arg4 = static_cast< wxDouble >(val4); | |
26997 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26998 | if (!SWIG_IsOK(ecode5)) { | |
26999 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27000 | } | |
27001 | arg5 = static_cast< wxDouble >(val5); | |
27002 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
27003 | if (!SWIG_IsOK(ecode6)) { | |
27004 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'"); | |
27005 | } | |
27006 | arg6 = static_cast< wxDouble >(val6); | |
70d7cb34 | 27007 | { |
5c8c7dd3 | 27008 | (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6); |
70d7cb34 RD |
27009 | if (PyErr_Occurred()) SWIG_fail; |
27010 | } | |
5c8c7dd3 | 27011 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
27012 | return resultobj; |
27013 | fail: | |
27014 | return NULL; | |
27015 | } | |
27016 | ||
27017 | ||
5c8c7dd3 | 27018 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 | 27019 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27020 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27021 | void *result = 0 ; | |
70d7cb34 RD |
27022 | void *argp1 = 0 ; |
27023 | int res1 = 0 ; | |
27024 | PyObject *swig_obj[1] ; | |
27025 | ||
27026 | if (!args) SWIG_fail; | |
27027 | swig_obj[0] = args; | |
5c8c7dd3 | 27028 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
70d7cb34 | 27029 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27030 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 27031 | } |
5c8c7dd3 | 27032 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
70d7cb34 | 27033 | { |
5c8c7dd3 | 27034 | result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath(); |
70d7cb34 RD |
27035 | if (PyErr_Occurred()) SWIG_fail; |
27036 | } | |
5c8c7dd3 | 27037 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); |
70d7cb34 RD |
27038 | return resultobj; |
27039 | fail: | |
27040 | return NULL; | |
27041 | } | |
27042 | ||
27043 | ||
5c8c7dd3 | 27044 | SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27045 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27046 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27047 | void *arg2 = (void *) 0 ; | |
70d7cb34 RD |
27048 | void *argp1 = 0 ; |
27049 | int res1 = 0 ; | |
5c8c7dd3 | 27050 | int res2 ; |
70d7cb34 RD |
27051 | PyObject * obj0 = 0 ; |
27052 | PyObject * obj1 = 0 ; | |
70d7cb34 | 27053 | char * kwnames[] = { |
5c8c7dd3 | 27054 | (char *) "self",(char *) "p", NULL |
70d7cb34 RD |
27055 | }; |
27056 | ||
5c8c7dd3 RD |
27057 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail; |
27058 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27059 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 RD |
27060 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
27061 | } | |
27062 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
27063 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
27064 | if (!SWIG_IsOK(res2)) { | |
27065 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'"); | |
70d7cb34 | 27066 | } |
70d7cb34 | 27067 | { |
5c8c7dd3 | 27068 | ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2); |
70d7cb34 RD |
27069 | if (PyErr_Occurred()) SWIG_fail; |
27070 | } | |
27071 | resultobj = SWIG_Py_Void(); | |
27072 | return resultobj; | |
27073 | fail: | |
27074 | return NULL; | |
27075 | } | |
27076 | ||
27077 | ||
5c8c7dd3 | 27078 | SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27079 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27080 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27081 | wxGraphicsMatrix *arg2 = 0 ; | |
70d7cb34 RD |
27082 | void *argp1 = 0 ; |
27083 | int res1 = 0 ; | |
5c8c7dd3 RD |
27084 | void *argp2 = 0 ; |
27085 | int res2 = 0 ; | |
70d7cb34 RD |
27086 | PyObject * obj0 = 0 ; |
27087 | PyObject * obj1 = 0 ; | |
70d7cb34 | 27088 | char * kwnames[] = { |
5c8c7dd3 | 27089 | (char *) "self",(char *) "matrix", NULL |
70d7cb34 RD |
27090 | }; |
27091 | ||
5c8c7dd3 RD |
27092 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail; |
27093 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27094 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27095 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27096 | } |
5c8c7dd3 RD |
27097 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27098 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
27099 | if (!SWIG_IsOK(res2)) { | |
27100 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
27101 | } | |
27102 | if (!argp2) { | |
27103 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
27104 | } | |
27105 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
70d7cb34 | 27106 | { |
5c8c7dd3 | 27107 | (arg1)->Transform((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
27108 | if (PyErr_Occurred()) SWIG_fail; |
27109 | } | |
27110 | resultobj = SWIG_Py_Void(); | |
27111 | return resultobj; | |
27112 | fail: | |
27113 | return NULL; | |
27114 | } | |
27115 | ||
27116 | ||
5c8c7dd3 | 27117 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 | 27118 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27119 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27120 | wxRect2DDouble result; | |
70d7cb34 RD |
27121 | void *argp1 = 0 ; |
27122 | int res1 = 0 ; | |
5c8c7dd3 | 27123 | PyObject *swig_obj[1] ; |
70d7cb34 | 27124 | |
5c8c7dd3 RD |
27125 | if (!args) SWIG_fail; |
27126 | swig_obj[0] = args; | |
27127 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27128 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 27130 | } |
5c8c7dd3 | 27131 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
70d7cb34 | 27132 | { |
5c8c7dd3 | 27133 | result = ((wxGraphicsPath const *)arg1)->GetBox(); |
70d7cb34 RD |
27134 | if (PyErr_Occurred()) SWIG_fail; |
27135 | } | |
5c8c7dd3 | 27136 | resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
27137 | return resultobj; |
27138 | fail: | |
27139 | return NULL; | |
27140 | } | |
27141 | ||
27142 | ||
5c8c7dd3 | 27143 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 | 27144 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27145 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27146 | wxDouble arg2 ; | |
27147 | wxDouble arg3 ; | |
27148 | int arg4 = (int) wxODDEVEN_RULE ; | |
27149 | bool result; | |
70d7cb34 RD |
27150 | void *argp1 = 0 ; |
27151 | int res1 = 0 ; | |
5c8c7dd3 RD |
27152 | double val2 ; |
27153 | int ecode2 = 0 ; | |
27154 | double val3 ; | |
27155 | int ecode3 = 0 ; | |
27156 | int val4 ; | |
27157 | int ecode4 = 0 ; | |
70d7cb34 | 27158 | |
5c8c7dd3 RD |
27159 | if ((nobjs < 3) || (nobjs > 4)) SWIG_fail; |
27160 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27161 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27162 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 27163 | } |
5c8c7dd3 RD |
27164 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27165 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
27166 | if (!SWIG_IsOK(ecode2)) { | |
27167 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27168 | } | |
27169 | arg2 = static_cast< wxDouble >(val2); | |
27170 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
27171 | if (!SWIG_IsOK(ecode3)) { | |
27172 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27173 | } | |
27174 | arg3 = static_cast< wxDouble >(val3); | |
27175 | if (swig_obj[3]) { | |
27176 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
27177 | if (!SWIG_IsOK(ecode4)) { | |
27178 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'"); | |
27179 | } | |
27180 | arg4 = static_cast< int >(val4); | |
70d7cb34 RD |
27181 | } |
27182 | { | |
5c8c7dd3 | 27183 | result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4); |
70d7cb34 RD |
27184 | if (PyErr_Occurred()) SWIG_fail; |
27185 | } | |
5c8c7dd3 RD |
27186 | { |
27187 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
70d7cb34 RD |
27188 | } |
27189 | return resultobj; | |
27190 | fail: | |
27191 | return NULL; | |
27192 | } | |
27193 | ||
27194 | ||
5c8c7dd3 | 27195 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 | 27196 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27197 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27198 | wxPoint2DDouble *arg2 = 0 ; | |
27199 | int arg3 = (int) wxODDEVEN_RULE ; | |
27200 | bool result; | |
70d7cb34 RD |
27201 | void *argp1 = 0 ; |
27202 | int res1 = 0 ; | |
5c8c7dd3 | 27203 | void *argp2 = 0 ; |
70d7cb34 | 27204 | int res2 = 0 ; |
5c8c7dd3 RD |
27205 | int val3 ; |
27206 | int ecode3 = 0 ; | |
70d7cb34 | 27207 | |
5c8c7dd3 RD |
27208 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; |
27209 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27210 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 27212 | } |
5c8c7dd3 RD |
27213 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27214 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0); | |
27215 | if (!SWIG_IsOK(res2)) { | |
27216 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'"); | |
70d7cb34 | 27217 | } |
5c8c7dd3 RD |
27218 | if (!argp2) { |
27219 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'"); | |
27220 | } | |
27221 | arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2); | |
27222 | if (swig_obj[2]) { | |
27223 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
27224 | if (!SWIG_IsOK(ecode3)) { | |
27225 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'"); | |
27226 | } | |
27227 | arg3 = static_cast< int >(val3); | |
70d7cb34 RD |
27228 | } |
27229 | { | |
5c8c7dd3 | 27230 | result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3); |
70d7cb34 RD |
27231 | if (PyErr_Occurred()) SWIG_fail; |
27232 | } | |
5c8c7dd3 RD |
27233 | { |
27234 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
70d7cb34 RD |
27235 | } |
27236 | return resultobj; | |
27237 | fail: | |
27238 | return NULL; | |
27239 | } | |
27240 | ||
27241 | ||
5c8c7dd3 RD |
27242 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) { |
27243 | int argc; | |
27244 | PyObject *argv[5]; | |
70d7cb34 | 27245 | |
5c8c7dd3 RD |
27246 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail; |
27247 | --argc; | |
27248 | if ((argc >= 2) && (argc <= 3)) { | |
27249 | int _v = 0; | |
27250 | { | |
27251 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0); | |
27252 | _v = SWIG_CheckState(res); | |
27253 | } | |
27254 | if (!_v) goto check_1; | |
27255 | if (argc > 2) { | |
27256 | { | |
27257 | { | |
27258 | int res = SWIG_AsVal_int(argv[2], NULL); | |
27259 | _v = SWIG_CheckState(res); | |
27260 | } | |
27261 | } | |
27262 | if (!_v) goto check_1; | |
27263 | } | |
27264 | return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv); | |
70d7cb34 | 27265 | } |
5c8c7dd3 RD |
27266 | check_1: |
27267 | ||
27268 | if ((argc >= 3) && (argc <= 4)) { | |
27269 | return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv); | |
70d7cb34 | 27270 | } |
5c8c7dd3 | 27271 | |
70d7cb34 | 27272 | fail: |
5c8c7dd3 | 27273 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'"); |
70d7cb34 RD |
27274 | return NULL; |
27275 | } | |
27276 | ||
27277 | ||
5c8c7dd3 | 27278 | SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
27279 | PyObject *obj; |
27280 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5c8c7dd3 | 27281 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj)); |
70d7cb34 RD |
27282 | return SWIG_Py_Void(); |
27283 | } | |
27284 | ||
8f514ab4 RD |
27285 | SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27286 | return SWIG_Python_InitShadowInstance(args); | |
27287 | } | |
27288 | ||
5c8c7dd3 RD |
27289 | SWIGINTERN int NullGraphicsPen_set(PyObject *) { |
27290 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only."); | |
27291 | return 1; | |
27292 | } | |
27293 | ||
27294 | ||
27295 | SWIGINTERN PyObject *NullGraphicsPen_get(void) { | |
27296 | PyObject *pyobj = 0; | |
27297 | ||
27298 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 ); | |
27299 | return pyobj; | |
27300 | } | |
27301 | ||
27302 | ||
27303 | SWIGINTERN int NullGraphicsBrush_set(PyObject *) { | |
27304 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only."); | |
27305 | return 1; | |
27306 | } | |
27307 | ||
27308 | ||
27309 | SWIGINTERN PyObject *NullGraphicsBrush_get(void) { | |
27310 | PyObject *pyobj = 0; | |
27311 | ||
27312 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 ); | |
27313 | return pyobj; | |
27314 | } | |
27315 | ||
27316 | ||
27317 | SWIGINTERN int NullGraphicsFont_set(PyObject *) { | |
27318 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only."); | |
27319 | return 1; | |
27320 | } | |
27321 | ||
27322 | ||
27323 | SWIGINTERN PyObject *NullGraphicsFont_get(void) { | |
27324 | PyObject *pyobj = 0; | |
27325 | ||
27326 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 ); | |
27327 | return pyobj; | |
27328 | } | |
27329 | ||
27330 | ||
27331 | SWIGINTERN int NullGraphicsMatrix_set(PyObject *) { | |
27332 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only."); | |
27333 | return 1; | |
27334 | } | |
27335 | ||
27336 | ||
27337 | SWIGINTERN PyObject *NullGraphicsMatrix_get(void) { | |
27338 | PyObject *pyobj = 0; | |
27339 | ||
27340 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 ); | |
27341 | return pyobj; | |
27342 | } | |
27343 | ||
27344 | ||
27345 | SWIGINTERN int NullGraphicsPath_set(PyObject *) { | |
27346 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only."); | |
27347 | return 1; | |
27348 | } | |
27349 | ||
27350 | ||
27351 | SWIGINTERN PyObject *NullGraphicsPath_get(void) { | |
27352 | PyObject *pyobj = 0; | |
27353 | ||
27354 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 ); | |
27355 | return pyobj; | |
27356 | } | |
27357 | ||
27358 | ||
70d7cb34 RD |
27359 | SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27360 | PyObject *resultobj = 0; | |
27361 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27362 | void *argp1 = 0 ; | |
27363 | int res1 = 0 ; | |
27364 | PyObject *swig_obj[1] ; | |
27365 | ||
27366 | if (!args) SWIG_fail; | |
27367 | swig_obj[0] = args; | |
27368 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 ); | |
27369 | if (!SWIG_IsOK(res1)) { | |
27370 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27371 | } | |
27372 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27373 | { | |
27374 | delete arg1; | |
27375 | ||
27376 | if (PyErr_Occurred()) SWIG_fail; | |
27377 | } | |
27378 | resultobj = SWIG_Py_Void(); | |
27379 | return resultobj; | |
27380 | fail: | |
27381 | return NULL; | |
27382 | } | |
27383 | ||
27384 | ||
27385 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
27386 | PyObject *resultobj = 0; | |
27387 | wxWindowDC *arg1 = 0 ; | |
27388 | wxGraphicsContext *result = 0 ; | |
27389 | void *argp1 = 0 ; | |
27390 | int res1 = 0 ; | |
27391 | ||
27392 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
27393 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
27394 | if (!SWIG_IsOK(res1)) { | |
27395 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
27396 | } | |
27397 | if (!argp1) { | |
27398 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
27399 | } | |
27400 | arg1 = reinterpret_cast< wxWindowDC * >(argp1); | |
27401 | { | |
27402 | result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1); | |
27403 | if (PyErr_Occurred()) SWIG_fail; | |
27404 | } | |
27405 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
27406 | return resultobj; | |
27407 | fail: | |
27408 | return NULL; | |
27409 | } | |
27410 | ||
27411 | ||
27412 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
27413 | PyObject *resultobj = 0; | |
27414 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27415 | wxGraphicsContext *result = 0 ; | |
27416 | void *argp1 = 0 ; | |
27417 | int res1 = 0 ; | |
27418 | ||
27419 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
27420 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27421 | if (!SWIG_IsOK(res1)) { | |
27422 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
27423 | } | |
27424 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
27425 | { | |
27426 | result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1); | |
27427 | if (PyErr_Occurred()) SWIG_fail; | |
27428 | } | |
27429 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
27430 | return resultobj; | |
27431 | fail: | |
27432 | return NULL; | |
27433 | } | |
27434 | ||
27435 | ||
27436 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) { | |
27437 | int argc; | |
27438 | PyObject *argv[2]; | |
27439 | ||
27440 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail; | |
27441 | --argc; | |
27442 | if (argc == 1) { | |
27443 | int _v = 0; | |
27444 | { | |
27445 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0); | |
27446 | _v = SWIG_CheckState(res); | |
27447 | } | |
27448 | if (!_v) goto check_1; | |
27449 | return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv); | |
27450 | } | |
27451 | check_1: | |
27452 | ||
27453 | if (argc == 1) { | |
27454 | return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv); | |
27455 | } | |
27456 | ||
27457 | fail: | |
27458 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'"); | |
27459 | return NULL; | |
27460 | } | |
27461 | ||
27462 | ||
f89238b9 RD |
27463 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27464 | PyObject *resultobj = 0; | |
27465 | wxGraphicsContext *result = 0 ; | |
27466 | ||
27467 | if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail; | |
27468 | { | |
27469 | result = (wxGraphicsContext *)wxGraphicsContext::Create(); | |
27470 | if (PyErr_Occurred()) SWIG_fail; | |
27471 | } | |
27472 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
27473 | return resultobj; | |
27474 | fail: | |
27475 | return NULL; | |
27476 | } | |
27477 | ||
27478 | ||
70d7cb34 RD |
27479 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27480 | PyObject *resultobj = 0; | |
27481 | void *arg1 = (void *) 0 ; | |
27482 | wxGraphicsContext *result = 0 ; | |
27483 | int res1 ; | |
27484 | PyObject * obj0 = 0 ; | |
27485 | char * kwnames[] = { | |
27486 | (char *) "context", NULL | |
27487 | }; | |
27488 | ||
27489 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail; | |
27490 | res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); | |
27491 | if (!SWIG_IsOK(res1)) { | |
27492 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'"); | |
27493 | } | |
27494 | { | |
27495 | result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1); | |
27496 | if (PyErr_Occurred()) SWIG_fail; | |
27497 | } | |
27498 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
27499 | return resultobj; | |
27500 | fail: | |
27501 | return NULL; | |
27502 | } | |
27503 | ||
27504 | ||
27505 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27506 | PyObject *resultobj = 0; | |
27507 | void *arg1 = (void *) 0 ; | |
27508 | wxGraphicsContext *result = 0 ; | |
27509 | int res1 ; | |
27510 | PyObject * obj0 = 0 ; | |
27511 | char * kwnames[] = { | |
27512 | (char *) "window", NULL | |
27513 | }; | |
27514 | ||
27515 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail; | |
27516 | res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); | |
27517 | if (!SWIG_IsOK(res1)) { | |
27518 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'"); | |
27519 | } | |
27520 | { | |
27521 | result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1); | |
27522 | if (PyErr_Occurred()) SWIG_fail; | |
27523 | } | |
27524 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27525 | return resultobj; | |
27526 | fail: | |
27527 | return NULL; | |
27528 | } | |
27529 | ||
27530 | ||
27531 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27532 | PyObject *resultobj = 0; | |
27533 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 27534 | wxGraphicsPath result; |
70d7cb34 RD |
27535 | void *argp1 = 0 ; |
27536 | int res1 = 0 ; | |
27537 | PyObject *swig_obj[1] ; | |
27538 | ||
27539 | if (!args) SWIG_fail; | |
27540 | swig_obj[0] = args; | |
27541 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27542 | if (!SWIG_IsOK(res1)) { | |
27543 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27544 | } | |
27545 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27546 | { | |
5c8c7dd3 | 27547 | result = (arg1)->CreatePath(); |
70d7cb34 RD |
27548 | if (PyErr_Occurred()) SWIG_fail; |
27549 | } | |
5c8c7dd3 | 27550 | resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27551 | return resultobj; |
27552 | fail: | |
27553 | return NULL; | |
27554 | } | |
27555 | ||
27556 | ||
70d7cb34 | 27557 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 27558 | PyObject *resultobj = 0; |
70d7cb34 RD |
27559 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
27560 | wxPen *arg2 = 0 ; | |
27561 | wxGraphicsPen result; | |
72ef6efb RD |
27562 | void *argp1 = 0 ; |
27563 | int res1 = 0 ; | |
70d7cb34 RD |
27564 | void *argp2 = 0 ; |
27565 | int res2 = 0 ; | |
72ef6efb RD |
27566 | PyObject * obj0 = 0 ; |
27567 | PyObject * obj1 = 0 ; | |
72ef6efb | 27568 | char * kwnames[] = { |
70d7cb34 | 27569 | (char *) "self",(char *) "pen", NULL |
72ef6efb RD |
27570 | }; |
27571 | ||
70d7cb34 RD |
27572 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail; |
27573 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 27574 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27575 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 27576 | } |
70d7cb34 RD |
27577 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
27578 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
27579 | if (!SWIG_IsOK(res2)) { | |
27580 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
27581 | } | |
27582 | if (!argp2) { | |
27583 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
27584 | } | |
27585 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
72ef6efb | 27586 | { |
70d7cb34 | 27587 | result = (arg1)->CreatePen((wxPen const &)*arg2); |
72ef6efb RD |
27588 | if (PyErr_Occurred()) SWIG_fail; |
27589 | } | |
70d7cb34 | 27590 | resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27591 | return resultobj; |
27592 | fail: | |
27593 | return NULL; | |
27594 | } | |
27595 | ||
27596 | ||
70d7cb34 | 27597 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 27598 | PyObject *resultobj = 0; |
70d7cb34 RD |
27599 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
27600 | wxBrush *arg2 = 0 ; | |
27601 | wxGraphicsBrush result; | |
72ef6efb RD |
27602 | void *argp1 = 0 ; |
27603 | int res1 = 0 ; | |
70d7cb34 RD |
27604 | void *argp2 = 0 ; |
27605 | int res2 = 0 ; | |
72ef6efb RD |
27606 | PyObject * obj0 = 0 ; |
27607 | PyObject * obj1 = 0 ; | |
72ef6efb | 27608 | char * kwnames[] = { |
70d7cb34 | 27609 | (char *) "self",(char *) "brush", NULL |
72ef6efb RD |
27610 | }; |
27611 | ||
70d7cb34 RD |
27612 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail; |
27613 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 27614 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27615 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 27616 | } |
70d7cb34 RD |
27617 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
27618 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
27619 | if (!SWIG_IsOK(res2)) { | |
27620 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
27621 | } | |
27622 | if (!argp2) { | |
27623 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
27624 | } | |
27625 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
72ef6efb | 27626 | { |
70d7cb34 | 27627 | result = (arg1)->CreateBrush((wxBrush const &)*arg2); |
72ef6efb RD |
27628 | if (PyErr_Occurred()) SWIG_fail; |
27629 | } | |
70d7cb34 | 27630 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27631 | return resultobj; |
27632 | fail: | |
27633 | return NULL; | |
27634 | } | |
27635 | ||
27636 | ||
70d7cb34 | 27637 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 27638 | PyObject *resultobj = 0; |
70d7cb34 | 27639 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
72ef6efb RD |
27640 | wxDouble arg2 ; |
27641 | wxDouble arg3 ; | |
27642 | wxDouble arg4 ; | |
27643 | wxDouble arg5 ; | |
70d7cb34 RD |
27644 | wxColour *arg6 = 0 ; |
27645 | wxColour *arg7 = 0 ; | |
27646 | wxGraphicsBrush result; | |
72ef6efb RD |
27647 | void *argp1 = 0 ; |
27648 | int res1 = 0 ; | |
27649 | double val2 ; | |
27650 | int ecode2 = 0 ; | |
27651 | double val3 ; | |
27652 | int ecode3 = 0 ; | |
27653 | double val4 ; | |
27654 | int ecode4 = 0 ; | |
27655 | double val5 ; | |
27656 | int ecode5 = 0 ; | |
70d7cb34 RD |
27657 | wxColour temp6 ; |
27658 | wxColour temp7 ; | |
72ef6efb RD |
27659 | PyObject * obj0 = 0 ; |
27660 | PyObject * obj1 = 0 ; | |
27661 | PyObject * obj2 = 0 ; | |
27662 | PyObject * obj3 = 0 ; | |
27663 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
27664 | PyObject * obj5 = 0 ; |
27665 | PyObject * obj6 = 0 ; | |
72ef6efb | 27666 | char * kwnames[] = { |
70d7cb34 | 27667 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL |
72ef6efb RD |
27668 | }; |
27669 | ||
70d7cb34 RD |
27670 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
27671 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 27672 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27673 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 27674 | } |
70d7cb34 | 27675 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
72ef6efb RD |
27676 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
27677 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 27678 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
27679 | } |
27680 | arg2 = static_cast< wxDouble >(val2); | |
27681 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27682 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 27683 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
27684 | } |
27685 | arg3 = static_cast< wxDouble >(val3); | |
27686 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27687 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 27688 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
27689 | } |
27690 | arg4 = static_cast< wxDouble >(val4); | |
27691 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27692 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 27693 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
27694 | } |
27695 | arg5 = static_cast< wxDouble >(val5); | |
27696 | { | |
70d7cb34 RD |
27697 | arg6 = &temp6; |
27698 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
72ef6efb | 27699 | } |
70d7cb34 RD |
27700 | { |
27701 | arg7 = &temp7; | |
27702 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
72ef6efb | 27703 | } |
72ef6efb | 27704 | { |
70d7cb34 | 27705 | result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7); |
72ef6efb RD |
27706 | if (PyErr_Occurred()) SWIG_fail; |
27707 | } | |
70d7cb34 | 27708 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27709 | return resultobj; |
27710 | fail: | |
27711 | return NULL; | |
27712 | } | |
27713 | ||
27714 | ||
70d7cb34 | 27715 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 27716 | PyObject *resultobj = 0; |
70d7cb34 | 27717 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
72ef6efb RD |
27718 | wxDouble arg2 ; |
27719 | wxDouble arg3 ; | |
27720 | wxDouble arg4 ; | |
27721 | wxDouble arg5 ; | |
27722 | wxDouble arg6 ; | |
70d7cb34 RD |
27723 | wxColour *arg7 = 0 ; |
27724 | wxColour *arg8 = 0 ; | |
27725 | wxGraphicsBrush result; | |
72ef6efb RD |
27726 | void *argp1 = 0 ; |
27727 | int res1 = 0 ; | |
27728 | double val2 ; | |
27729 | int ecode2 = 0 ; | |
27730 | double val3 ; | |
27731 | int ecode3 = 0 ; | |
27732 | double val4 ; | |
27733 | int ecode4 = 0 ; | |
27734 | double val5 ; | |
27735 | int ecode5 = 0 ; | |
27736 | double val6 ; | |
27737 | int ecode6 = 0 ; | |
70d7cb34 RD |
27738 | wxColour temp7 ; |
27739 | wxColour temp8 ; | |
72ef6efb RD |
27740 | PyObject * obj0 = 0 ; |
27741 | PyObject * obj1 = 0 ; | |
27742 | PyObject * obj2 = 0 ; | |
27743 | PyObject * obj3 = 0 ; | |
27744 | PyObject * obj4 = 0 ; | |
27745 | PyObject * obj5 = 0 ; | |
70d7cb34 RD |
27746 | PyObject * obj6 = 0 ; |
27747 | PyObject * obj7 = 0 ; | |
72ef6efb | 27748 | char * kwnames[] = { |
70d7cb34 | 27749 | (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL |
72ef6efb RD |
27750 | }; |
27751 | ||
70d7cb34 RD |
27752 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
27753 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 27754 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27755 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 27756 | } |
70d7cb34 | 27757 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
72ef6efb RD |
27758 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
27759 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 27760 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
27761 | } |
27762 | arg2 = static_cast< wxDouble >(val2); | |
27763 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27764 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 27765 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
27766 | } |
27767 | arg3 = static_cast< wxDouble >(val3); | |
27768 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27769 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 27770 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
27771 | } |
27772 | arg4 = static_cast< wxDouble >(val4); | |
27773 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27774 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 27775 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
27776 | } |
27777 | arg5 = static_cast< wxDouble >(val5); | |
27778 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
27779 | if (!SWIG_IsOK(ecode6)) { | |
70d7cb34 | 27780 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'"); |
72ef6efb RD |
27781 | } |
27782 | arg6 = static_cast< wxDouble >(val6); | |
27783 | { | |
70d7cb34 RD |
27784 | arg7 = &temp7; |
27785 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
27786 | } | |
27787 | { | |
27788 | arg8 = &temp8; | |
27789 | if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail; | |
27790 | } | |
27791 | { | |
27792 | result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8); | |
72ef6efb RD |
27793 | if (PyErr_Occurred()) SWIG_fail; |
27794 | } | |
70d7cb34 | 27795 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27796 | return resultobj; |
27797 | fail: | |
27798 | return NULL; | |
27799 | } | |
27800 | ||
27801 | ||
70d7cb34 | 27802 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
27803 | PyObject *resultobj = 0; |
27804 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 RD |
27805 | wxFont *arg2 = 0 ; |
27806 | wxColour const &arg3_defvalue = *wxBLACK ; | |
27807 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
27808 | wxGraphicsFont result; | |
72ef6efb RD |
27809 | void *argp1 = 0 ; |
27810 | int res1 = 0 ; | |
70d7cb34 RD |
27811 | void *argp2 = 0 ; |
27812 | int res2 = 0 ; | |
27813 | wxColour temp3 ; | |
27814 | PyObject * obj0 = 0 ; | |
27815 | PyObject * obj1 = 0 ; | |
27816 | PyObject * obj2 = 0 ; | |
27817 | char * kwnames[] = { | |
27818 | (char *) "self",(char *) "font",(char *) "col", NULL | |
27819 | }; | |
72ef6efb | 27820 | |
70d7cb34 RD |
27821 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
27822 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 27823 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27824 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
27825 | } |
27826 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
27827 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); |
27828 | if (!SWIG_IsOK(res2)) { | |
27829 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
72ef6efb | 27830 | } |
70d7cb34 RD |
27831 | if (!argp2) { |
27832 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
72ef6efb | 27833 | } |
70d7cb34 RD |
27834 | arg2 = reinterpret_cast< wxFont * >(argp2); |
27835 | if (obj2) { | |
27836 | { | |
27837 | arg3 = &temp3; | |
27838 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
27839 | } | |
72ef6efb | 27840 | } |
72ef6efb | 27841 | { |
70d7cb34 | 27842 | result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3); |
72ef6efb RD |
27843 | if (PyErr_Occurred()) SWIG_fail; |
27844 | } | |
70d7cb34 | 27845 | resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27846 | return resultobj; |
27847 | fail: | |
27848 | return NULL; | |
27849 | } | |
27850 | ||
27851 | ||
70d7cb34 | 27852 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0a27f394 | 27853 | PyObject *resultobj = 0; |
70d7cb34 RD |
27854 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
27855 | wxDouble arg2 = (wxDouble) 1.0 ; | |
27856 | wxDouble arg3 = (wxDouble) 0.0 ; | |
27857 | wxDouble arg4 = (wxDouble) 0.0 ; | |
27858 | wxDouble arg5 = (wxDouble) 1.0 ; | |
27859 | wxDouble arg6 = (wxDouble) 0.0 ; | |
27860 | wxDouble arg7 = (wxDouble) 0.0 ; | |
5c8c7dd3 | 27861 | wxGraphicsMatrix result; |
0a27f394 RD |
27862 | void *argp1 = 0 ; |
27863 | int res1 = 0 ; | |
70d7cb34 RD |
27864 | double val2 ; |
27865 | int ecode2 = 0 ; | |
27866 | double val3 ; | |
27867 | int ecode3 = 0 ; | |
27868 | double val4 ; | |
27869 | int ecode4 = 0 ; | |
27870 | double val5 ; | |
27871 | int ecode5 = 0 ; | |
27872 | double val6 ; | |
27873 | int ecode6 = 0 ; | |
27874 | double val7 ; | |
27875 | int ecode7 = 0 ; | |
27876 | PyObject * obj0 = 0 ; | |
27877 | PyObject * obj1 = 0 ; | |
27878 | PyObject * obj2 = 0 ; | |
27879 | PyObject * obj3 = 0 ; | |
27880 | PyObject * obj4 = 0 ; | |
27881 | PyObject * obj5 = 0 ; | |
27882 | PyObject * obj6 = 0 ; | |
27883 | char * kwnames[] = { | |
27884 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL | |
27885 | }; | |
0a27f394 | 27886 | |
70d7cb34 RD |
27887 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
27888 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
0a27f394 | 27889 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
0a27f394 | 27891 | } |
70d7cb34 RD |
27892 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
27893 | if (obj1) { | |
27894 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27895 | if (!SWIG_IsOK(ecode2)) { | |
27896 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27897 | } | |
27898 | arg2 = static_cast< wxDouble >(val2); | |
0a27f394 | 27899 | } |
70d7cb34 RD |
27900 | if (obj2) { |
27901 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27902 | if (!SWIG_IsOK(ecode3)) { | |
27903 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27904 | } | |
27905 | arg3 = static_cast< wxDouble >(val3); | |
0a27f394 | 27906 | } |
70d7cb34 RD |
27907 | if (obj3) { |
27908 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27909 | if (!SWIG_IsOK(ecode4)) { | |
27910 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27911 | } | |
27912 | arg4 = static_cast< wxDouble >(val4); | |
0a27f394 | 27913 | } |
70d7cb34 RD |
27914 | if (obj4) { |
27915 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27916 | if (!SWIG_IsOK(ecode5)) { | |
27917 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27918 | } | |
27919 | arg5 = static_cast< wxDouble >(val5); | |
0a27f394 | 27920 | } |
70d7cb34 RD |
27921 | if (obj5) { |
27922 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
27923 | if (!SWIG_IsOK(ecode6)) { | |
27924 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'"); | |
27925 | } | |
27926 | arg6 = static_cast< wxDouble >(val6); | |
0a27f394 | 27927 | } |
70d7cb34 RD |
27928 | if (obj6) { |
27929 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
27930 | if (!SWIG_IsOK(ecode7)) { | |
27931 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'"); | |
27932 | } | |
27933 | arg7 = static_cast< wxDouble >(val7); | |
72ef6efb | 27934 | } |
72ef6efb | 27935 | { |
5c8c7dd3 | 27936 | result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7); |
72ef6efb RD |
27937 | if (PyErr_Occurred()) SWIG_fail; |
27938 | } | |
5c8c7dd3 | 27939 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27940 | return resultobj; |
27941 | fail: | |
27942 | return NULL; | |
27943 | } | |
27944 | ||
27945 | ||
27946 | SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27947 | PyObject *resultobj = 0; | |
27948 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27949 | void *argp1 = 0 ; | |
27950 | int res1 = 0 ; | |
27951 | PyObject *swig_obj[1] ; | |
27952 | ||
27953 | if (!args) SWIG_fail; | |
27954 | swig_obj[0] = args; | |
27955 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27956 | if (!SWIG_IsOK(res1)) { | |
27957 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27958 | } | |
27959 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27960 | { | |
72ef6efb | 27961 | (arg1)->PushState(); |
72ef6efb RD |
27962 | if (PyErr_Occurred()) SWIG_fail; |
27963 | } | |
27964 | resultobj = SWIG_Py_Void(); | |
27965 | return resultobj; | |
27966 | fail: | |
27967 | return NULL; | |
27968 | } | |
27969 | ||
27970 | ||
27971 | SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27972 | PyObject *resultobj = 0; | |
27973 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27974 | void *argp1 = 0 ; | |
27975 | int res1 = 0 ; | |
27976 | PyObject *swig_obj[1] ; | |
27977 | ||
27978 | if (!args) SWIG_fail; | |
27979 | swig_obj[0] = args; | |
27980 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27981 | if (!SWIG_IsOK(res1)) { | |
27982 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27983 | } | |
27984 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27985 | { | |
72ef6efb | 27986 | (arg1)->PopState(); |
72ef6efb RD |
27987 | if (PyErr_Occurred()) SWIG_fail; |
27988 | } | |
27989 | resultobj = SWIG_Py_Void(); | |
27990 | return resultobj; | |
27991 | fail: | |
27992 | return NULL; | |
27993 | } | |
27994 | ||
27995 | ||
0a27f394 | 27996 | SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
27997 | PyObject *resultobj = 0; |
27998 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27999 | wxRegion *arg2 = 0 ; | |
28000 | void *argp1 = 0 ; | |
28001 | int res1 = 0 ; | |
28002 | void *argp2 = 0 ; | |
28003 | int res2 = 0 ; | |
28004 | PyObject * obj0 = 0 ; | |
28005 | PyObject * obj1 = 0 ; | |
28006 | char * kwnames[] = { | |
28007 | (char *) "self",(char *) "region", NULL | |
28008 | }; | |
28009 | ||
0a27f394 | 28010 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
28011 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
28012 | if (!SWIG_IsOK(res1)) { | |
0a27f394 | 28013 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
28014 | } |
28015 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28016 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
28017 | if (!SWIG_IsOK(res2)) { | |
0a27f394 | 28018 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); |
72ef6efb RD |
28019 | } |
28020 | if (!argp2) { | |
0a27f394 | 28021 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); |
72ef6efb RD |
28022 | } |
28023 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
28024 | { | |
72ef6efb | 28025 | (arg1)->Clip((wxRegion const &)*arg2); |
72ef6efb RD |
28026 | if (PyErr_Occurred()) SWIG_fail; |
28027 | } | |
28028 | resultobj = SWIG_Py_Void(); | |
28029 | return resultobj; | |
28030 | fail: | |
28031 | return NULL; | |
28032 | } | |
28033 | ||
28034 | ||
0a27f394 RD |
28035 | SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28036 | PyObject *resultobj = 0; | |
28037 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28038 | wxDouble arg2 ; | |
28039 | wxDouble arg3 ; | |
28040 | wxDouble arg4 ; | |
28041 | wxDouble arg5 ; | |
28042 | void *argp1 = 0 ; | |
28043 | int res1 = 0 ; | |
28044 | double val2 ; | |
28045 | int ecode2 = 0 ; | |
28046 | double val3 ; | |
28047 | int ecode3 = 0 ; | |
28048 | double val4 ; | |
28049 | int ecode4 = 0 ; | |
28050 | double val5 ; | |
28051 | int ecode5 = 0 ; | |
28052 | PyObject * obj0 = 0 ; | |
28053 | PyObject * obj1 = 0 ; | |
28054 | PyObject * obj2 = 0 ; | |
28055 | PyObject * obj3 = 0 ; | |
28056 | PyObject * obj4 = 0 ; | |
28057 | char * kwnames[] = { | |
28058 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
28059 | }; | |
28060 | ||
28061 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
28062 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28063 | if (!SWIG_IsOK(res1)) { | |
28064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28065 | } | |
28066 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28067 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28068 | if (!SWIG_IsOK(ecode2)) { | |
28069 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28070 | } | |
28071 | arg2 = static_cast< wxDouble >(val2); | |
28072 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28073 | if (!SWIG_IsOK(ecode3)) { | |
28074 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28075 | } | |
28076 | arg3 = static_cast< wxDouble >(val3); | |
28077 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28078 | if (!SWIG_IsOK(ecode4)) { | |
28079 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'"); | |
28080 | } | |
28081 | arg4 = static_cast< wxDouble >(val4); | |
28082 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28083 | if (!SWIG_IsOK(ecode5)) { | |
28084 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'"); | |
28085 | } | |
28086 | arg5 = static_cast< wxDouble >(val5); | |
28087 | { | |
28088 | (arg1)->Clip(arg2,arg3,arg4,arg5); | |
28089 | if (PyErr_Occurred()) SWIG_fail; | |
28090 | } | |
28091 | resultobj = SWIG_Py_Void(); | |
28092 | return resultobj; | |
28093 | fail: | |
28094 | return NULL; | |
28095 | } | |
28096 | ||
28097 | ||
28098 | SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28099 | PyObject *resultobj = 0; | |
28100 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28101 | void *argp1 = 0 ; | |
28102 | int res1 = 0 ; | |
28103 | PyObject *swig_obj[1] ; | |
28104 | ||
28105 | if (!args) SWIG_fail; | |
28106 | swig_obj[0] = args; | |
28107 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28108 | if (!SWIG_IsOK(res1)) { | |
28109 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28110 | } | |
28111 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28112 | { | |
28113 | (arg1)->ResetClip(); | |
28114 | if (PyErr_Occurred()) SWIG_fail; | |
28115 | } | |
28116 | resultobj = SWIG_Py_Void(); | |
28117 | return resultobj; | |
28118 | fail: | |
28119 | return NULL; | |
28120 | } | |
28121 | ||
28122 | ||
28123 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28124 | PyObject *resultobj = 0; | |
28125 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28126 | void *result = 0 ; | |
28127 | void *argp1 = 0 ; | |
28128 | int res1 = 0 ; | |
28129 | PyObject *swig_obj[1] ; | |
28130 | ||
28131 | if (!args) SWIG_fail; | |
28132 | swig_obj[0] = args; | |
28133 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28134 | if (!SWIG_IsOK(res1)) { | |
28135 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28136 | } | |
28137 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28138 | { | |
28139 | result = (void *)(arg1)->GetNativeContext(); | |
28140 | if (PyErr_Occurred()) SWIG_fail; | |
28141 | } | |
28142 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
28143 | return resultobj; | |
28144 | fail: | |
28145 | return NULL; | |
28146 | } | |
28147 | ||
28148 | ||
c8aaaf9e RD |
28149 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28150 | PyObject *resultobj = 0; | |
28151 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28152 | int result; | |
28153 | void *argp1 = 0 ; | |
28154 | int res1 = 0 ; | |
28155 | PyObject *swig_obj[1] ; | |
28156 | ||
28157 | if (!args) SWIG_fail; | |
28158 | swig_obj[0] = args; | |
28159 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28160 | if (!SWIG_IsOK(res1)) { | |
28161 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); | |
28162 | } | |
28163 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28164 | { | |
28165 | result = (int)((wxGraphicsContext const *)arg1)->GetLogicalFunction(); | |
28166 | if (PyErr_Occurred()) SWIG_fail; | |
28167 | } | |
28168 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28169 | return resultobj; | |
28170 | fail: | |
28171 | return NULL; | |
28172 | } | |
28173 | ||
28174 | ||
28175 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28176 | PyObject *resultobj = 0; | |
28177 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28178 | int arg2 ; | |
28179 | bool result; | |
28180 | void *argp1 = 0 ; | |
28181 | int res1 = 0 ; | |
28182 | int val2 ; | |
28183 | int ecode2 = 0 ; | |
28184 | PyObject * obj0 = 0 ; | |
28185 | PyObject * obj1 = 0 ; | |
28186 | char * kwnames[] = { | |
28187 | (char *) "self",(char *) "function", NULL | |
28188 | }; | |
28189 | ||
28190 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
28191 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28192 | if (!SWIG_IsOK(res1)) { | |
28193 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28194 | } | |
28195 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28196 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28197 | if (!SWIG_IsOK(ecode2)) { | |
28198 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
28199 | } | |
28200 | arg2 = static_cast< int >(val2); | |
28201 | { | |
28202 | result = (bool)(arg1)->SetLogicalFunction(arg2); | |
28203 | if (PyErr_Occurred()) SWIG_fail; | |
28204 | } | |
28205 | { | |
28206 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28207 | } | |
28208 | return resultobj; | |
28209 | fail: | |
28210 | return NULL; | |
28211 | } | |
28212 | ||
28213 | ||
72ef6efb RD |
28214 | SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28215 | PyObject *resultobj = 0; | |
28216 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28217 | wxDouble arg2 ; | |
28218 | wxDouble arg3 ; | |
28219 | void *argp1 = 0 ; | |
28220 | int res1 = 0 ; | |
28221 | double val2 ; | |
28222 | int ecode2 = 0 ; | |
28223 | double val3 ; | |
28224 | int ecode3 = 0 ; | |
28225 | PyObject * obj0 = 0 ; | |
28226 | PyObject * obj1 = 0 ; | |
28227 | PyObject * obj2 = 0 ; | |
28228 | char * kwnames[] = { | |
28229 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
28230 | }; | |
28231 | ||
28232 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28233 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28234 | if (!SWIG_IsOK(res1)) { | |
28235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28236 | } | |
28237 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28238 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28239 | if (!SWIG_IsOK(ecode2)) { | |
28240 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28241 | } | |
28242 | arg2 = static_cast< wxDouble >(val2); | |
28243 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28244 | if (!SWIG_IsOK(ecode3)) { | |
28245 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28246 | } | |
28247 | arg3 = static_cast< wxDouble >(val3); | |
28248 | { | |
72ef6efb | 28249 | (arg1)->Translate(arg2,arg3); |
72ef6efb RD |
28250 | if (PyErr_Occurred()) SWIG_fail; |
28251 | } | |
28252 | resultobj = SWIG_Py_Void(); | |
28253 | return resultobj; | |
28254 | fail: | |
28255 | return NULL; | |
28256 | } | |
28257 | ||
28258 | ||
28259 | SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28260 | PyObject *resultobj = 0; | |
28261 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28262 | wxDouble arg2 ; | |
28263 | wxDouble arg3 ; | |
28264 | void *argp1 = 0 ; | |
28265 | int res1 = 0 ; | |
28266 | double val2 ; | |
28267 | int ecode2 = 0 ; | |
28268 | double val3 ; | |
28269 | int ecode3 = 0 ; | |
28270 | PyObject * obj0 = 0 ; | |
28271 | PyObject * obj1 = 0 ; | |
28272 | PyObject * obj2 = 0 ; | |
28273 | char * kwnames[] = { | |
28274 | (char *) "self",(char *) "xScale",(char *) "yScale", NULL | |
28275 | }; | |
28276 | ||
28277 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28278 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28279 | if (!SWIG_IsOK(res1)) { | |
28280 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28281 | } | |
28282 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28283 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28284 | if (!SWIG_IsOK(ecode2)) { | |
28285 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28286 | } | |
28287 | arg2 = static_cast< wxDouble >(val2); | |
28288 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28289 | if (!SWIG_IsOK(ecode3)) { | |
28290 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28291 | } | |
28292 | arg3 = static_cast< wxDouble >(val3); | |
28293 | { | |
72ef6efb | 28294 | (arg1)->Scale(arg2,arg3); |
72ef6efb RD |
28295 | if (PyErr_Occurred()) SWIG_fail; |
28296 | } | |
28297 | resultobj = SWIG_Py_Void(); | |
28298 | return resultobj; | |
28299 | fail: | |
28300 | return NULL; | |
28301 | } | |
28302 | ||
28303 | ||
28304 | SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28305 | PyObject *resultobj = 0; | |
28306 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28307 | wxDouble arg2 ; | |
28308 | void *argp1 = 0 ; | |
28309 | int res1 = 0 ; | |
28310 | double val2 ; | |
28311 | int ecode2 = 0 ; | |
28312 | PyObject * obj0 = 0 ; | |
28313 | PyObject * obj1 = 0 ; | |
28314 | char * kwnames[] = { | |
28315 | (char *) "self",(char *) "angle", NULL | |
28316 | }; | |
28317 | ||
28318 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail; | |
28319 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28320 | if (!SWIG_IsOK(res1)) { | |
28321 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28322 | } | |
28323 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28324 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28325 | if (!SWIG_IsOK(ecode2)) { | |
28326 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28327 | } | |
28328 | arg2 = static_cast< wxDouble >(val2); | |
28329 | { | |
72ef6efb | 28330 | (arg1)->Rotate(arg2); |
72ef6efb RD |
28331 | if (PyErr_Occurred()) SWIG_fail; |
28332 | } | |
28333 | resultobj = SWIG_Py_Void(); | |
28334 | return resultobj; | |
28335 | fail: | |
28336 | return NULL; | |
28337 | } | |
28338 | ||
28339 | ||
5c8c7dd3 RD |
28340 | SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28341 | PyObject *resultobj = 0; | |
28342 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28343 | wxGraphicsMatrix *arg2 = 0 ; | |
28344 | void *argp1 = 0 ; | |
28345 | int res1 = 0 ; | |
28346 | void *argp2 = 0 ; | |
28347 | int res2 = 0 ; | |
28348 | PyObject * obj0 = 0 ; | |
28349 | PyObject * obj1 = 0 ; | |
28350 | char * kwnames[] = { | |
28351 | (char *) "self",(char *) "matrix", NULL | |
28352 | }; | |
28353 | ||
28354 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail; | |
28355 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28356 | if (!SWIG_IsOK(res1)) { | |
28357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28358 | } | |
28359 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28360 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
28361 | if (!SWIG_IsOK(res2)) { | |
28362 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28363 | } | |
28364 | if (!argp2) { | |
28365 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28366 | } | |
28367 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
28368 | { | |
28369 | (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2); | |
28370 | if (PyErr_Occurred()) SWIG_fail; | |
28371 | } | |
28372 | resultobj = SWIG_Py_Void(); | |
28373 | return resultobj; | |
28374 | fail: | |
28375 | return NULL; | |
28376 | } | |
28377 | ||
28378 | ||
28379 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28380 | PyObject *resultobj = 0; | |
28381 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28382 | wxGraphicsMatrix *arg2 = 0 ; | |
28383 | void *argp1 = 0 ; | |
28384 | int res1 = 0 ; | |
28385 | void *argp2 = 0 ; | |
28386 | int res2 = 0 ; | |
28387 | PyObject * obj0 = 0 ; | |
28388 | PyObject * obj1 = 0 ; | |
28389 | char * kwnames[] = { | |
28390 | (char *) "self",(char *) "matrix", NULL | |
28391 | }; | |
28392 | ||
28393 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail; | |
28394 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28395 | if (!SWIG_IsOK(res1)) { | |
28396 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28397 | } | |
28398 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28399 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
28400 | if (!SWIG_IsOK(res2)) { | |
28401 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28402 | } | |
28403 | if (!argp2) { | |
28404 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28405 | } | |
28406 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
28407 | { | |
28408 | (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2); | |
28409 | if (PyErr_Occurred()) SWIG_fail; | |
28410 | } | |
28411 | resultobj = SWIG_Py_Void(); | |
28412 | return resultobj; | |
28413 | fail: | |
28414 | return NULL; | |
28415 | } | |
28416 | ||
28417 | ||
28418 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28419 | PyObject *resultobj = 0; | |
28420 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28421 | wxGraphicsMatrix result; | |
28422 | void *argp1 = 0 ; | |
28423 | int res1 = 0 ; | |
28424 | PyObject *swig_obj[1] ; | |
28425 | ||
28426 | if (!args) SWIG_fail; | |
28427 | swig_obj[0] = args; | |
28428 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28429 | if (!SWIG_IsOK(res1)) { | |
28430 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); | |
28431 | } | |
28432 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28433 | { | |
28434 | result = ((wxGraphicsContext const *)arg1)->GetTransform(); | |
28435 | if (PyErr_Occurred()) SWIG_fail; | |
28436 | } | |
28437 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); | |
28438 | return resultobj; | |
28439 | fail: | |
28440 | return NULL; | |
28441 | } | |
28442 | ||
28443 | ||
70d7cb34 RD |
28444 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
28445 | PyObject *resultobj = 0; | |
28446 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28447 | wxGraphicsPen *arg2 = 0 ; | |
28448 | void *argp1 = 0 ; | |
28449 | int res1 = 0 ; | |
28450 | void *argp2 = 0 ; | |
28451 | int res2 = 0 ; | |
28452 | ||
28453 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
28454 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28455 | if (!SWIG_IsOK(res1)) { | |
28456 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28457 | } | |
28458 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28459 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0); | |
28460 | if (!SWIG_IsOK(res2)) { | |
28461 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'"); | |
28462 | } | |
28463 | if (!argp2) { | |
28464 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'"); | |
28465 | } | |
28466 | arg2 = reinterpret_cast< wxGraphicsPen * >(argp2); | |
28467 | { | |
28468 | (arg1)->SetPen((wxGraphicsPen const &)*arg2); | |
28469 | if (PyErr_Occurred()) SWIG_fail; | |
28470 | } | |
28471 | resultobj = SWIG_Py_Void(); | |
28472 | return resultobj; | |
28473 | fail: | |
28474 | return NULL; | |
28475 | } | |
28476 | ||
28477 | ||
28478 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
72ef6efb RD |
28479 | PyObject *resultobj = 0; |
28480 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28481 | wxPen *arg2 = 0 ; | |
28482 | void *argp1 = 0 ; | |
28483 | int res1 = 0 ; | |
28484 | void *argp2 = 0 ; | |
28485 | int res2 = 0 ; | |
72ef6efb | 28486 | |
70d7cb34 RD |
28487 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
28488 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
28489 | if (!SWIG_IsOK(res1)) { |
28490 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28491 | } | |
28492 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 28493 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0); |
72ef6efb RD |
28494 | if (!SWIG_IsOK(res2)) { |
28495 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
28496 | } | |
28497 | if (!argp2) { | |
28498 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
28499 | } | |
28500 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
28501 | { | |
72ef6efb | 28502 | (arg1)->SetPen((wxPen const &)*arg2); |
72ef6efb RD |
28503 | if (PyErr_Occurred()) SWIG_fail; |
28504 | } | |
28505 | resultobj = SWIG_Py_Void(); | |
28506 | return resultobj; | |
28507 | fail: | |
28508 | return NULL; | |
28509 | } | |
28510 | ||
28511 | ||
70d7cb34 RD |
28512 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) { |
28513 | int argc; | |
28514 | PyObject *argv[3]; | |
28515 | ||
28516 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail; | |
28517 | --argc; | |
28518 | if (argc == 2) { | |
28519 | int _v = 0; | |
28520 | { | |
28521 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0); | |
28522 | _v = SWIG_CheckState(res); | |
28523 | } | |
28524 | if (!_v) goto check_1; | |
28525 | return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv); | |
28526 | } | |
28527 | check_1: | |
28528 | ||
28529 | if (argc == 2) { | |
28530 | return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv); | |
28531 | } | |
28532 | ||
28533 | fail: | |
28534 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'"); | |
28535 | return NULL; | |
28536 | } | |
28537 | ||
28538 | ||
28539 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
28540 | PyObject *resultobj = 0; | |
28541 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28542 | wxGraphicsBrush *arg2 = 0 ; | |
28543 | void *argp1 = 0 ; | |
28544 | int res1 = 0 ; | |
28545 | void *argp2 = 0 ; | |
28546 | int res2 = 0 ; | |
28547 | ||
28548 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
28549 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28550 | if (!SWIG_IsOK(res1)) { | |
28551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28552 | } | |
28553 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28554 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
28555 | if (!SWIG_IsOK(res2)) { | |
28556 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'"); | |
28557 | } | |
28558 | if (!argp2) { | |
28559 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'"); | |
28560 | } | |
28561 | arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2); | |
28562 | { | |
28563 | (arg1)->SetBrush((wxGraphicsBrush const &)*arg2); | |
28564 | if (PyErr_Occurred()) SWIG_fail; | |
28565 | } | |
28566 | resultobj = SWIG_Py_Void(); | |
28567 | return resultobj; | |
28568 | fail: | |
28569 | return NULL; | |
28570 | } | |
28571 | ||
28572 | ||
28573 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
72ef6efb RD |
28574 | PyObject *resultobj = 0; |
28575 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28576 | wxBrush *arg2 = 0 ; | |
28577 | void *argp1 = 0 ; | |
28578 | int res1 = 0 ; | |
28579 | void *argp2 = 0 ; | |
28580 | int res2 = 0 ; | |
72ef6efb | 28581 | |
70d7cb34 RD |
28582 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
28583 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
28584 | if (!SWIG_IsOK(res1)) { |
28585 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28586 | } | |
28587 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 28588 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0); |
72ef6efb RD |
28589 | if (!SWIG_IsOK(res2)) { |
28590 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
28591 | } | |
28592 | if (!argp2) { | |
28593 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
28594 | } | |
28595 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
28596 | { | |
72ef6efb | 28597 | (arg1)->SetBrush((wxBrush const &)*arg2); |
72ef6efb RD |
28598 | if (PyErr_Occurred()) SWIG_fail; |
28599 | } | |
28600 | resultobj = SWIG_Py_Void(); | |
28601 | return resultobj; | |
28602 | fail: | |
28603 | return NULL; | |
28604 | } | |
28605 | ||
28606 | ||
70d7cb34 RD |
28607 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) { |
28608 | int argc; | |
28609 | PyObject *argv[3]; | |
72ef6efb | 28610 | |
70d7cb34 RD |
28611 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail; |
28612 | --argc; | |
28613 | if (argc == 2) { | |
28614 | int _v = 0; | |
28615 | { | |
28616 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0); | |
28617 | _v = SWIG_CheckState(res); | |
28618 | } | |
28619 | if (!_v) goto check_1; | |
28620 | return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv); | |
72ef6efb | 28621 | } |
70d7cb34 RD |
28622 | check_1: |
28623 | ||
28624 | if (argc == 2) { | |
28625 | return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv); | |
72ef6efb | 28626 | } |
70d7cb34 | 28627 | |
72ef6efb | 28628 | fail: |
70d7cb34 | 28629 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'"); |
72ef6efb RD |
28630 | return NULL; |
28631 | } | |
28632 | ||
28633 | ||
70d7cb34 | 28634 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
28635 | PyObject *resultobj = 0; |
28636 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 | 28637 | wxGraphicsFont *arg2 = 0 ; |
72ef6efb RD |
28638 | void *argp1 = 0 ; |
28639 | int res1 = 0 ; | |
70d7cb34 RD |
28640 | void *argp2 = 0 ; |
28641 | int res2 = 0 ; | |
72ef6efb | 28642 | |
70d7cb34 RD |
28643 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
28644 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28645 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28646 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
28647 | } |
28648 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
28649 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0); |
28650 | if (!SWIG_IsOK(res2)) { | |
28651 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'"); | |
72ef6efb | 28652 | } |
70d7cb34 RD |
28653 | if (!argp2) { |
28654 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'"); | |
72ef6efb | 28655 | } |
70d7cb34 | 28656 | arg2 = reinterpret_cast< wxGraphicsFont * >(argp2); |
72ef6efb | 28657 | { |
70d7cb34 | 28658 | (arg1)->SetFont((wxGraphicsFont const &)*arg2); |
72ef6efb RD |
28659 | if (PyErr_Occurred()) SWIG_fail; |
28660 | } | |
28661 | resultobj = SWIG_Py_Void(); | |
28662 | return resultobj; | |
28663 | fail: | |
28664 | return NULL; | |
28665 | } | |
28666 | ||
28667 | ||
70d7cb34 | 28668 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
28669 | PyObject *resultobj = 0; |
28670 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28671 | wxFont *arg2 = 0 ; | |
70d7cb34 RD |
28672 | wxColour const &arg3_defvalue = *wxBLACK ; |
28673 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
72ef6efb RD |
28674 | void *argp1 = 0 ; |
28675 | int res1 = 0 ; | |
28676 | void *argp2 = 0 ; | |
28677 | int res2 = 0 ; | |
70d7cb34 | 28678 | wxColour temp3 ; |
72ef6efb | 28679 | |
70d7cb34 RD |
28680 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; |
28681 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
28682 | if (!SWIG_IsOK(res1)) { |
28683 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28684 | } | |
28685 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 28686 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0); |
72ef6efb RD |
28687 | if (!SWIG_IsOK(res2)) { |
28688 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
28689 | } | |
28690 | if (!argp2) { | |
28691 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
28692 | } | |
28693 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
70d7cb34 RD |
28694 | if (swig_obj[2]) { |
28695 | { | |
28696 | arg3 = &temp3; | |
28697 | if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail; | |
28698 | } | |
28699 | } | |
72ef6efb | 28700 | { |
70d7cb34 | 28701 | (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3); |
72ef6efb RD |
28702 | if (PyErr_Occurred()) SWIG_fail; |
28703 | } | |
28704 | resultobj = SWIG_Py_Void(); | |
28705 | return resultobj; | |
28706 | fail: | |
28707 | return NULL; | |
28708 | } | |
28709 | ||
28710 | ||
70d7cb34 RD |
28711 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) { |
28712 | int argc; | |
28713 | PyObject *argv[4]; | |
72ef6efb | 28714 | |
70d7cb34 RD |
28715 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail; |
28716 | --argc; | |
28717 | if (argc == 2) { | |
28718 | int _v = 0; | |
28719 | { | |
28720 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0); | |
28721 | _v = SWIG_CheckState(res); | |
28722 | } | |
28723 | if (!_v) goto check_1; | |
28724 | return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv); | |
72ef6efb | 28725 | } |
70d7cb34 RD |
28726 | check_1: |
28727 | ||
28728 | if ((argc >= 2) && (argc <= 3)) { | |
28729 | return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv); | |
72ef6efb | 28730 | } |
70d7cb34 | 28731 | |
72ef6efb | 28732 | fail: |
70d7cb34 | 28733 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'"); |
72ef6efb RD |
28734 | return NULL; |
28735 | } | |
28736 | ||
28737 | ||
28738 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28739 | PyObject *resultobj = 0; | |
28740 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 28741 | wxGraphicsPath *arg2 = 0 ; |
72ef6efb RD |
28742 | void *argp1 = 0 ; |
28743 | int res1 = 0 ; | |
28744 | void *argp2 = 0 ; | |
28745 | int res2 = 0 ; | |
28746 | PyObject * obj0 = 0 ; | |
28747 | PyObject * obj1 = 0 ; | |
28748 | char * kwnames[] = { | |
28749 | (char *) "self",(char *) "path", NULL | |
28750 | }; | |
28751 | ||
28752 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail; | |
28753 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28754 | if (!SWIG_IsOK(res1)) { | |
28755 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28756 | } | |
28757 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 28758 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 28759 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
28760 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
28761 | } | |
28762 | if (!argp2) { | |
28763 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
28764 | } |
28765 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
28766 | { | |
5c8c7dd3 | 28767 | (arg1)->StrokePath((wxGraphicsPath const &)*arg2); |
72ef6efb RD |
28768 | if (PyErr_Occurred()) SWIG_fail; |
28769 | } | |
28770 | resultobj = SWIG_Py_Void(); | |
28771 | return resultobj; | |
28772 | fail: | |
28773 | return NULL; | |
28774 | } | |
28775 | ||
28776 | ||
28777 | SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28778 | PyObject *resultobj = 0; | |
28779 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 RD |
28780 | wxGraphicsPath *arg2 = 0 ; |
28781 | int arg3 = (int) wxODDEVEN_RULE ; | |
72ef6efb RD |
28782 | void *argp1 = 0 ; |
28783 | int res1 = 0 ; | |
28784 | void *argp2 = 0 ; | |
28785 | int res2 = 0 ; | |
28786 | int val3 ; | |
28787 | int ecode3 = 0 ; | |
28788 | PyObject * obj0 = 0 ; | |
28789 | PyObject * obj1 = 0 ; | |
28790 | PyObject * obj2 = 0 ; | |
28791 | char * kwnames[] = { | |
28792 | (char *) "self",(char *) "path",(char *) "fillStyle", NULL | |
28793 | }; | |
28794 | ||
28795 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28796 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28797 | if (!SWIG_IsOK(res1)) { | |
28798 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28799 | } | |
28800 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 28801 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 28802 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
28803 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
28804 | } | |
28805 | if (!argp2) { | |
28806 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
28807 | } |
28808 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
28809 | if (obj2) { | |
28810 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28811 | if (!SWIG_IsOK(ecode3)) { | |
28812 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'"); | |
28813 | } | |
28814 | arg3 = static_cast< int >(val3); | |
28815 | } | |
28816 | { | |
5c8c7dd3 | 28817 | (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3); |
72ef6efb RD |
28818 | if (PyErr_Occurred()) SWIG_fail; |
28819 | } | |
28820 | resultobj = SWIG_Py_Void(); | |
28821 | return resultobj; | |
28822 | fail: | |
28823 | return NULL; | |
28824 | } | |
28825 | ||
28826 | ||
28827 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28828 | PyObject *resultobj = 0; | |
28829 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 RD |
28830 | wxGraphicsPath *arg2 = 0 ; |
28831 | int arg3 = (int) wxODDEVEN_RULE ; | |
72ef6efb RD |
28832 | void *argp1 = 0 ; |
28833 | int res1 = 0 ; | |
28834 | void *argp2 = 0 ; | |
28835 | int res2 = 0 ; | |
28836 | int val3 ; | |
28837 | int ecode3 = 0 ; | |
28838 | PyObject * obj0 = 0 ; | |
28839 | PyObject * obj1 = 0 ; | |
28840 | PyObject * obj2 = 0 ; | |
28841 | char * kwnames[] = { | |
28842 | (char *) "self",(char *) "path",(char *) "fillStyle", NULL | |
28843 | }; | |
28844 | ||
28845 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28846 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28847 | if (!SWIG_IsOK(res1)) { | |
28848 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28849 | } | |
28850 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 28851 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 28852 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
28853 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
28854 | } | |
28855 | if (!argp2) { | |
28856 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
28857 | } |
28858 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
28859 | if (obj2) { | |
28860 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28861 | if (!SWIG_IsOK(ecode3)) { | |
28862 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'"); | |
28863 | } | |
28864 | arg3 = static_cast< int >(val3); | |
28865 | } | |
28866 | { | |
5c8c7dd3 | 28867 | (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3); |
72ef6efb RD |
28868 | if (PyErr_Occurred()) SWIG_fail; |
28869 | } | |
28870 | resultobj = SWIG_Py_Void(); | |
28871 | return resultobj; | |
28872 | fail: | |
28873 | return NULL; | |
28874 | } | |
28875 | ||
28876 | ||
b39fe951 | 28877 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
28878 | PyObject *resultobj = 0; |
28879 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28880 | wxString *arg2 = 0 ; | |
28881 | wxDouble arg3 ; | |
28882 | wxDouble arg4 ; | |
f89238b9 RD |
28883 | wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ; |
28884 | wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ; | |
72ef6efb RD |
28885 | void *argp1 = 0 ; |
28886 | int res1 = 0 ; | |
28887 | bool temp2 = false ; | |
28888 | double val3 ; | |
28889 | int ecode3 = 0 ; | |
28890 | double val4 ; | |
28891 | int ecode4 = 0 ; | |
f89238b9 RD |
28892 | void *argp5 = 0 ; |
28893 | int res5 = 0 ; | |
b39fe951 RD |
28894 | PyObject * obj0 = 0 ; |
28895 | PyObject * obj1 = 0 ; | |
28896 | PyObject * obj2 = 0 ; | |
28897 | PyObject * obj3 = 0 ; | |
f89238b9 | 28898 | PyObject * obj4 = 0 ; |
b39fe951 | 28899 | char * kwnames[] = { |
f89238b9 | 28900 | (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL |
b39fe951 | 28901 | }; |
72ef6efb | 28902 | |
f89238b9 | 28903 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
b39fe951 | 28904 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
72ef6efb RD |
28905 | if (!SWIG_IsOK(res1)) { |
28906 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28907 | } | |
28908 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28909 | { | |
b39fe951 | 28910 | arg2 = wxString_in_helper(obj1); |
72ef6efb RD |
28911 | if (arg2 == NULL) SWIG_fail; |
28912 | temp2 = true; | |
28913 | } | |
b39fe951 | 28914 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb RD |
28915 | if (!SWIG_IsOK(ecode3)) { |
28916 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28917 | } | |
28918 | arg3 = static_cast< wxDouble >(val3); | |
b39fe951 | 28919 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
72ef6efb RD |
28920 | if (!SWIG_IsOK(ecode4)) { |
28921 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'"); | |
28922 | } | |
28923 | arg4 = static_cast< wxDouble >(val4); | |
f89238b9 RD |
28924 | if (obj4) { |
28925 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
28926 | if (!SWIG_IsOK(res5)) { | |
28927 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'"); | |
28928 | } | |
28929 | if (!argp5) { | |
28930 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'"); | |
28931 | } | |
28932 | arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5); | |
28933 | } | |
72ef6efb | 28934 | { |
f89238b9 | 28935 | wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5); |
72ef6efb RD |
28936 | if (PyErr_Occurred()) SWIG_fail; |
28937 | } | |
28938 | resultobj = SWIG_Py_Void(); | |
28939 | { | |
28940 | if (temp2) | |
28941 | delete arg2; | |
28942 | } | |
28943 | return resultobj; | |
28944 | fail: | |
28945 | { | |
28946 | if (temp2) | |
28947 | delete arg2; | |
28948 | } | |
28949 | return NULL; | |
28950 | } | |
28951 | ||
28952 | ||
b39fe951 | 28953 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
28954 | PyObject *resultobj = 0; |
28955 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28956 | wxString *arg2 = 0 ; | |
28957 | wxDouble arg3 ; | |
28958 | wxDouble arg4 ; | |
28959 | wxDouble arg5 ; | |
f89238b9 RD |
28960 | wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ; |
28961 | wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ; | |
72ef6efb RD |
28962 | void *argp1 = 0 ; |
28963 | int res1 = 0 ; | |
28964 | bool temp2 = false ; | |
28965 | double val3 ; | |
28966 | int ecode3 = 0 ; | |
28967 | double val4 ; | |
28968 | int ecode4 = 0 ; | |
28969 | double val5 ; | |
28970 | int ecode5 = 0 ; | |
f89238b9 RD |
28971 | void *argp6 = 0 ; |
28972 | int res6 = 0 ; | |
b39fe951 RD |
28973 | PyObject * obj0 = 0 ; |
28974 | PyObject * obj1 = 0 ; | |
28975 | PyObject * obj2 = 0 ; | |
28976 | PyObject * obj3 = 0 ; | |
28977 | PyObject * obj4 = 0 ; | |
f89238b9 | 28978 | PyObject * obj5 = 0 ; |
b39fe951 | 28979 | char * kwnames[] = { |
f89238b9 | 28980 | (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL |
b39fe951 | 28981 | }; |
72ef6efb | 28982 | |
f89238b9 | 28983 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
b39fe951 | 28984 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
72ef6efb | 28985 | if (!SWIG_IsOK(res1)) { |
b39fe951 | 28986 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
28987 | } |
28988 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28989 | { | |
b39fe951 | 28990 | arg2 = wxString_in_helper(obj1); |
72ef6efb RD |
28991 | if (arg2 == NULL) SWIG_fail; |
28992 | temp2 = true; | |
28993 | } | |
b39fe951 | 28994 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb | 28995 | if (!SWIG_IsOK(ecode3)) { |
b39fe951 | 28996 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
28997 | } |
28998 | arg3 = static_cast< wxDouble >(val3); | |
b39fe951 | 28999 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
72ef6efb | 29000 | if (!SWIG_IsOK(ecode4)) { |
b39fe951 | 29001 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
29002 | } |
29003 | arg4 = static_cast< wxDouble >(val4); | |
b39fe951 | 29004 | ecode5 = SWIG_AsVal_double(obj4, &val5); |
72ef6efb | 29005 | if (!SWIG_IsOK(ecode5)) { |
b39fe951 | 29006 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
29007 | } |
29008 | arg5 = static_cast< wxDouble >(val5); | |
f89238b9 RD |
29009 | if (obj5) { |
29010 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
29011 | if (!SWIG_IsOK(res6)) { | |
29012 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'"); | |
29013 | } | |
29014 | if (!argp6) { | |
29015 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'"); | |
29016 | } | |
29017 | arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6); | |
29018 | } | |
72ef6efb | 29019 | { |
f89238b9 | 29020 | wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6); |
72ef6efb RD |
29021 | if (PyErr_Occurred()) SWIG_fail; |
29022 | } | |
29023 | resultobj = SWIG_Py_Void(); | |
29024 | { | |
29025 | if (temp2) | |
29026 | delete arg2; | |
29027 | } | |
29028 | return resultobj; | |
29029 | fail: | |
29030 | { | |
29031 | if (temp2) | |
29032 | delete arg2; | |
29033 | } | |
29034 | return NULL; | |
29035 | } | |
29036 | ||
29037 | ||
be68621e | 29038 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
29039 | PyObject *resultobj = 0; |
29040 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29041 | wxString *arg2 = 0 ; | |
29042 | wxDouble *arg3 = (wxDouble *) 0 ; | |
29043 | wxDouble *arg4 = (wxDouble *) 0 ; | |
29044 | wxDouble *arg5 = (wxDouble *) 0 ; | |
29045 | wxDouble *arg6 = (wxDouble *) 0 ; | |
29046 | void *argp1 = 0 ; | |
29047 | int res1 = 0 ; | |
29048 | bool temp2 = false ; | |
29049 | wxDouble temp3 ; | |
29050 | int res3 = SWIG_TMPOBJ ; | |
29051 | wxDouble temp4 ; | |
29052 | int res4 = SWIG_TMPOBJ ; | |
29053 | wxDouble temp5 ; | |
29054 | int res5 = SWIG_TMPOBJ ; | |
29055 | wxDouble temp6 ; | |
29056 | int res6 = SWIG_TMPOBJ ; | |
29057 | PyObject * obj0 = 0 ; | |
29058 | PyObject * obj1 = 0 ; | |
29059 | char * kwnames[] = { | |
29060 | (char *) "self",(char *) "text", NULL | |
29061 | }; | |
29062 | ||
29063 | arg3 = &temp3; | |
29064 | arg4 = &temp4; | |
29065 | arg5 = &temp5; | |
29066 | arg6 = &temp6; | |
be68621e | 29067 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
29068 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
29069 | if (!SWIG_IsOK(res1)) { | |
be68621e | 29070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); |
72ef6efb RD |
29071 | } |
29072 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29073 | { | |
29074 | arg2 = wxString_in_helper(obj1); | |
29075 | if (arg2 == NULL) SWIG_fail; | |
29076 | temp2 = true; | |
29077 | } | |
29078 | { | |
72ef6efb | 29079 | ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
29080 | if (PyErr_Occurred()) SWIG_fail; |
29081 | } | |
29082 | resultobj = SWIG_Py_Void(); | |
29083 | if (SWIG_IsTmpObj(res3)) { | |
29084 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
29085 | } else { | |
29086 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29087 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
29088 | } | |
29089 | if (SWIG_IsTmpObj(res4)) { | |
29090 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4))); | |
29091 | } else { | |
29092 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29093 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags)); | |
29094 | } | |
29095 | if (SWIG_IsTmpObj(res5)) { | |
29096 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5))); | |
29097 | } else { | |
29098 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29099 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags)); | |
29100 | } | |
29101 | if (SWIG_IsTmpObj(res6)) { | |
29102 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6))); | |
29103 | } else { | |
29104 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29105 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags)); | |
29106 | } | |
29107 | { | |
29108 | if (temp2) | |
29109 | delete arg2; | |
29110 | } | |
29111 | return resultobj; | |
29112 | fail: | |
29113 | { | |
29114 | if (temp2) | |
29115 | delete arg2; | |
29116 | } | |
29117 | return NULL; | |
29118 | } | |
29119 | ||
29120 | ||
be68621e RD |
29121 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
29122 | PyObject *resultobj = 0; | |
29123 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29124 | wxString *arg2 = 0 ; | |
29125 | PyObject *result = 0 ; | |
29126 | void *argp1 = 0 ; | |
29127 | int res1 = 0 ; | |
29128 | bool temp2 = false ; | |
29129 | PyObject * obj0 = 0 ; | |
29130 | PyObject * obj1 = 0 ; | |
29131 | char * kwnames[] = { | |
29132 | (char *) "self",(char *) "text", NULL | |
29133 | }; | |
29134 | ||
29135 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) 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_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29139 | } | |
29140 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29141 | { | |
29142 | arg2 = wxString_in_helper(obj1); | |
29143 | if (arg2 == NULL) SWIG_fail; | |
29144 | temp2 = true; | |
29145 | } | |
29146 | { | |
29147 | result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2); | |
29148 | if (PyErr_Occurred()) SWIG_fail; | |
29149 | } | |
29150 | resultobj = result; | |
29151 | { | |
29152 | if (temp2) | |
29153 | delete arg2; | |
29154 | } | |
29155 | return resultobj; | |
29156 | fail: | |
29157 | { | |
29158 | if (temp2) | |
29159 | delete arg2; | |
29160 | } | |
29161 | return NULL; | |
29162 | } | |
29163 | ||
29164 | ||
72ef6efb RD |
29165 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
29166 | PyObject *resultobj = 0; | |
29167 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29168 | wxString *arg2 = 0 ; | |
b39fe951 | 29169 | wxArrayDouble result; |
72ef6efb RD |
29170 | void *argp1 = 0 ; |
29171 | int res1 = 0 ; | |
29172 | bool temp2 = false ; | |
72ef6efb RD |
29173 | PyObject * obj0 = 0 ; |
29174 | PyObject * obj1 = 0 ; | |
72ef6efb | 29175 | char * kwnames[] = { |
b39fe951 | 29176 | (char *) "self",(char *) "text", NULL |
72ef6efb RD |
29177 | }; |
29178 | ||
b39fe951 | 29179 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
29180 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
29181 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 29182 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29183 | } |
29184 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29185 | { | |
29186 | arg2 = wxString_in_helper(obj1); | |
29187 | if (arg2 == NULL) SWIG_fail; | |
29188 | temp2 = true; | |
29189 | } | |
72ef6efb | 29190 | { |
b39fe951 | 29191 | result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2); |
72ef6efb RD |
29192 | if (PyErr_Occurred()) SWIG_fail; |
29193 | } | |
b39fe951 RD |
29194 | { |
29195 | resultobj = wxArrayDouble2PyList_helper(result); | |
29196 | } | |
72ef6efb RD |
29197 | { |
29198 | if (temp2) | |
29199 | delete arg2; | |
29200 | } | |
29201 | return resultobj; | |
29202 | fail: | |
29203 | { | |
29204 | if (temp2) | |
29205 | delete arg2; | |
29206 | } | |
29207 | return NULL; | |
29208 | } | |
29209 | ||
29210 | ||
29211 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29212 | PyObject *resultobj = 0; | |
29213 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29214 | wxBitmap *arg2 = 0 ; | |
29215 | wxDouble arg3 ; | |
29216 | wxDouble arg4 ; | |
29217 | wxDouble arg5 ; | |
29218 | wxDouble arg6 ; | |
29219 | void *argp1 = 0 ; | |
29220 | int res1 = 0 ; | |
29221 | void *argp2 = 0 ; | |
29222 | int res2 = 0 ; | |
29223 | double val3 ; | |
29224 | int ecode3 = 0 ; | |
29225 | double val4 ; | |
29226 | int ecode4 = 0 ; | |
29227 | double val5 ; | |
29228 | int ecode5 = 0 ; | |
29229 | double val6 ; | |
29230 | int ecode6 = 0 ; | |
29231 | PyObject * obj0 = 0 ; | |
29232 | PyObject * obj1 = 0 ; | |
29233 | PyObject * obj2 = 0 ; | |
29234 | PyObject * obj3 = 0 ; | |
29235 | PyObject * obj4 = 0 ; | |
29236 | PyObject * obj5 = 0 ; | |
29237 | char * kwnames[] = { | |
29238 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
29239 | }; | |
29240 | ||
29241 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
29242 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29243 | if (!SWIG_IsOK(res1)) { | |
29244 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29245 | } | |
29246 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29247 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
29248 | if (!SWIG_IsOK(res2)) { | |
29249 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
29250 | } | |
29251 | if (!argp2) { | |
29252 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
29253 | } | |
29254 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
29255 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29256 | if (!SWIG_IsOK(ecode3)) { | |
29257 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29258 | } | |
29259 | arg3 = static_cast< wxDouble >(val3); | |
29260 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29261 | if (!SWIG_IsOK(ecode4)) { | |
29262 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29263 | } | |
29264 | arg4 = static_cast< wxDouble >(val4); | |
29265 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29266 | if (!SWIG_IsOK(ecode5)) { | |
29267 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29268 | } | |
29269 | arg5 = static_cast< wxDouble >(val5); | |
29270 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
29271 | if (!SWIG_IsOK(ecode6)) { | |
29272 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'"); | |
29273 | } | |
29274 | arg6 = static_cast< wxDouble >(val6); | |
29275 | { | |
72ef6efb | 29276 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
29277 | if (PyErr_Occurred()) SWIG_fail; |
29278 | } | |
29279 | resultobj = SWIG_Py_Void(); | |
29280 | return resultobj; | |
29281 | fail: | |
29282 | return NULL; | |
29283 | } | |
29284 | ||
29285 | ||
29286 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29287 | PyObject *resultobj = 0; | |
29288 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29289 | wxIcon *arg2 = 0 ; | |
29290 | wxDouble arg3 ; | |
29291 | wxDouble arg4 ; | |
29292 | wxDouble arg5 ; | |
29293 | wxDouble arg6 ; | |
29294 | void *argp1 = 0 ; | |
29295 | int res1 = 0 ; | |
29296 | void *argp2 = 0 ; | |
29297 | int res2 = 0 ; | |
29298 | double val3 ; | |
29299 | int ecode3 = 0 ; | |
29300 | double val4 ; | |
29301 | int ecode4 = 0 ; | |
29302 | double val5 ; | |
29303 | int ecode5 = 0 ; | |
70d7cb34 RD |
29304 | double val6 ; |
29305 | int ecode6 = 0 ; | |
29306 | PyObject * obj0 = 0 ; | |
29307 | PyObject * obj1 = 0 ; | |
29308 | PyObject * obj2 = 0 ; | |
29309 | PyObject * obj3 = 0 ; | |
29310 | PyObject * obj4 = 0 ; | |
29311 | PyObject * obj5 = 0 ; | |
29312 | char * kwnames[] = { | |
29313 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
29314 | }; | |
29315 | ||
29316 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
29317 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29318 | if (!SWIG_IsOK(res1)) { | |
29319 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29320 | } | |
29321 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29322 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
29323 | if (!SWIG_IsOK(res2)) { | |
29324 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
29325 | } | |
29326 | if (!argp2) { | |
29327 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
29328 | } | |
29329 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
29330 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29331 | if (!SWIG_IsOK(ecode3)) { | |
29332 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29333 | } | |
29334 | arg3 = static_cast< wxDouble >(val3); | |
29335 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29336 | if (!SWIG_IsOK(ecode4)) { | |
29337 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29338 | } | |
29339 | arg4 = static_cast< wxDouble >(val4); | |
29340 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29341 | if (!SWIG_IsOK(ecode5)) { | |
29342 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29343 | } | |
29344 | arg5 = static_cast< wxDouble >(val5); | |
29345 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
29346 | if (!SWIG_IsOK(ecode6)) { | |
29347 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'"); | |
29348 | } | |
29349 | arg6 = static_cast< wxDouble >(val6); | |
29350 | { | |
29351 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6); | |
29352 | if (PyErr_Occurred()) SWIG_fail; | |
29353 | } | |
29354 | resultobj = SWIG_Py_Void(); | |
29355 | return resultobj; | |
29356 | fail: | |
29357 | return NULL; | |
29358 | } | |
29359 | ||
29360 | ||
29361 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29362 | PyObject *resultobj = 0; | |
29363 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29364 | wxDouble arg2 ; | |
29365 | wxDouble arg3 ; | |
29366 | wxDouble arg4 ; | |
29367 | wxDouble arg5 ; | |
29368 | void *argp1 = 0 ; | |
29369 | int res1 = 0 ; | |
29370 | double val2 ; | |
29371 | int ecode2 = 0 ; | |
29372 | double val3 ; | |
29373 | int ecode3 = 0 ; | |
29374 | double val4 ; | |
29375 | int ecode4 = 0 ; | |
29376 | double val5 ; | |
29377 | int ecode5 = 0 ; | |
29378 | PyObject * obj0 = 0 ; | |
29379 | PyObject * obj1 = 0 ; | |
29380 | PyObject * obj2 = 0 ; | |
29381 | PyObject * obj3 = 0 ; | |
29382 | PyObject * obj4 = 0 ; | |
29383 | char * kwnames[] = { | |
29384 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
29385 | }; | |
29386 | ||
29387 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
29388 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29389 | if (!SWIG_IsOK(res1)) { | |
29390 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29391 | } | |
29392 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29393 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29394 | if (!SWIG_IsOK(ecode2)) { | |
29395 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29396 | } | |
29397 | arg2 = static_cast< wxDouble >(val2); | |
29398 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29399 | if (!SWIG_IsOK(ecode3)) { | |
29400 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29401 | } | |
29402 | arg3 = static_cast< wxDouble >(val3); | |
29403 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29404 | if (!SWIG_IsOK(ecode4)) { | |
29405 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29406 | } | |
29407 | arg4 = static_cast< wxDouble >(val4); | |
29408 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29409 | if (!SWIG_IsOK(ecode5)) { | |
29410 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29411 | } | |
29412 | arg5 = static_cast< wxDouble >(val5); | |
29413 | { | |
29414 | (arg1)->StrokeLine(arg2,arg3,arg4,arg5); | |
29415 | if (PyErr_Occurred()) SWIG_fail; | |
29416 | } | |
29417 | resultobj = SWIG_Py_Void(); | |
29418 | return resultobj; | |
29419 | fail: | |
29420 | return NULL; | |
29421 | } | |
29422 | ||
29423 | ||
29424 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29425 | PyObject *resultobj = 0; | |
29426 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29427 | size_t arg2 ; | |
29428 | wxPoint2D *arg3 = (wxPoint2D *) 0 ; | |
29429 | void *argp1 = 0 ; | |
29430 | int res1 = 0 ; | |
29431 | PyObject * obj0 = 0 ; | |
29432 | PyObject * obj1 = 0 ; | |
29433 | char * kwnames[] = { | |
29434 | (char *) "self",(char *) "points", NULL | |
29435 | }; | |
29436 | ||
29437 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail; | |
29438 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29439 | if (!SWIG_IsOK(res1)) { | |
29440 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29441 | } | |
29442 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29443 | { | |
29444 | arg3 = wxPoint2D_LIST_helper(obj1, &arg2); | |
29445 | if (arg3 == NULL) SWIG_fail; | |
29446 | } | |
29447 | { | |
29448 | (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3); | |
29449 | if (PyErr_Occurred()) SWIG_fail; | |
29450 | } | |
29451 | resultobj = SWIG_Py_Void(); | |
29452 | { | |
29453 | if (arg3) delete [] arg3; | |
29454 | } | |
29455 | return resultobj; | |
29456 | fail: | |
29457 | { | |
29458 | if (arg3) delete [] arg3; | |
29459 | } | |
29460 | return NULL; | |
29461 | } | |
29462 | ||
29463 | ||
29464 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29465 | PyObject *resultobj = 0; | |
29466 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29467 | PyObject *arg2 = (PyObject *) 0 ; | |
29468 | PyObject *arg3 = (PyObject *) 0 ; | |
29469 | void *argp1 = 0 ; | |
29470 | int res1 = 0 ; | |
29471 | PyObject * obj0 = 0 ; | |
29472 | PyObject * obj1 = 0 ; | |
29473 | PyObject * obj2 = 0 ; | |
29474 | char * kwnames[] = { | |
29475 | (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL | |
29476 | }; | |
29477 | ||
29478 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29479 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29480 | if (!SWIG_IsOK(res1)) { | |
29481 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29482 | } | |
29483 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29484 | arg2 = obj1; | |
29485 | arg3 = obj2; | |
29486 | { | |
29487 | wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3); | |
29488 | if (PyErr_Occurred()) SWIG_fail; | |
29489 | } | |
29490 | resultobj = SWIG_Py_Void(); | |
29491 | return resultobj; | |
29492 | fail: | |
29493 | return NULL; | |
29494 | } | |
29495 | ||
29496 | ||
29497 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29498 | PyObject *resultobj = 0; | |
29499 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29500 | size_t arg2 ; | |
29501 | wxPoint2D *arg3 = (wxPoint2D *) 0 ; | |
5c8c7dd3 | 29502 | int arg4 = (int) wxODDEVEN_RULE ; |
70d7cb34 RD |
29503 | void *argp1 = 0 ; |
29504 | int res1 = 0 ; | |
29505 | int val4 ; | |
29506 | int ecode4 = 0 ; | |
29507 | PyObject * obj0 = 0 ; | |
29508 | PyObject * obj1 = 0 ; | |
29509 | PyObject * obj2 = 0 ; | |
29510 | char * kwnames[] = { | |
29511 | (char *) "self",(char *) "points",(char *) "fillStyle", NULL | |
29512 | }; | |
29513 | ||
29514 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29515 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29516 | if (!SWIG_IsOK(res1)) { | |
29517 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29518 | } | |
29519 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29520 | { | |
29521 | arg3 = wxPoint2D_LIST_helper(obj1, &arg2); | |
29522 | if (arg3 == NULL) SWIG_fail; | |
29523 | } | |
29524 | if (obj2) { | |
29525 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
29526 | if (!SWIG_IsOK(ecode4)) { | |
29527 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
29528 | } | |
29529 | arg4 = static_cast< int >(val4); | |
29530 | } | |
29531 | { | |
29532 | (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4); | |
29533 | if (PyErr_Occurred()) SWIG_fail; | |
29534 | } | |
29535 | resultobj = SWIG_Py_Void(); | |
29536 | { | |
29537 | if (arg3) delete [] arg3; | |
29538 | } | |
29539 | return resultobj; | |
29540 | fail: | |
29541 | { | |
29542 | if (arg3) delete [] arg3; | |
29543 | } | |
29544 | return NULL; | |
29545 | } | |
29546 | ||
29547 | ||
29548 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29549 | PyObject *resultobj = 0; | |
29550 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29551 | wxDouble arg2 ; | |
29552 | wxDouble arg3 ; | |
29553 | wxDouble arg4 ; | |
29554 | wxDouble arg5 ; | |
29555 | void *argp1 = 0 ; | |
29556 | int res1 = 0 ; | |
29557 | double val2 ; | |
29558 | int ecode2 = 0 ; | |
29559 | double val3 ; | |
29560 | int ecode3 = 0 ; | |
29561 | double val4 ; | |
29562 | int ecode4 = 0 ; | |
29563 | double val5 ; | |
29564 | int ecode5 = 0 ; | |
29565 | PyObject * obj0 = 0 ; | |
29566 | PyObject * obj1 = 0 ; | |
29567 | PyObject * obj2 = 0 ; | |
29568 | PyObject * obj3 = 0 ; | |
29569 | PyObject * obj4 = 0 ; | |
29570 | char * kwnames[] = { | |
29571 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
29572 | }; | |
29573 | ||
29574 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
29575 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29576 | if (!SWIG_IsOK(res1)) { | |
29577 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29578 | } | |
29579 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29580 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29581 | if (!SWIG_IsOK(ecode2)) { | |
29582 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29583 | } | |
29584 | arg2 = static_cast< wxDouble >(val2); | |
29585 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29586 | if (!SWIG_IsOK(ecode3)) { | |
29587 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29588 | } | |
29589 | arg3 = static_cast< wxDouble >(val3); | |
29590 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29591 | if (!SWIG_IsOK(ecode4)) { | |
29592 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29593 | } | |
29594 | arg4 = static_cast< wxDouble >(val4); | |
29595 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29596 | if (!SWIG_IsOK(ecode5)) { | |
29597 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29598 | } | |
29599 | arg5 = static_cast< wxDouble >(val5); | |
29600 | { | |
29601 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
29602 | if (PyErr_Occurred()) SWIG_fail; | |
29603 | } | |
29604 | resultobj = SWIG_Py_Void(); | |
29605 | return resultobj; | |
29606 | fail: | |
29607 | return NULL; | |
29608 | } | |
29609 | ||
29610 | ||
29611 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29612 | PyObject *resultobj = 0; | |
29613 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29614 | wxDouble arg2 ; | |
29615 | wxDouble arg3 ; | |
29616 | wxDouble arg4 ; | |
29617 | wxDouble arg5 ; | |
29618 | void *argp1 = 0 ; | |
29619 | int res1 = 0 ; | |
29620 | double val2 ; | |
29621 | int ecode2 = 0 ; | |
29622 | double val3 ; | |
29623 | int ecode3 = 0 ; | |
29624 | double val4 ; | |
29625 | int ecode4 = 0 ; | |
29626 | double val5 ; | |
29627 | int ecode5 = 0 ; | |
72ef6efb RD |
29628 | PyObject * obj0 = 0 ; |
29629 | PyObject * obj1 = 0 ; | |
29630 | PyObject * obj2 = 0 ; | |
29631 | PyObject * obj3 = 0 ; | |
29632 | PyObject * obj4 = 0 ; | |
72ef6efb | 29633 | char * kwnames[] = { |
70d7cb34 | 29634 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL |
72ef6efb RD |
29635 | }; |
29636 | ||
70d7cb34 | 29637 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
72ef6efb RD |
29638 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
29639 | if (!SWIG_IsOK(res1)) { | |
70d7cb34 | 29640 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29641 | } |
29642 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
29643 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
29644 | if (!SWIG_IsOK(ecode2)) { | |
29645 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29646 | } | |
29647 | arg2 = static_cast< wxDouble >(val2); | |
72ef6efb RD |
29648 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
29649 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 29650 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
29651 | } |
29652 | arg3 = static_cast< wxDouble >(val3); | |
29653 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29654 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 29655 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
29656 | } |
29657 | arg4 = static_cast< wxDouble >(val4); | |
29658 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29659 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 29660 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
29661 | } |
29662 | arg5 = static_cast< wxDouble >(val5); | |
72ef6efb | 29663 | { |
70d7cb34 | 29664 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); |
72ef6efb RD |
29665 | if (PyErr_Occurred()) SWIG_fail; |
29666 | } | |
29667 | resultobj = SWIG_Py_Void(); | |
29668 | return resultobj; | |
29669 | fail: | |
29670 | return NULL; | |
29671 | } | |
29672 | ||
29673 | ||
70d7cb34 | 29674 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
29675 | PyObject *resultobj = 0; |
29676 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29677 | wxDouble arg2 ; | |
29678 | wxDouble arg3 ; | |
29679 | wxDouble arg4 ; | |
29680 | wxDouble arg5 ; | |
70d7cb34 | 29681 | wxDouble arg6 ; |
72ef6efb RD |
29682 | void *argp1 = 0 ; |
29683 | int res1 = 0 ; | |
29684 | double val2 ; | |
29685 | int ecode2 = 0 ; | |
29686 | double val3 ; | |
29687 | int ecode3 = 0 ; | |
29688 | double val4 ; | |
29689 | int ecode4 = 0 ; | |
29690 | double val5 ; | |
29691 | int ecode5 = 0 ; | |
70d7cb34 RD |
29692 | double val6 ; |
29693 | int ecode6 = 0 ; | |
72ef6efb RD |
29694 | PyObject * obj0 = 0 ; |
29695 | PyObject * obj1 = 0 ; | |
29696 | PyObject * obj2 = 0 ; | |
29697 | PyObject * obj3 = 0 ; | |
29698 | PyObject * obj4 = 0 ; | |
70d7cb34 | 29699 | PyObject * obj5 = 0 ; |
72ef6efb | 29700 | char * kwnames[] = { |
70d7cb34 | 29701 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL |
72ef6efb RD |
29702 | }; |
29703 | ||
70d7cb34 | 29704 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
72ef6efb RD |
29705 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
29706 | if (!SWIG_IsOK(res1)) { | |
70d7cb34 | 29707 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29708 | } |
29709 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29710 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29711 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 29712 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
29713 | } |
29714 | arg2 = static_cast< wxDouble >(val2); | |
29715 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29716 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 29717 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
29718 | } |
29719 | arg3 = static_cast< wxDouble >(val3); | |
29720 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29721 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 29722 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
29723 | } |
29724 | arg4 = static_cast< wxDouble >(val4); | |
29725 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29726 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 29727 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
29728 | } |
29729 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 RD |
29730 | ecode6 = SWIG_AsVal_double(obj5, &val6); |
29731 | if (!SWIG_IsOK(ecode6)) { | |
29732 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'"); | |
29733 | } | |
29734 | arg6 = static_cast< wxDouble >(val6); | |
72ef6efb | 29735 | { |
70d7cb34 | 29736 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
29737 | if (PyErr_Occurred()) SWIG_fail; |
29738 | } | |
29739 | resultobj = SWIG_Py_Void(); | |
29740 | return resultobj; | |
29741 | fail: | |
29742 | return NULL; | |
29743 | } | |
29744 | ||
29745 | ||
70d7cb34 | 29746 | SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
29747 | PyObject *resultobj = 0; |
29748 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 | 29749 | bool result; |
72ef6efb RD |
29750 | void *argp1 = 0 ; |
29751 | int res1 = 0 ; | |
70d7cb34 | 29752 | PyObject *swig_obj[1] ; |
72ef6efb | 29753 | |
70d7cb34 RD |
29754 | if (!args) SWIG_fail; |
29755 | swig_obj[0] = args; | |
29756 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 29757 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 29758 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); |
72ef6efb RD |
29759 | } |
29760 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
b39fe951 | 29761 | { |
70d7cb34 RD |
29762 | result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset(); |
29763 | if (PyErr_Occurred()) SWIG_fail; | |
72ef6efb | 29764 | } |
72ef6efb | 29765 | { |
70d7cb34 RD |
29766 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
29767 | } | |
29768 | return resultobj; | |
29769 | fail: | |
29770 | return NULL; | |
29771 | } | |
29772 | ||
29773 | ||
29774 | SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29775 | PyObject *obj; | |
29776 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
29777 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj)); | |
29778 | return SWIG_Py_Void(); | |
29779 | } | |
29780 | ||
29781 | SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29782 | PyObject *resultobj = 0; | |
29783 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
29784 | void *argp1 = 0 ; | |
29785 | int res1 = 0 ; | |
29786 | PyObject *swig_obj[1] ; | |
29787 | ||
29788 | if (!args) SWIG_fail; | |
29789 | swig_obj[0] = args; | |
29790 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 ); | |
29791 | if (!SWIG_IsOK(res1)) { | |
29792 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
29793 | } | |
29794 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29795 | { | |
29796 | delete arg1; | |
29797 | ||
72ef6efb RD |
29798 | if (PyErr_Occurred()) SWIG_fail; |
29799 | } | |
29800 | resultobj = SWIG_Py_Void(); | |
70d7cb34 RD |
29801 | return resultobj; |
29802 | fail: | |
29803 | return NULL; | |
29804 | } | |
29805 | ||
29806 | ||
29807 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29808 | PyObject *resultobj = 0; | |
29809 | wxGraphicsRenderer *result = 0 ; | |
29810 | ||
29811 | if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail; | |
b39fe951 | 29812 | { |
70d7cb34 RD |
29813 | result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer(); |
29814 | if (PyErr_Occurred()) SWIG_fail; | |
29815 | } | |
29816 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
29817 | return resultobj; | |
29818 | fail: | |
29819 | return NULL; | |
29820 | } | |
29821 | ||
29822 | ||
29823 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
29824 | PyObject *resultobj = 0; | |
29825 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
29826 | wxWindowDC *arg2 = 0 ; | |
29827 | wxGraphicsContext *result = 0 ; | |
29828 | void *argp1 = 0 ; | |
29829 | int res1 = 0 ; | |
29830 | void *argp2 = 0 ; | |
29831 | int res2 = 0 ; | |
29832 | ||
29833 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
29834 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
29835 | if (!SWIG_IsOK(res1)) { | |
29836 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
29837 | } | |
29838 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29839 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
29840 | if (!SWIG_IsOK(res2)) { | |
29841 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'"); | |
29842 | } | |
29843 | if (!argp2) { | |
29844 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'"); | |
29845 | } | |
29846 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
29847 | { | |
29848 | result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2); | |
29849 | if (PyErr_Occurred()) SWIG_fail; | |
b39fe951 | 29850 | } |
70d7cb34 | 29851 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
29852 | return resultobj; |
29853 | fail: | |
70d7cb34 RD |
29854 | return NULL; |
29855 | } | |
29856 | ||
29857 | ||
29858 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
29859 | PyObject *resultobj = 0; | |
29860 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
29861 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29862 | wxGraphicsContext *result = 0 ; | |
29863 | void *argp1 = 0 ; | |
29864 | int res1 = 0 ; | |
29865 | void *argp2 = 0 ; | |
29866 | int res2 = 0 ; | |
29867 | ||
29868 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
29869 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
29870 | if (!SWIG_IsOK(res1)) { | |
29871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
29872 | } | |
29873 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29874 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
29875 | if (!SWIG_IsOK(res2)) { | |
29876 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
29877 | } | |
29878 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
b39fe951 | 29879 | { |
70d7cb34 RD |
29880 | result = (wxGraphicsContext *)(arg1)->CreateContext(arg2); |
29881 | if (PyErr_Occurred()) SWIG_fail; | |
b39fe951 | 29882 | } |
70d7cb34 RD |
29883 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
29884 | return resultobj; | |
29885 | fail: | |
72ef6efb RD |
29886 | return NULL; |
29887 | } | |
29888 | ||
29889 | ||
70d7cb34 RD |
29890 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) { |
29891 | int argc; | |
29892 | PyObject *argv[3]; | |
29893 | ||
29894 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail; | |
29895 | --argc; | |
29896 | if (argc == 2) { | |
29897 | int _v = 0; | |
29898 | { | |
29899 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0); | |
29900 | _v = SWIG_CheckState(res); | |
29901 | } | |
29902 | if (!_v) goto check_1; | |
29903 | return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv); | |
29904 | } | |
29905 | check_1: | |
29906 | ||
29907 | if (argc == 2) { | |
29908 | return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv); | |
29909 | } | |
29910 | ||
29911 | fail: | |
29912 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'"); | |
29913 | return NULL; | |
29914 | } | |
29915 | ||
29916 | ||
f89238b9 RD |
29917 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29918 | PyObject *resultobj = 0; | |
29919 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
29920 | wxGraphicsContext *result = 0 ; | |
29921 | void *argp1 = 0 ; | |
29922 | int res1 = 0 ; | |
29923 | PyObject *swig_obj[1] ; | |
29924 | ||
29925 | if (!args) SWIG_fail; | |
29926 | swig_obj[0] = args; | |
29927 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
29928 | if (!SWIG_IsOK(res1)) { | |
29929 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
29930 | } | |
29931 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29932 | { | |
29933 | result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext(); | |
29934 | if (PyErr_Occurred()) SWIG_fail; | |
29935 | } | |
29936 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29937 | return resultobj; | |
29938 | fail: | |
29939 | return NULL; | |
29940 | } | |
29941 | ||
29942 | ||
70d7cb34 | 29943 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 29944 | PyObject *resultobj = 0; |
70d7cb34 RD |
29945 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
29946 | void *arg2 = (void *) 0 ; | |
29947 | wxGraphicsContext *result = 0 ; | |
72ef6efb RD |
29948 | void *argp1 = 0 ; |
29949 | int res1 = 0 ; | |
70d7cb34 | 29950 | int res2 ; |
b39fe951 RD |
29951 | PyObject * obj0 = 0 ; |
29952 | PyObject * obj1 = 0 ; | |
b39fe951 | 29953 | char * kwnames[] = { |
70d7cb34 | 29954 | (char *) "self",(char *) "context", NULL |
b39fe951 | 29955 | }; |
72ef6efb | 29956 | |
70d7cb34 RD |
29957 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail; |
29958 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 29959 | if (!SWIG_IsOK(res1)) { |
70d7cb34 RD |
29960 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
29961 | } | |
29962 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29963 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
29964 | if (!SWIG_IsOK(res2)) { | |
29965 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'"); | |
72ef6efb | 29966 | } |
72ef6efb | 29967 | { |
70d7cb34 | 29968 | result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2); |
72ef6efb RD |
29969 | if (PyErr_Occurred()) SWIG_fail; |
29970 | } | |
70d7cb34 | 29971 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
29972 | return resultobj; |
29973 | fail: | |
29974 | return NULL; | |
29975 | } | |
29976 | ||
29977 | ||
70d7cb34 | 29978 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 29979 | PyObject *resultobj = 0; |
70d7cb34 RD |
29980 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
29981 | void *arg2 = (void *) 0 ; | |
29982 | wxGraphicsContext *result = 0 ; | |
72ef6efb RD |
29983 | void *argp1 = 0 ; |
29984 | int res1 = 0 ; | |
70d7cb34 | 29985 | int res2 ; |
72ef6efb RD |
29986 | PyObject * obj0 = 0 ; |
29987 | PyObject * obj1 = 0 ; | |
72ef6efb | 29988 | char * kwnames[] = { |
70d7cb34 | 29989 | (char *) "self",(char *) "window", NULL |
72ef6efb RD |
29990 | }; |
29991 | ||
70d7cb34 RD |
29992 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail; |
29993 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 29994 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 29995 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 29996 | } |
70d7cb34 RD |
29997 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
29998 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
29999 | if (!SWIG_IsOK(res2)) { | |
30000 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'"); | |
72ef6efb RD |
30001 | } |
30002 | { | |
70d7cb34 | 30003 | result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2); |
72ef6efb RD |
30004 | if (PyErr_Occurred()) SWIG_fail; |
30005 | } | |
70d7cb34 | 30006 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30007 | return resultobj; |
30008 | fail: | |
70d7cb34 RD |
30009 | return NULL; |
30010 | } | |
30011 | ||
30012 | ||
30013 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30014 | PyObject *resultobj = 0; | |
30015 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
5c8c7dd3 | 30016 | wxGraphicsPath result; |
70d7cb34 RD |
30017 | void *argp1 = 0 ; |
30018 | int res1 = 0 ; | |
30019 | PyObject *swig_obj[1] ; | |
30020 | ||
30021 | if (!args) SWIG_fail; | |
30022 | swig_obj[0] = args; | |
30023 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30024 | if (!SWIG_IsOK(res1)) { | |
30025 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30026 | } | |
30027 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
b39fe951 | 30028 | { |
5c8c7dd3 | 30029 | result = (arg1)->CreatePath(); |
70d7cb34 | 30030 | if (PyErr_Occurred()) SWIG_fail; |
b39fe951 | 30031 | } |
5c8c7dd3 | 30032 | resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
30033 | return resultobj; |
30034 | fail: | |
72ef6efb RD |
30035 | return NULL; |
30036 | } | |
30037 | ||
30038 | ||
70d7cb34 | 30039 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30040 | PyObject *resultobj = 0; |
70d7cb34 RD |
30041 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
30042 | wxDouble arg2 = (wxDouble) 1.0 ; | |
30043 | wxDouble arg3 = (wxDouble) 0.0 ; | |
30044 | wxDouble arg4 = (wxDouble) 0.0 ; | |
30045 | wxDouble arg5 = (wxDouble) 1.0 ; | |
30046 | wxDouble arg6 = (wxDouble) 0.0 ; | |
30047 | wxDouble arg7 = (wxDouble) 0.0 ; | |
5c8c7dd3 | 30048 | wxGraphicsMatrix result; |
72ef6efb RD |
30049 | void *argp1 = 0 ; |
30050 | int res1 = 0 ; | |
30051 | double val2 ; | |
30052 | int ecode2 = 0 ; | |
30053 | double val3 ; | |
30054 | int ecode3 = 0 ; | |
30055 | double val4 ; | |
30056 | int ecode4 = 0 ; | |
30057 | double val5 ; | |
30058 | int ecode5 = 0 ; | |
70d7cb34 RD |
30059 | double val6 ; |
30060 | int ecode6 = 0 ; | |
30061 | double val7 ; | |
30062 | int ecode7 = 0 ; | |
72ef6efb RD |
30063 | PyObject * obj0 = 0 ; |
30064 | PyObject * obj1 = 0 ; | |
30065 | PyObject * obj2 = 0 ; | |
30066 | PyObject * obj3 = 0 ; | |
30067 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
30068 | PyObject * obj5 = 0 ; |
30069 | PyObject * obj6 = 0 ; | |
72ef6efb | 30070 | char * kwnames[] = { |
70d7cb34 | 30071 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL |
72ef6efb RD |
30072 | }; |
30073 | ||
70d7cb34 RD |
30074 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
30075 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30076 | if (!SWIG_IsOK(res1)) { |
70d7cb34 RD |
30077 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
30078 | } | |
30079 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30080 | if (obj1) { | |
30081 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
30082 | if (!SWIG_IsOK(ecode2)) { | |
30083 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'"); | |
30084 | } | |
30085 | arg2 = static_cast< wxDouble >(val2); | |
30086 | } | |
30087 | if (obj2) { | |
30088 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30089 | if (!SWIG_IsOK(ecode3)) { | |
30090 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'"); | |
30091 | } | |
30092 | arg3 = static_cast< wxDouble >(val3); | |
30093 | } | |
30094 | if (obj3) { | |
30095 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30096 | if (!SWIG_IsOK(ecode4)) { | |
30097 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'"); | |
30098 | } | |
30099 | arg4 = static_cast< wxDouble >(val4); | |
30100 | } | |
30101 | if (obj4) { | |
30102 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30103 | if (!SWIG_IsOK(ecode5)) { | |
30104 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'"); | |
30105 | } | |
30106 | arg5 = static_cast< wxDouble >(val5); | |
30107 | } | |
30108 | if (obj5) { | |
30109 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
30110 | if (!SWIG_IsOK(ecode6)) { | |
30111 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'"); | |
30112 | } | |
30113 | arg6 = static_cast< wxDouble >(val6); | |
30114 | } | |
30115 | if (obj6) { | |
30116 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
30117 | if (!SWIG_IsOK(ecode7)) { | |
30118 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'"); | |
30119 | } | |
30120 | arg7 = static_cast< wxDouble >(val7); | |
72ef6efb | 30121 | } |
72ef6efb | 30122 | { |
5c8c7dd3 | 30123 | result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7); |
72ef6efb RD |
30124 | if (PyErr_Occurred()) SWIG_fail; |
30125 | } | |
5c8c7dd3 | 30126 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30127 | return resultobj; |
30128 | fail: | |
30129 | return NULL; | |
30130 | } | |
30131 | ||
30132 | ||
70d7cb34 | 30133 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30134 | PyObject *resultobj = 0; |
70d7cb34 RD |
30135 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
30136 | wxPen *arg2 = 0 ; | |
30137 | wxGraphicsPen result; | |
30138 | void *argp1 = 0 ; | |
30139 | int res1 = 0 ; | |
30140 | void *argp2 = 0 ; | |
30141 | int res2 = 0 ; | |
30142 | PyObject * obj0 = 0 ; | |
30143 | PyObject * obj1 = 0 ; | |
30144 | char * kwnames[] = { | |
30145 | (char *) "self",(char *) "pen", NULL | |
30146 | }; | |
30147 | ||
30148 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail; | |
30149 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30150 | if (!SWIG_IsOK(res1)) { | |
30151 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30152 | } | |
30153 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30154 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
30155 | if (!SWIG_IsOK(res2)) { | |
30156 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
30157 | } | |
30158 | if (!argp2) { | |
30159 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
30160 | } | |
30161 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
30162 | { | |
30163 | result = (arg1)->CreatePen((wxPen const &)*arg2); | |
30164 | if (PyErr_Occurred()) SWIG_fail; | |
30165 | } | |
30166 | resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 ); | |
30167 | return resultobj; | |
30168 | fail: | |
30169 | return NULL; | |
30170 | } | |
30171 | ||
30172 | ||
30173 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30174 | PyObject *resultobj = 0; | |
30175 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30176 | wxBrush *arg2 = 0 ; | |
30177 | wxGraphicsBrush result; | |
30178 | void *argp1 = 0 ; | |
30179 | int res1 = 0 ; | |
30180 | void *argp2 = 0 ; | |
30181 | int res2 = 0 ; | |
30182 | PyObject * obj0 = 0 ; | |
30183 | PyObject * obj1 = 0 ; | |
30184 | char * kwnames[] = { | |
30185 | (char *) "self",(char *) "brush", NULL | |
30186 | }; | |
30187 | ||
30188 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
30189 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30190 | if (!SWIG_IsOK(res1)) { | |
30191 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30192 | } | |
30193 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30194 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
30195 | if (!SWIG_IsOK(res2)) { | |
30196 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
30197 | } | |
30198 | if (!argp2) { | |
30199 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
30200 | } | |
30201 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
30202 | { | |
30203 | result = (arg1)->CreateBrush((wxBrush const &)*arg2); | |
30204 | if (PyErr_Occurred()) SWIG_fail; | |
30205 | } | |
30206 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); | |
30207 | return resultobj; | |
30208 | fail: | |
30209 | return NULL; | |
30210 | } | |
30211 | ||
30212 | ||
30213 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30214 | PyObject *resultobj = 0; | |
30215 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
72ef6efb RD |
30216 | wxDouble arg2 ; |
30217 | wxDouble arg3 ; | |
30218 | wxDouble arg4 ; | |
30219 | wxDouble arg5 ; | |
70d7cb34 RD |
30220 | wxColour *arg6 = 0 ; |
30221 | wxColour *arg7 = 0 ; | |
30222 | wxGraphicsBrush result; | |
72ef6efb RD |
30223 | void *argp1 = 0 ; |
30224 | int res1 = 0 ; | |
30225 | double val2 ; | |
30226 | int ecode2 = 0 ; | |
30227 | double val3 ; | |
30228 | int ecode3 = 0 ; | |
30229 | double val4 ; | |
30230 | int ecode4 = 0 ; | |
30231 | double val5 ; | |
30232 | int ecode5 = 0 ; | |
70d7cb34 RD |
30233 | wxColour temp6 ; |
30234 | wxColour temp7 ; | |
72ef6efb RD |
30235 | PyObject * obj0 = 0 ; |
30236 | PyObject * obj1 = 0 ; | |
30237 | PyObject * obj2 = 0 ; | |
30238 | PyObject * obj3 = 0 ; | |
30239 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
30240 | PyObject * obj5 = 0 ; |
30241 | PyObject * obj6 = 0 ; | |
72ef6efb | 30242 | char * kwnames[] = { |
70d7cb34 | 30243 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL |
72ef6efb RD |
30244 | }; |
30245 | ||
70d7cb34 RD |
30246 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
30247 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30248 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 30249 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 30250 | } |
70d7cb34 | 30251 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
72ef6efb RD |
30252 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
30253 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 30254 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
30255 | } |
30256 | arg2 = static_cast< wxDouble >(val2); | |
30257 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30258 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 30259 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
30260 | } |
30261 | arg3 = static_cast< wxDouble >(val3); | |
30262 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30263 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 30264 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
30265 | } |
30266 | arg4 = static_cast< wxDouble >(val4); | |
30267 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30268 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 30269 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
30270 | } |
30271 | arg5 = static_cast< wxDouble >(val5); | |
30272 | { | |
70d7cb34 RD |
30273 | arg6 = &temp6; |
30274 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
30275 | } | |
30276 | { | |
30277 | arg7 = &temp7; | |
30278 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
30279 | } | |
30280 | { | |
30281 | result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7); | |
72ef6efb RD |
30282 | if (PyErr_Occurred()) SWIG_fail; |
30283 | } | |
70d7cb34 | 30284 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30285 | return resultobj; |
30286 | fail: | |
30287 | return NULL; | |
30288 | } | |
30289 | ||
30290 | ||
70d7cb34 | 30291 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30292 | PyObject *resultobj = 0; |
70d7cb34 | 30293 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
72ef6efb RD |
30294 | wxDouble arg2 ; |
30295 | wxDouble arg3 ; | |
30296 | wxDouble arg4 ; | |
30297 | wxDouble arg5 ; | |
30298 | wxDouble arg6 ; | |
70d7cb34 RD |
30299 | wxColour *arg7 = 0 ; |
30300 | wxColour *arg8 = 0 ; | |
30301 | wxGraphicsBrush result; | |
72ef6efb RD |
30302 | void *argp1 = 0 ; |
30303 | int res1 = 0 ; | |
30304 | double val2 ; | |
30305 | int ecode2 = 0 ; | |
30306 | double val3 ; | |
30307 | int ecode3 = 0 ; | |
30308 | double val4 ; | |
30309 | int ecode4 = 0 ; | |
30310 | double val5 ; | |
30311 | int ecode5 = 0 ; | |
30312 | double val6 ; | |
30313 | int ecode6 = 0 ; | |
70d7cb34 RD |
30314 | wxColour temp7 ; |
30315 | wxColour temp8 ; | |
72ef6efb RD |
30316 | PyObject * obj0 = 0 ; |
30317 | PyObject * obj1 = 0 ; | |
30318 | PyObject * obj2 = 0 ; | |
30319 | PyObject * obj3 = 0 ; | |
30320 | PyObject * obj4 = 0 ; | |
30321 | PyObject * obj5 = 0 ; | |
70d7cb34 RD |
30322 | PyObject * obj6 = 0 ; |
30323 | PyObject * obj7 = 0 ; | |
72ef6efb | 30324 | char * kwnames[] = { |
70d7cb34 | 30325 | (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL |
72ef6efb RD |
30326 | }; |
30327 | ||
70d7cb34 RD |
30328 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
30329 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30330 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 30331 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 30332 | } |
70d7cb34 | 30333 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
72ef6efb RD |
30334 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
30335 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 30336 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
30337 | } |
30338 | arg2 = static_cast< wxDouble >(val2); | |
30339 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30340 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 30341 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
30342 | } |
30343 | arg3 = static_cast< wxDouble >(val3); | |
30344 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30345 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 30346 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
30347 | } |
30348 | arg4 = static_cast< wxDouble >(val4); | |
30349 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30350 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 30351 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
30352 | } |
30353 | arg5 = static_cast< wxDouble >(val5); | |
30354 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
30355 | if (!SWIG_IsOK(ecode6)) { | |
70d7cb34 | 30356 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'"); |
72ef6efb RD |
30357 | } |
30358 | arg6 = static_cast< wxDouble >(val6); | |
30359 | { | |
70d7cb34 RD |
30360 | arg7 = &temp7; |
30361 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
30362 | } | |
30363 | { | |
30364 | arg8 = &temp8; | |
30365 | if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail; | |
30366 | } | |
30367 | { | |
30368 | result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8); | |
72ef6efb RD |
30369 | if (PyErr_Occurred()) SWIG_fail; |
30370 | } | |
70d7cb34 | 30371 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30372 | return resultobj; |
30373 | fail: | |
30374 | return NULL; | |
30375 | } | |
30376 | ||
30377 | ||
70d7cb34 RD |
30378 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
30379 | PyObject *resultobj = 0; | |
30380 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30381 | wxFont *arg2 = 0 ; | |
30382 | wxColour const &arg3_defvalue = *wxBLACK ; | |
30383 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
30384 | wxGraphicsFont result; | |
30385 | void *argp1 = 0 ; | |
30386 | int res1 = 0 ; | |
30387 | void *argp2 = 0 ; | |
30388 | int res2 = 0 ; | |
30389 | wxColour temp3 ; | |
30390 | PyObject * obj0 = 0 ; | |
30391 | PyObject * obj1 = 0 ; | |
30392 | PyObject * obj2 = 0 ; | |
30393 | char * kwnames[] = { | |
30394 | (char *) "self",(char *) "font",(char *) "col", NULL | |
30395 | }; | |
30396 | ||
30397 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30398 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30399 | if (!SWIG_IsOK(res1)) { | |
30400 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30401 | } | |
30402 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30403 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
30404 | if (!SWIG_IsOK(res2)) { | |
30405 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
30406 | } | |
30407 | if (!argp2) { | |
30408 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
30409 | } | |
30410 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
30411 | if (obj2) { | |
30412 | { | |
30413 | arg3 = &temp3; | |
30414 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
30415 | } | |
30416 | } | |
30417 | { | |
30418 | result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3); | |
30419 | if (PyErr_Occurred()) SWIG_fail; | |
30420 | } | |
30421 | resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 ); | |
30422 | return resultobj; | |
30423 | fail: | |
30424 | return NULL; | |
30425 | } | |
30426 | ||
30427 | ||
30428 | SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
72ef6efb RD |
30429 | PyObject *obj; |
30430 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
70d7cb34 | 30431 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj)); |
72ef6efb RD |
30432 | return SWIG_Py_Void(); |
30433 | } | |
30434 | ||
48a0c021 | 30435 | SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
30436 | PyObject *resultobj = 0; |
30437 | wxWindowDC *arg1 = 0 ; | |
30438 | wxGCDC *result = 0 ; | |
30439 | void *argp1 = 0 ; | |
30440 | int res1 = 0 ; | |
72ef6efb | 30441 | |
48a0c021 RD |
30442 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; |
30443 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
72ef6efb RD |
30444 | if (!SWIG_IsOK(res1)) { |
30445 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
30446 | } | |
30447 | if (!argp1) { | |
30448 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
30449 | } | |
30450 | arg1 = reinterpret_cast< wxWindowDC * >(argp1); | |
30451 | { | |
30452 | if (!wxPyCheckForApp()) SWIG_fail; | |
30453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30454 | result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1); | |
30455 | wxPyEndAllowThreads(__tstate); | |
30456 | if (PyErr_Occurred()) SWIG_fail; | |
30457 | } | |
30458 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 ); | |
30459 | return resultobj; | |
30460 | fail: | |
30461 | return NULL; | |
30462 | } | |
30463 | ||
30464 | ||
48a0c021 RD |
30465 | SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
30466 | PyObject *resultobj = 0; | |
30467 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30468 | wxGCDC *result = 0 ; | |
30469 | void *argp1 = 0 ; | |
30470 | int res1 = 0 ; | |
30471 | ||
30472 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
30473 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
30474 | if (!SWIG_IsOK(res1)) { | |
30475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
30476 | } | |
30477 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
30478 | { | |
30479 | if (!wxPyCheckForApp()) SWIG_fail; | |
30480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30481 | result = (wxGCDC *)new wxGCDC(arg1); | |
30482 | wxPyEndAllowThreads(__tstate); | |
30483 | if (PyErr_Occurred()) SWIG_fail; | |
30484 | } | |
30485 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 ); | |
30486 | return resultobj; | |
30487 | fail: | |
30488 | return NULL; | |
30489 | } | |
30490 | ||
30491 | ||
30492 | SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) { | |
30493 | int argc; | |
30494 | PyObject *argv[2]; | |
30495 | ||
30496 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail; | |
30497 | --argc; | |
30498 | if (argc == 1) { | |
30499 | int _v = 0; | |
30500 | { | |
30501 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0); | |
30502 | _v = SWIG_CheckState(res); | |
30503 | } | |
30504 | if (!_v) goto check_1; | |
30505 | return _wrap_new_GCDC__SWIG_0(self, argc, argv); | |
30506 | } | |
30507 | check_1: | |
30508 | ||
30509 | if (argc == 1) { | |
30510 | return _wrap_new_GCDC__SWIG_1(self, argc, argv); | |
30511 | } | |
30512 | ||
30513 | fail: | |
30514 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'"); | |
30515 | return NULL; | |
30516 | } | |
30517 | ||
30518 | ||
72ef6efb RD |
30519 | SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30520 | PyObject *resultobj = 0; | |
30521 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
30522 | void *argp1 = 0 ; | |
30523 | int res1 = 0 ; | |
30524 | PyObject *swig_obj[1] ; | |
30525 | ||
30526 | if (!args) SWIG_fail; | |
30527 | swig_obj[0] = args; | |
30528 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 ); | |
30529 | if (!SWIG_IsOK(res1)) { | |
30530 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'"); | |
30531 | } | |
30532 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
30533 | { | |
72ef6efb RD |
30534 | delete arg1; |
30535 | ||
72ef6efb RD |
30536 | if (PyErr_Occurred()) SWIG_fail; |
30537 | } | |
30538 | resultobj = SWIG_Py_Void(); | |
30539 | return resultobj; | |
30540 | fail: | |
30541 | return NULL; | |
30542 | } | |
30543 | ||
30544 | ||
0a27f394 | 30545 | SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
30546 | PyObject *resultobj = 0; |
30547 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
30548 | wxGraphicsContext *result = 0 ; | |
30549 | void *argp1 = 0 ; | |
30550 | int res1 = 0 ; | |
30551 | PyObject *swig_obj[1] ; | |
30552 | ||
30553 | if (!args) SWIG_fail; | |
30554 | swig_obj[0] = args; | |
30555 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 ); | |
30556 | if (!SWIG_IsOK(res1)) { | |
0a27f394 | 30557 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'"); |
72ef6efb RD |
30558 | } |
30559 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
30560 | { | |
0a27f394 | 30561 | result = (wxGraphicsContext *)(arg1)->GetGraphicsContext(); |
72ef6efb RD |
30562 | if (PyErr_Occurred()) SWIG_fail; |
30563 | } | |
30564 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30565 | return resultobj; | |
30566 | fail: | |
30567 | return NULL; | |
30568 | } | |
30569 | ||
30570 | ||
0a27f394 RD |
30571 | SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
30572 | PyObject *resultobj = 0; | |
30573 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
30574 | wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ; | |
30575 | void *argp1 = 0 ; | |
30576 | int res1 = 0 ; | |
30577 | void *argp2 = 0 ; | |
30578 | int res2 = 0 ; | |
30579 | PyObject * obj0 = 0 ; | |
30580 | PyObject * obj1 = 0 ; | |
30581 | char * kwnames[] = { | |
30582 | (char *) "self",(char *) "ctx", NULL | |
30583 | }; | |
30584 | ||
30585 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail; | |
30586 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 ); | |
30587 | if (!SWIG_IsOK(res1)) { | |
30588 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'"); | |
30589 | } | |
30590 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
30591 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30592 | if (!SWIG_IsOK(res2)) { | |
30593 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'"); | |
30594 | } | |
30595 | arg2 = reinterpret_cast< wxGraphicsContext * >(argp2); | |
30596 | { | |
30597 | (arg1)->SetGraphicsContext(arg2); | |
30598 | if (PyErr_Occurred()) SWIG_fail; | |
30599 | } | |
30600 | resultobj = SWIG_Py_Void(); | |
30601 | return resultobj; | |
30602 | fail: | |
30603 | return NULL; | |
30604 | } | |
30605 | ||
30606 | ||
72ef6efb RD |
30607 | SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30608 | PyObject *obj; | |
30609 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30610 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj)); | |
30611 | return SWIG_Py_Void(); | |
30612 | } | |
30613 | ||
30614 | SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30615 | return SWIG_Python_InitShadowInstance(args); | |
30616 | } | |
30617 | ||
b39fe951 RD |
30618 | SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30619 | PyObject *resultobj = 0; | |
30620 | wxOverlay *result = 0 ; | |
30621 | ||
30622 | if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail; | |
30623 | { | |
30624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30625 | result = (wxOverlay *)new wxOverlay(); | |
30626 | wxPyEndAllowThreads(__tstate); | |
30627 | if (PyErr_Occurred()) SWIG_fail; | |
30628 | } | |
30629 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 ); | |
30630 | return resultobj; | |
30631 | fail: | |
30632 | return NULL; | |
30633 | } | |
30634 | ||
30635 | ||
30636 | SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30637 | PyObject *resultobj = 0; | |
30638 | wxOverlay *arg1 = (wxOverlay *) 0 ; | |
30639 | void *argp1 = 0 ; | |
30640 | int res1 = 0 ; | |
30641 | PyObject *swig_obj[1] ; | |
30642 | ||
30643 | if (!args) SWIG_fail; | |
30644 | swig_obj[0] = args; | |
30645 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 ); | |
30646 | if (!SWIG_IsOK(res1)) { | |
30647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'"); | |
30648 | } | |
30649 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
30650 | { | |
30651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30652 | delete arg1; | |
30653 | ||
30654 | wxPyEndAllowThreads(__tstate); | |
30655 | if (PyErr_Occurred()) SWIG_fail; | |
30656 | } | |
30657 | resultobj = SWIG_Py_Void(); | |
30658 | return resultobj; | |
30659 | fail: | |
30660 | return NULL; | |
30661 | } | |
30662 | ||
30663 | ||
30664 | SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30665 | PyObject *resultobj = 0; | |
30666 | wxOverlay *arg1 = (wxOverlay *) 0 ; | |
30667 | void *argp1 = 0 ; | |
30668 | int res1 = 0 ; | |
30669 | PyObject *swig_obj[1] ; | |
30670 | ||
30671 | if (!args) SWIG_fail; | |
30672 | swig_obj[0] = args; | |
30673 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 ); | |
30674 | if (!SWIG_IsOK(res1)) { | |
30675 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'"); | |
30676 | } | |
30677 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
30678 | { | |
30679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30680 | (arg1)->Reset(); | |
30681 | wxPyEndAllowThreads(__tstate); | |
30682 | if (PyErr_Occurred()) SWIG_fail; | |
30683 | } | |
30684 | resultobj = SWIG_Py_Void(); | |
30685 | return resultobj; | |
30686 | fail: | |
30687 | return NULL; | |
30688 | } | |
30689 | ||
30690 | ||
30691 | SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30692 | PyObject *obj; | |
30693 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30694 | SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj)); | |
30695 | return SWIG_Py_Void(); | |
30696 | } | |
30697 | ||
30698 | SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30699 | return SWIG_Python_InitShadowInstance(args); | |
30700 | } | |
30701 | ||
30702 | SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
30703 | PyObject *resultobj = 0; | |
30704 | wxOverlay *arg1 = 0 ; | |
30705 | wxWindowDC *arg2 = (wxWindowDC *) 0 ; | |
30706 | int arg3 ; | |
30707 | int arg4 ; | |
30708 | int arg5 ; | |
30709 | int arg6 ; | |
30710 | wxDCOverlay *result = 0 ; | |
30711 | void *argp1 = 0 ; | |
30712 | int res1 = 0 ; | |
30713 | void *argp2 = 0 ; | |
30714 | int res2 = 0 ; | |
30715 | int val3 ; | |
30716 | int ecode3 = 0 ; | |
30717 | int val4 ; | |
30718 | int ecode4 = 0 ; | |
30719 | int val5 ; | |
30720 | int ecode5 = 0 ; | |
30721 | int val6 ; | |
30722 | int ecode6 = 0 ; | |
30723 | ||
30724 | if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; | |
30725 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 ); | |
30726 | if (!SWIG_IsOK(res1)) { | |
30727 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
30728 | } | |
30729 | if (!argp1) { | |
30730 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
30731 | } | |
30732 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
30733 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 ); | |
30734 | if (!SWIG_IsOK(res2)) { | |
30735 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'"); | |
30736 | } | |
30737 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
30738 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
30739 | if (!SWIG_IsOK(ecode3)) { | |
30740 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'"); | |
30741 | } | |
30742 | arg3 = static_cast< int >(val3); | |
30743 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
30744 | if (!SWIG_IsOK(ecode4)) { | |
30745 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'"); | |
30746 | } | |
30747 | arg4 = static_cast< int >(val4); | |
30748 | ecode5 = SWIG_AsVal_int(swig_obj[4], &val5); | |
30749 | if (!SWIG_IsOK(ecode5)) { | |
30750 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'"); | |
30751 | } | |
30752 | arg5 = static_cast< int >(val5); | |
30753 | ecode6 = SWIG_AsVal_int(swig_obj[5], &val6); | |
30754 | if (!SWIG_IsOK(ecode6)) { | |
30755 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'"); | |
30756 | } | |
30757 | arg6 = static_cast< int >(val6); | |
30758 | { | |
30759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30760 | result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6); | |
30761 | wxPyEndAllowThreads(__tstate); | |
30762 | if (PyErr_Occurred()) SWIG_fail; | |
30763 | } | |
30764 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 ); | |
30765 | return resultobj; | |
30766 | fail: | |
30767 | return NULL; | |
30768 | } | |
30769 | ||
30770 | ||
30771 | SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
30772 | PyObject *resultobj = 0; | |
30773 | wxOverlay *arg1 = 0 ; | |
30774 | wxWindowDC *arg2 = (wxWindowDC *) 0 ; | |
30775 | wxDCOverlay *result = 0 ; | |
30776 | void *argp1 = 0 ; | |
30777 | int res1 = 0 ; | |
30778 | void *argp2 = 0 ; | |
30779 | int res2 = 0 ; | |
30780 | ||
30781 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
30782 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 ); | |
30783 | if (!SWIG_IsOK(res1)) { | |
30784 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
30785 | } | |
30786 | if (!argp1) { | |
30787 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
30788 | } | |
30789 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
30790 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 ); | |
30791 | if (!SWIG_IsOK(res2)) { | |
30792 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'"); | |
30793 | } | |
30794 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
30795 | { | |
30796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30797 | result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2); | |
30798 | wxPyEndAllowThreads(__tstate); | |
30799 | if (PyErr_Occurred()) SWIG_fail; | |
30800 | } | |
30801 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 ); | |
30802 | return resultobj; | |
30803 | fail: | |
30804 | return NULL; | |
30805 | } | |
30806 | ||
30807 | ||
30808 | SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) { | |
30809 | int argc; | |
30810 | PyObject *argv[7]; | |
30811 | ||
30812 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail; | |
30813 | --argc; | |
30814 | if (argc == 2) { | |
30815 | return _wrap_new_DCOverlay__SWIG_1(self, argc, argv); | |
30816 | } | |
30817 | if (argc == 6) { | |
30818 | return _wrap_new_DCOverlay__SWIG_0(self, argc, argv); | |
30819 | } | |
30820 | ||
30821 | fail: | |
30822 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'"); | |
30823 | return NULL; | |
30824 | } | |
30825 | ||
30826 | ||
30827 | SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30828 | PyObject *resultobj = 0; | |
30829 | wxDCOverlay *arg1 = (wxDCOverlay *) 0 ; | |
30830 | void *argp1 = 0 ; | |
30831 | int res1 = 0 ; | |
30832 | PyObject *swig_obj[1] ; | |
30833 | ||
30834 | if (!args) SWIG_fail; | |
30835 | swig_obj[0] = args; | |
30836 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 ); | |
30837 | if (!SWIG_IsOK(res1)) { | |
30838 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'"); | |
30839 | } | |
30840 | arg1 = reinterpret_cast< wxDCOverlay * >(argp1); | |
30841 | { | |
30842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30843 | delete arg1; | |
30844 | ||
30845 | wxPyEndAllowThreads(__tstate); | |
30846 | if (PyErr_Occurred()) SWIG_fail; | |
30847 | } | |
30848 | resultobj = SWIG_Py_Void(); | |
30849 | return resultobj; | |
30850 | fail: | |
30851 | return NULL; | |
30852 | } | |
30853 | ||
30854 | ||
30855 | SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30856 | PyObject *resultobj = 0; | |
30857 | wxDCOverlay *arg1 = (wxDCOverlay *) 0 ; | |
30858 | void *argp1 = 0 ; | |
30859 | int res1 = 0 ; | |
30860 | PyObject *swig_obj[1] ; | |
30861 | ||
30862 | if (!args) SWIG_fail; | |
30863 | swig_obj[0] = args; | |
30864 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 ); | |
30865 | if (!SWIG_IsOK(res1)) { | |
30866 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'"); | |
30867 | } | |
30868 | arg1 = reinterpret_cast< wxDCOverlay * >(argp1); | |
30869 | { | |
30870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30871 | (arg1)->Clear(); | |
30872 | wxPyEndAllowThreads(__tstate); | |
30873 | if (PyErr_Occurred()) SWIG_fail; | |
30874 | } | |
30875 | resultobj = SWIG_Py_Void(); | |
30876 | return resultobj; | |
30877 | fail: | |
30878 | return NULL; | |
30879 | } | |
30880 | ||
30881 | ||
30882 | SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30883 | PyObject *obj; | |
30884 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30885 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj)); | |
30886 | return SWIG_Py_Void(); | |
30887 | } | |
30888 | ||
30889 | SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30890 | return SWIG_Python_InitShadowInstance(args); | |
30891 | } | |
30892 | ||
72ef6efb RD |
30893 | SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
30894 | PyObject *resultobj = 0; | |
30895 | int arg1 ; | |
30896 | int arg2 ; | |
30897 | int arg3 = (int) true ; | |
30898 | int arg4 = (int) 1 ; | |
30899 | wxImageList *result = 0 ; | |
30900 | int val1 ; | |
30901 | int ecode1 = 0 ; | |
30902 | int val2 ; | |
30903 | int ecode2 = 0 ; | |
30904 | int val3 ; | |
30905 | int ecode3 = 0 ; | |
30906 | int val4 ; | |
30907 | int ecode4 = 0 ; | |
30908 | PyObject * obj0 = 0 ; | |
30909 | PyObject * obj1 = 0 ; | |
30910 | PyObject * obj2 = 0 ; | |
30911 | PyObject * obj3 = 0 ; | |
30912 | char * kwnames[] = { | |
30913 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
30914 | }; | |
30915 | ||
30916 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
30917 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
30918 | if (!SWIG_IsOK(ecode1)) { | |
30919 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'"); | |
30920 | } | |
30921 | arg1 = static_cast< int >(val1); | |
30922 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30923 | if (!SWIG_IsOK(ecode2)) { | |
30924 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'"); | |
30925 | } | |
30926 | arg2 = static_cast< int >(val2); | |
30927 | if (obj2) { | |
30928 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
30929 | if (!SWIG_IsOK(ecode3)) { | |
30930 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'"); | |
30931 | } | |
30932 | arg3 = static_cast< int >(val3); | |
30933 | } | |
30934 | if (obj3) { | |
30935 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
30936 | if (!SWIG_IsOK(ecode4)) { | |
30937 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'"); | |
30938 | } | |
30939 | arg4 = static_cast< int >(val4); | |
30940 | } | |
30941 | { | |
30942 | if (!wxPyCheckForApp()) SWIG_fail; | |
30943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30944 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
30945 | wxPyEndAllowThreads(__tstate); | |
30946 | if (PyErr_Occurred()) SWIG_fail; | |
30947 | } | |
e02c0a13 | 30948 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 ); |
72ef6efb RD |
30949 | return resultobj; |
30950 | fail: | |
30951 | return NULL; | |
30952 | } | |
30953 | ||
30954 | ||
30955 | SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30956 | PyObject *resultobj = 0; | |
30957 | wxImageList *arg1 = (wxImageList *) 0 ; | |
30958 | void *argp1 = 0 ; | |
30959 | int res1 = 0 ; | |
30960 | PyObject *swig_obj[1] ; | |
30961 | ||
30962 | if (!args) SWIG_fail; | |
30963 | swig_obj[0] = args; | |
30964 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
30965 | if (!SWIG_IsOK(res1)) { | |
30966 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
30967 | } | |
30968 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
30969 | { | |
30970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30971 | delete arg1; | |
30972 | ||
30973 | wxPyEndAllowThreads(__tstate); | |
30974 | if (PyErr_Occurred()) SWIG_fail; | |
30975 | } | |
30976 | resultobj = SWIG_Py_Void(); | |
30977 | return resultobj; | |
30978 | fail: | |
30979 | return NULL; | |
30980 | } | |
30981 | ||
30982 | ||
30983 | SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30984 | PyObject *resultobj = 0; | |
30985 | wxImageList *arg1 = (wxImageList *) 0 ; | |
30986 | wxBitmap *arg2 = 0 ; | |
30987 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
30988 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
30989 | int result; | |
30990 | void *argp1 = 0 ; | |
30991 | int res1 = 0 ; | |
30992 | void *argp2 = 0 ; | |
30993 | int res2 = 0 ; | |
30994 | void *argp3 = 0 ; | |
30995 | int res3 = 0 ; | |
30996 | PyObject * obj0 = 0 ; | |
30997 | PyObject * obj1 = 0 ; | |
30998 | PyObject * obj2 = 0 ; | |
30999 | char * kwnames[] = { | |
31000 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
31001 | }; | |
31002 | ||
31003 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31004 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31005 | if (!SWIG_IsOK(res1)) { | |
31006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31007 | } | |
31008 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31009 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31010 | if (!SWIG_IsOK(res2)) { | |
31011 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
31012 | } | |
31013 | if (!argp2) { | |
31014 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
31015 | } | |
31016 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
31017 | if (obj2) { | |
31018 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31019 | if (!SWIG_IsOK(res3)) { | |
31020 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
31021 | } | |
31022 | if (!argp3) { | |
31023 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
31024 | } | |
31025 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
31026 | } | |
31027 | { | |
31028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31029 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
31030 | wxPyEndAllowThreads(__tstate); | |
31031 | if (PyErr_Occurred()) SWIG_fail; | |
31032 | } | |
31033 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
31034 | return resultobj; | |
31035 | fail: | |
31036 | return NULL; | |
31037 | } | |
31038 | ||
31039 | ||
31040 | SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31041 | PyObject *resultobj = 0; | |
31042 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31043 | wxBitmap *arg2 = 0 ; | |
31044 | wxColour *arg3 = 0 ; | |
31045 | int result; | |
31046 | void *argp1 = 0 ; | |
31047 | int res1 = 0 ; | |
31048 | void *argp2 = 0 ; | |
31049 | int res2 = 0 ; | |
31050 | wxColour temp3 ; | |
31051 | PyObject * obj0 = 0 ; | |
31052 | PyObject * obj1 = 0 ; | |
31053 | PyObject * obj2 = 0 ; | |
31054 | char * kwnames[] = { | |
31055 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
31056 | }; | |
31057 | ||
31058 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31059 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31060 | if (!SWIG_IsOK(res1)) { | |
31061 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31062 | } | |
31063 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31064 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31065 | if (!SWIG_IsOK(res2)) { | |
31066 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
31067 | } | |
31068 | if (!argp2) { | |
31069 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
31070 | } | |
31071 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
31072 | { | |
31073 | arg3 = &temp3; | |
31074 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
31075 | } | |
31076 | { | |
31077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31078 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
31079 | wxPyEndAllowThreads(__tstate); | |
31080 | if (PyErr_Occurred()) SWIG_fail; | |
31081 | } | |
31082 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
31083 | return resultobj; | |
31084 | fail: | |
31085 | return NULL; | |
31086 | } | |
31087 | ||
31088 | ||
31089 | SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31090 | PyObject *resultobj = 0; | |
31091 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31092 | wxIcon *arg2 = 0 ; | |
31093 | int result; | |
31094 | void *argp1 = 0 ; | |
31095 | int res1 = 0 ; | |
31096 | void *argp2 = 0 ; | |
31097 | int res2 = 0 ; | |
31098 | PyObject * obj0 = 0 ; | |
31099 | PyObject * obj1 = 0 ; | |
31100 | char * kwnames[] = { | |
31101 | (char *) "self",(char *) "icon", NULL | |
31102 | }; | |
31103 | ||
31104 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
31105 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31106 | if (!SWIG_IsOK(res1)) { | |
31107 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31108 | } | |
0085ce49 RD |
31109 | arg1 = reinterpret_cast< wxImageList * >(argp1); |
31110 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
31111 | if (!SWIG_IsOK(res2)) { | |
31112 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
31113 | } | |
31114 | if (!argp2) { | |
31115 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
31116 | } | |
31117 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
31118 | { | |
31119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31120 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
31121 | wxPyEndAllowThreads(__tstate); | |
31122 | if (PyErr_Occurred()) SWIG_fail; | |
31123 | } | |
31124 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
31125 | return resultobj; | |
31126 | fail: | |
31127 | return NULL; | |
31128 | } | |
31129 | ||
31130 | ||
31131 | SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31132 | PyObject *resultobj = 0; | |
31133 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31134 | int arg2 ; | |
31135 | SwigValueWrapper<wxBitmap > result; | |
31136 | void *argp1 = 0 ; | |
31137 | int res1 = 0 ; | |
31138 | int val2 ; | |
31139 | int ecode2 = 0 ; | |
31140 | PyObject * obj0 = 0 ; | |
31141 | PyObject * obj1 = 0 ; | |
31142 | char * kwnames[] = { | |
31143 | (char *) "self",(char *) "index", NULL | |
31144 | }; | |
31145 | ||
31146 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
31147 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31148 | if (!SWIG_IsOK(res1)) { | |
31149 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
31150 | } | |
31151 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31152 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31153 | if (!SWIG_IsOK(ecode2)) { | |
31154 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'"); | |
31155 | } | |
31156 | arg2 = static_cast< int >(val2); | |
31157 | { | |
31158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31159 | result = ((wxImageList const *)arg1)->GetBitmap(arg2); | |
31160 | wxPyEndAllowThreads(__tstate); | |
31161 | if (PyErr_Occurred()) SWIG_fail; | |
31162 | } | |
31163 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
31164 | return resultobj; | |
31165 | fail: | |
31166 | return NULL; | |
31167 | } | |
31168 | ||
31169 | ||
31170 | SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31171 | PyObject *resultobj = 0; | |
31172 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31173 | int arg2 ; | |
31174 | wxIcon result; | |
31175 | void *argp1 = 0 ; | |
31176 | int res1 = 0 ; | |
31177 | int val2 ; | |
31178 | int ecode2 = 0 ; | |
31179 | PyObject * obj0 = 0 ; | |
31180 | PyObject * obj1 = 0 ; | |
31181 | char * kwnames[] = { | |
31182 | (char *) "self",(char *) "index", NULL | |
31183 | }; | |
31184 | ||
31185 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
31186 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31187 | if (!SWIG_IsOK(res1)) { | |
31188 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
31189 | } | |
31190 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31191 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31192 | if (!SWIG_IsOK(ecode2)) { | |
31193 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'"); | |
31194 | } | |
31195 | arg2 = static_cast< int >(val2); | |
31196 | { | |
31197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31198 | result = ((wxImageList const *)arg1)->GetIcon(arg2); | |
31199 | wxPyEndAllowThreads(__tstate); | |
31200 | if (PyErr_Occurred()) SWIG_fail; | |
31201 | } | |
31202 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
31203 | return resultobj; | |
31204 | fail: | |
31205 | return NULL; | |
31206 | } | |
31207 | ||
31208 | ||
31209 | SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31210 | PyObject *resultobj = 0; | |
31211 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31212 | int arg2 ; | |
31213 | wxBitmap *arg3 = 0 ; | |
01f6b6d3 RD |
31214 | wxBitmap const &arg4_defvalue = wxNullBitmap ; |
31215 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
0085ce49 RD |
31216 | bool result; |
31217 | void *argp1 = 0 ; | |
31218 | int res1 = 0 ; | |
31219 | int val2 ; | |
31220 | int ecode2 = 0 ; | |
31221 | void *argp3 = 0 ; | |
31222 | int res3 = 0 ; | |
01f6b6d3 RD |
31223 | void *argp4 = 0 ; |
31224 | int res4 = 0 ; | |
0085ce49 RD |
31225 | PyObject * obj0 = 0 ; |
31226 | PyObject * obj1 = 0 ; | |
31227 | PyObject * obj2 = 0 ; | |
01f6b6d3 | 31228 | PyObject * obj3 = 0 ; |
0085ce49 | 31229 | char * kwnames[] = { |
01f6b6d3 | 31230 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL |
0085ce49 RD |
31231 | }; |
31232 | ||
01f6b6d3 | 31233 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
0085ce49 RD |
31234 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); |
31235 | if (!SWIG_IsOK(res1)) { | |
31236 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31237 | } | |
31238 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31239 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31240 | if (!SWIG_IsOK(ecode2)) { | |
31241 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'"); | |
31242 | } | |
31243 | arg2 = static_cast< int >(val2); | |
31244 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31245 | if (!SWIG_IsOK(res3)) { | |
31246 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
31247 | } | |
31248 | if (!argp3) { | |
31249 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
31250 | } | |
31251 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
01f6b6d3 RD |
31252 | if (obj3) { |
31253 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31254 | if (!SWIG_IsOK(res4)) { | |
31255 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
31256 | } | |
31257 | if (!argp4) { | |
31258 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
31259 | } | |
31260 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
31261 | } | |
0085ce49 RD |
31262 | { |
31263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
01f6b6d3 | 31264 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); |
0085ce49 RD |
31265 | wxPyEndAllowThreads(__tstate); |
31266 | if (PyErr_Occurred()) SWIG_fail; | |
31267 | } | |
31268 | { | |
31269 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31270 | } | |
31271 | return resultobj; | |
31272 | fail: | |
31273 | return NULL; | |
31274 | } | |
31275 | ||
31276 | ||
31277 | SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31278 | PyObject *resultobj = 0; | |
31279 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31280 | int arg2 ; | |
31281 | wxDC *arg3 = 0 ; | |
31282 | int arg4 ; | |
31283 | int arg5 ; | |
31284 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
31285 | bool arg7 = (bool) (bool)false ; | |
31286 | bool result; | |
31287 | void *argp1 = 0 ; | |
31288 | int res1 = 0 ; | |
31289 | int val2 ; | |
31290 | int ecode2 = 0 ; | |
31291 | void *argp3 = 0 ; | |
31292 | int res3 = 0 ; | |
31293 | int val4 ; | |
31294 | int ecode4 = 0 ; | |
31295 | int val5 ; | |
31296 | int ecode5 = 0 ; | |
31297 | int val6 ; | |
31298 | int ecode6 = 0 ; | |
31299 | bool val7 ; | |
31300 | int ecode7 = 0 ; | |
31301 | PyObject * obj0 = 0 ; | |
31302 | PyObject * obj1 = 0 ; | |
31303 | PyObject * obj2 = 0 ; | |
31304 | PyObject * obj3 = 0 ; | |
31305 | PyObject * obj4 = 0 ; | |
31306 | PyObject * obj5 = 0 ; | |
31307 | PyObject * obj6 = 0 ; | |
31308 | char * kwnames[] = { | |
31309 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
31310 | }; | |
31311 | ||
31312 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
31313 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31314 | if (!SWIG_IsOK(res1)) { | |
31315 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31316 | } | |
31317 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31318 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31319 | if (!SWIG_IsOK(ecode2)) { | |
31320 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'"); | |
31321 | } | |
31322 | arg2 = static_cast< int >(val2); | |
31323 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
31324 | if (!SWIG_IsOK(res3)) { | |
31325 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31326 | } | |
31327 | if (!argp3) { | |
31328 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31329 | } | |
31330 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
31331 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31332 | if (!SWIG_IsOK(ecode4)) { | |
31333 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'"); | |
31334 | } | |
31335 | arg4 = static_cast< int >(val4); | |
31336 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
31337 | if (!SWIG_IsOK(ecode5)) { | |
31338 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'"); | |
31339 | } | |
31340 | arg5 = static_cast< int >(val5); | |
31341 | if (obj5) { | |
31342 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
31343 | if (!SWIG_IsOK(ecode6)) { | |
31344 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'"); | |
31345 | } | |
31346 | arg6 = static_cast< int >(val6); | |
31347 | } | |
31348 | if (obj6) { | |
31349 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
31350 | if (!SWIG_IsOK(ecode7)) { | |
31351 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'"); | |
31352 | } | |
31353 | arg7 = static_cast< bool >(val7); | |
31354 | } | |
31355 | { | |
31356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31357 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
31358 | wxPyEndAllowThreads(__tstate); | |
31359 | if (PyErr_Occurred()) SWIG_fail; | |
31360 | } | |
31361 | { | |
31362 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31363 | } | |
31364 | return resultobj; | |
31365 | fail: | |
31366 | return NULL; | |
31367 | } | |
31368 | ||
31369 | ||
31370 | SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31371 | PyObject *resultobj = 0; | |
31372 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31373 | int result; | |
31374 | void *argp1 = 0 ; | |
31375 | int res1 = 0 ; | |
31376 | PyObject *swig_obj[1] ; | |
31377 | ||
31378 | if (!args) SWIG_fail; | |
31379 | swig_obj[0] = args; | |
31380 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31381 | if (!SWIG_IsOK(res1)) { | |
31382 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31383 | } | |
31384 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31385 | { | |
31386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31387 | result = (int)(arg1)->GetImageCount(); | |
31388 | wxPyEndAllowThreads(__tstate); | |
31389 | if (PyErr_Occurred()) SWIG_fail; | |
31390 | } | |
31391 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
31392 | return resultobj; | |
31393 | fail: | |
31394 | return NULL; | |
31395 | } | |
31396 | ||
31397 | ||
31398 | SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31399 | PyObject *resultobj = 0; | |
31400 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31401 | int arg2 ; | |
31402 | bool result; | |
31403 | void *argp1 = 0 ; | |
31404 | int res1 = 0 ; | |
31405 | int val2 ; | |
31406 | int ecode2 = 0 ; | |
31407 | PyObject * obj0 = 0 ; | |
31408 | PyObject * obj1 = 0 ; | |
31409 | char * kwnames[] = { | |
31410 | (char *) "self",(char *) "index", NULL | |
31411 | }; | |
31412 | ||
31413 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail; | |
31414 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31415 | if (!SWIG_IsOK(res1)) { | |
31416 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31417 | } | |
31418 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31419 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31420 | if (!SWIG_IsOK(ecode2)) { | |
31421 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'"); | |
31422 | } | |
31423 | arg2 = static_cast< int >(val2); | |
31424 | { | |
31425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31426 | result = (bool)(arg1)->Remove(arg2); | |
31427 | wxPyEndAllowThreads(__tstate); | |
31428 | if (PyErr_Occurred()) SWIG_fail; | |
31429 | } | |
31430 | { | |
31431 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31432 | } | |
31433 | return resultobj; | |
31434 | fail: | |
31435 | return NULL; | |
31436 | } | |
31437 | ||
31438 | ||
31439 | SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31440 | PyObject *resultobj = 0; | |
31441 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31442 | bool result; | |
31443 | void *argp1 = 0 ; | |
31444 | int res1 = 0 ; | |
31445 | PyObject *swig_obj[1] ; | |
31446 | ||
31447 | if (!args) SWIG_fail; | |
31448 | swig_obj[0] = args; | |
31449 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31450 | if (!SWIG_IsOK(res1)) { | |
31451 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31452 | } | |
31453 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31454 | { | |
31455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31456 | result = (bool)(arg1)->RemoveAll(); | |
31457 | wxPyEndAllowThreads(__tstate); | |
31458 | if (PyErr_Occurred()) SWIG_fail; | |
31459 | } | |
31460 | { | |
31461 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31462 | } | |
31463 | return resultobj; | |
31464 | fail: | |
31465 | return NULL; | |
31466 | } | |
31467 | ||
31468 | ||
31469 | SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31470 | PyObject *resultobj = 0; | |
31471 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31472 | int arg2 ; | |
31473 | int *arg3 = 0 ; | |
31474 | int *arg4 = 0 ; | |
31475 | void *argp1 = 0 ; | |
31476 | int res1 = 0 ; | |
31477 | int val2 ; | |
31478 | int ecode2 = 0 ; | |
31479 | int temp3 ; | |
31480 | int res3 = SWIG_TMPOBJ ; | |
31481 | int temp4 ; | |
31482 | int res4 = SWIG_TMPOBJ ; | |
31483 | PyObject * obj0 = 0 ; | |
31484 | PyObject * obj1 = 0 ; | |
31485 | char * kwnames[] = { | |
31486 | (char *) "self",(char *) "index", NULL | |
31487 | }; | |
31488 | ||
31489 | arg3 = &temp3; | |
31490 | arg4 = &temp4; | |
31491 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
31492 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31493 | if (!SWIG_IsOK(res1)) { | |
31494 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31495 | } | |
31496 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31497 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31498 | if (!SWIG_IsOK(ecode2)) { | |
31499 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'"); | |
31500 | } | |
31501 | arg2 = static_cast< int >(val2); | |
31502 | { | |
31503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31504 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
31505 | wxPyEndAllowThreads(__tstate); | |
31506 | if (PyErr_Occurred()) SWIG_fail; | |
31507 | } | |
31508 | resultobj = SWIG_Py_Void(); | |
31509 | if (SWIG_IsTmpObj(res3)) { | |
31510 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
31511 | } else { | |
31512 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
31513 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
31514 | } | |
31515 | if (SWIG_IsTmpObj(res4)) { | |
31516 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
31517 | } else { | |
31518 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
31519 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
31520 | } | |
31521 | return resultobj; | |
31522 | fail: | |
31523 | return NULL; | |
31524 | } | |
31525 | ||
31526 | ||
31527 | SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31528 | PyObject *obj; | |
31529 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31530 | SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj)); | |
31531 | return SWIG_Py_Void(); | |
31532 | } | |
31533 | ||
31534 | SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31535 | return SWIG_Python_InitShadowInstance(args); | |
31536 | } | |
31537 | ||
50efceee RD |
31538 | SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31539 | PyObject *resultobj = 0; | |
31540 | wxStockGDI *result = 0 ; | |
0085ce49 | 31541 | |
50efceee RD |
31542 | if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail; |
31543 | { | |
31544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31545 | result = (wxStockGDI *)new wxStockGDI(); | |
31546 | wxPyEndAllowThreads(__tstate); | |
31547 | if (PyErr_Occurred()) SWIG_fail; | |
31548 | } | |
31549 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 ); | |
31550 | return resultobj; | |
31551 | fail: | |
31552 | return NULL; | |
0085ce49 RD |
31553 | } |
31554 | ||
31555 | ||
50efceee RD |
31556 | SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31557 | PyObject *resultobj = 0; | |
31558 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
31559 | void *argp1 = 0 ; | |
31560 | int res1 = 0 ; | |
31561 | PyObject *swig_obj[1] ; | |
0085ce49 | 31562 | |
50efceee RD |
31563 | if (!args) SWIG_fail; |
31564 | swig_obj[0] = args; | |
31565 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 ); | |
31566 | if (!SWIG_IsOK(res1)) { | |
31567 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
31568 | } | |
31569 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
31570 | { | |
31571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31572 | delete arg1; | |
31573 | ||
31574 | wxPyEndAllowThreads(__tstate); | |
31575 | if (PyErr_Occurred()) SWIG_fail; | |
31576 | } | |
31577 | resultobj = SWIG_Py_Void(); | |
31578 | return resultobj; | |
31579 | fail: | |
31580 | return NULL; | |
0085ce49 RD |
31581 | } |
31582 | ||
31583 | ||
50efceee RD |
31584 | SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31585 | PyObject *resultobj = 0; | |
0085ce49 | 31586 | |
50efceee RD |
31587 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail; |
31588 | { | |
31589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31590 | wxStockGDI::DeleteAll(); | |
31591 | wxPyEndAllowThreads(__tstate); | |
31592 | if (PyErr_Occurred()) SWIG_fail; | |
31593 | } | |
31594 | resultobj = SWIG_Py_Void(); | |
31595 | return resultobj; | |
31596 | fail: | |
31597 | return NULL; | |
0085ce49 RD |
31598 | } |
31599 | ||
31600 | ||
50efceee RD |
31601 | SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31602 | PyObject *resultobj = 0; | |
31603 | wxStockGDI *result = 0 ; | |
0085ce49 | 31604 | |
50efceee RD |
31605 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail; |
31606 | { | |
31607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31608 | { | |
31609 | wxStockGDI &_result_ref = wxStockGDI::instance(); | |
31610 | result = (wxStockGDI *) &_result_ref; | |
31611 | } | |
31612 | wxPyEndAllowThreads(__tstate); | |
31613 | if (PyErr_Occurred()) SWIG_fail; | |
31614 | } | |
31615 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
31616 | return resultobj; | |
31617 | fail: | |
31618 | return NULL; | |
0085ce49 RD |
31619 | } |
31620 | ||
31621 | ||
50efceee RD |
31622 | SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31623 | PyObject *resultobj = 0; | |
31624 | wxStockGDI::Item arg1 ; | |
31625 | wxBrush *result = 0 ; | |
31626 | int val1 ; | |
31627 | int ecode1 = 0 ; | |
31628 | PyObject * obj0 = 0 ; | |
31629 | char * kwnames[] = { | |
31630 | (char *) "item", NULL | |
31631 | }; | |
31632 | ||
31633 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail; | |
31634 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31635 | if (!SWIG_IsOK(ecode1)) { | |
31636 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
31637 | } | |
31638 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
31639 | { | |
31640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31641 | result = (wxBrush *)wxStockGDI::GetBrush(arg1); | |
31642 | wxPyEndAllowThreads(__tstate); | |
31643 | if (PyErr_Occurred()) SWIG_fail; | |
31644 | } | |
31645 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
31646 | return resultobj; | |
31647 | fail: | |
31648 | return NULL; | |
0085ce49 RD |
31649 | } |
31650 | ||
31651 | ||
50efceee RD |
31652 | SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31653 | PyObject *resultobj = 0; | |
31654 | wxStockGDI::Item arg1 ; | |
31655 | wxColour *result = 0 ; | |
31656 | int val1 ; | |
31657 | int ecode1 = 0 ; | |
31658 | PyObject * obj0 = 0 ; | |
31659 | char * kwnames[] = { | |
31660 | (char *) "item", NULL | |
31661 | }; | |
0085ce49 | 31662 | |
50efceee RD |
31663 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail; |
31664 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31665 | if (!SWIG_IsOK(ecode1)) { | |
31666 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
31667 | } | |
31668 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
31669 | { | |
31670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31671 | result = (wxColour *)wxStockGDI::GetColour(arg1); | |
31672 | wxPyEndAllowThreads(__tstate); | |
31673 | if (PyErr_Occurred()) SWIG_fail; | |
31674 | } | |
31675 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
31676 | return resultobj; | |
31677 | fail: | |
31678 | return NULL; | |
0085ce49 RD |
31679 | } |
31680 | ||
31681 | ||
50efceee RD |
31682 | SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31683 | PyObject *resultobj = 0; | |
31684 | wxStockGDI::Item arg1 ; | |
31685 | wxCursor *result = 0 ; | |
31686 | int val1 ; | |
31687 | int ecode1 = 0 ; | |
31688 | PyObject * obj0 = 0 ; | |
31689 | char * kwnames[] = { | |
31690 | (char *) "item", NULL | |
31691 | }; | |
31692 | ||
31693 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail; | |
31694 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31695 | if (!SWIG_IsOK(ecode1)) { | |
31696 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
31697 | } | |
31698 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
31699 | { | |
31700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31701 | result = (wxCursor *)wxStockGDI::GetCursor(arg1); | |
31702 | wxPyEndAllowThreads(__tstate); | |
31703 | if (PyErr_Occurred()) SWIG_fail; | |
31704 | } | |
31705 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 ); | |
31706 | return resultobj; | |
31707 | fail: | |
31708 | return NULL; | |
0085ce49 RD |
31709 | } |
31710 | ||
31711 | ||
50efceee RD |
31712 | SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31713 | PyObject *resultobj = 0; | |
31714 | wxStockGDI::Item arg1 ; | |
31715 | wxPen *result = 0 ; | |
31716 | int val1 ; | |
31717 | int ecode1 = 0 ; | |
31718 | PyObject * obj0 = 0 ; | |
31719 | char * kwnames[] = { | |
31720 | (char *) "item", NULL | |
31721 | }; | |
31722 | ||
31723 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail; | |
31724 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31725 | if (!SWIG_IsOK(ecode1)) { | |
31726 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
31727 | } | |
31728 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
31729 | { | |
31730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31731 | result = (wxPen *)wxStockGDI::GetPen(arg1); | |
31732 | wxPyEndAllowThreads(__tstate); | |
31733 | if (PyErr_Occurred()) SWIG_fail; | |
31734 | } | |
31735 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
31736 | return resultobj; | |
31737 | fail: | |
31738 | return NULL; | |
0085ce49 RD |
31739 | } |
31740 | ||
31741 | ||
50efceee RD |
31742 | SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31743 | PyObject *resultobj = 0; | |
31744 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
31745 | wxStockGDI::Item arg2 ; | |
31746 | wxFont *result = 0 ; | |
31747 | void *argp1 = 0 ; | |
31748 | int res1 = 0 ; | |
31749 | int val2 ; | |
31750 | int ecode2 = 0 ; | |
31751 | PyObject * obj0 = 0 ; | |
31752 | PyObject * obj1 = 0 ; | |
31753 | char * kwnames[] = { | |
31754 | (char *) "self",(char *) "item", NULL | |
31755 | }; | |
0085ce49 | 31756 | |
50efceee RD |
31757 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail; |
31758 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
31759 | if (!SWIG_IsOK(res1)) { | |
31760 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
31761 | } | |
31762 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
31763 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31764 | if (!SWIG_IsOK(ecode2)) { | |
31765 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'"); | |
31766 | } | |
31767 | arg2 = static_cast< wxStockGDI::Item >(val2); | |
31768 | { | |
31769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31770 | result = (wxFont *)(arg1)->GetFont(arg2); | |
31771 | wxPyEndAllowThreads(__tstate); | |
31772 | if (PyErr_Occurred()) SWIG_fail; | |
31773 | } | |
31774 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
31775 | return resultobj; | |
31776 | fail: | |
31777 | return NULL; | |
0085ce49 RD |
31778 | } |
31779 | ||
31780 | ||
50efceee RD |
31781 | SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31782 | PyObject *obj; | |
31783 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31784 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj)); | |
31785 | return SWIG_Py_Void(); | |
0085ce49 RD |
31786 | } |
31787 | ||
50efceee RD |
31788 | SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31789 | return SWIG_Python_InitShadowInstance(args); | |
0085ce49 RD |
31790 | } |
31791 | ||
0085ce49 RD |
31792 | SWIGINTERN int NullBitmap_set(PyObject *) { |
31793 | SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only."); | |
31794 | return 1; | |
31795 | } | |
31796 | ||
31797 | ||
31798 | SWIGINTERN PyObject *NullBitmap_get(void) { | |
31799 | PyObject *pyobj = 0; | |
31800 | ||
31801 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 ); | |
31802 | return pyobj; | |
31803 | } | |
31804 | ||
31805 | ||
31806 | SWIGINTERN int NullIcon_set(PyObject *) { | |
31807 | SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only."); | |
31808 | return 1; | |
31809 | } | |
31810 | ||
31811 | ||
31812 | SWIGINTERN PyObject *NullIcon_get(void) { | |
31813 | PyObject *pyobj = 0; | |
31814 | ||
31815 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 ); | |
31816 | return pyobj; | |
31817 | } | |
31818 | ||
31819 | ||
31820 | SWIGINTERN int NullCursor_set(PyObject *) { | |
31821 | SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only."); | |
31822 | return 1; | |
31823 | } | |
31824 | ||
31825 | ||
31826 | SWIGINTERN PyObject *NullCursor_get(void) { | |
31827 | PyObject *pyobj = 0; | |
31828 | ||
31829 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 ); | |
31830 | return pyobj; | |
31831 | } | |
31832 | ||
31833 | ||
31834 | SWIGINTERN int NullPen_set(PyObject *) { | |
31835 | SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only."); | |
31836 | return 1; | |
31837 | } | |
31838 | ||
31839 | ||
31840 | SWIGINTERN PyObject *NullPen_get(void) { | |
31841 | PyObject *pyobj = 0; | |
31842 | ||
31843 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 ); | |
31844 | return pyobj; | |
31845 | } | |
31846 | ||
31847 | ||
31848 | SWIGINTERN int NullBrush_set(PyObject *) { | |
31849 | SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only."); | |
31850 | return 1; | |
31851 | } | |
31852 | ||
31853 | ||
31854 | SWIGINTERN PyObject *NullBrush_get(void) { | |
31855 | PyObject *pyobj = 0; | |
31856 | ||
31857 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 ); | |
31858 | return pyobj; | |
31859 | } | |
31860 | ||
31861 | ||
31862 | SWIGINTERN int NullPalette_set(PyObject *) { | |
31863 | SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only."); | |
31864 | return 1; | |
31865 | } | |
31866 | ||
31867 | ||
31868 | SWIGINTERN PyObject *NullPalette_get(void) { | |
31869 | PyObject *pyobj = 0; | |
31870 | ||
31871 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 ); | |
31872 | return pyobj; | |
31873 | } | |
31874 | ||
31875 | ||
31876 | SWIGINTERN int NullFont_set(PyObject *) { | |
31877 | SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only."); | |
31878 | return 1; | |
31879 | } | |
31880 | ||
31881 | ||
31882 | SWIGINTERN PyObject *NullFont_get(void) { | |
31883 | PyObject *pyobj = 0; | |
31884 | ||
31885 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 ); | |
31886 | return pyobj; | |
31887 | } | |
31888 | ||
31889 | ||
31890 | SWIGINTERN int NullColour_set(PyObject *) { | |
31891 | SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only."); | |
31892 | return 1; | |
31893 | } | |
31894 | ||
31895 | ||
31896 | SWIGINTERN PyObject *NullColour_get(void) { | |
31897 | PyObject *pyobj = 0; | |
31898 | ||
31899 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 ); | |
31900 | return pyobj; | |
31901 | } | |
31902 | ||
31903 | ||
50efceee | 31904 | SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 31905 | PyObject *resultobj = 0; |
50efceee RD |
31906 | wxGDIObjListBase *result = 0 ; |
31907 | ||
31908 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail; | |
31909 | { | |
31910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31911 | result = (wxGDIObjListBase *)new wxGDIObjListBase(); | |
31912 | wxPyEndAllowThreads(__tstate); | |
31913 | if (PyErr_Occurred()) SWIG_fail; | |
31914 | } | |
31915 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 ); | |
31916 | return resultobj; | |
31917 | fail: | |
31918 | return NULL; | |
31919 | } | |
31920 | ||
31921 | ||
31922 | SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31923 | PyObject *resultobj = 0; | |
31924 | wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ; | |
0085ce49 RD |
31925 | void *argp1 = 0 ; |
31926 | int res1 = 0 ; | |
50efceee | 31927 | PyObject *swig_obj[1] ; |
0085ce49 | 31928 | |
50efceee RD |
31929 | if (!args) SWIG_fail; |
31930 | swig_obj[0] = args; | |
31931 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 ); | |
0085ce49 | 31932 | if (!SWIG_IsOK(res1)) { |
50efceee | 31933 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'"); |
0085ce49 | 31934 | } |
50efceee | 31935 | arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1); |
0085ce49 RD |
31936 | { |
31937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee RD |
31938 | delete arg1; |
31939 | ||
0085ce49 RD |
31940 | wxPyEndAllowThreads(__tstate); |
31941 | if (PyErr_Occurred()) SWIG_fail; | |
31942 | } | |
31943 | resultobj = SWIG_Py_Void(); | |
31944 | return resultobj; | |
31945 | fail: | |
31946 | return NULL; | |
31947 | } | |
31948 | ||
31949 | ||
50efceee RD |
31950 | SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31951 | PyObject *obj; | |
31952 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31953 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj)); | |
31954 | return SWIG_Py_Void(); | |
31955 | } | |
31956 | ||
31957 | SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31958 | return SWIG_Python_InitShadowInstance(args); | |
31959 | } | |
31960 | ||
0085ce49 RD |
31961 | SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31962 | PyObject *resultobj = 0; | |
31963 | wxPenList *arg1 = (wxPenList *) 0 ; | |
31964 | wxColour *arg2 = 0 ; | |
31965 | int arg3 ; | |
31966 | int arg4 ; | |
31967 | wxPen *result = 0 ; | |
31968 | void *argp1 = 0 ; | |
31969 | int res1 = 0 ; | |
31970 | wxColour temp2 ; | |
31971 | int val3 ; | |
31972 | int ecode3 = 0 ; | |
31973 | int val4 ; | |
31974 | int ecode4 = 0 ; | |
31975 | PyObject * obj0 = 0 ; | |
31976 | PyObject * obj1 = 0 ; | |
31977 | PyObject * obj2 = 0 ; | |
31978 | PyObject * obj3 = 0 ; | |
31979 | char * kwnames[] = { | |
31980 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
31981 | }; | |
31982 | ||
31983 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
31984 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
31985 | if (!SWIG_IsOK(res1)) { | |
31986 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'"); | |
31987 | } | |
31988 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
31989 | { | |
31990 | arg2 = &temp2; | |
31991 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
31992 | } | |
31993 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31994 | if (!SWIG_IsOK(ecode3)) { | |
31995 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'"); | |
31996 | } | |
31997 | arg3 = static_cast< int >(val3); | |
31998 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31999 | if (!SWIG_IsOK(ecode4)) { | |
32000 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'"); | |
32001 | } | |
32002 | arg4 = static_cast< int >(val4); | |
32003 | { | |
32004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32005 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
32006 | wxPyEndAllowThreads(__tstate); | |
32007 | if (PyErr_Occurred()) SWIG_fail; | |
32008 | } | |
32009 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
32010 | return resultobj; | |
32011 | fail: | |
32012 | return NULL; | |
32013 | } | |
32014 | ||
32015 | ||
50efceee | 32016 | SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
32017 | PyObject *resultobj = 0; |
32018 | wxPenList *arg1 = (wxPenList *) 0 ; | |
32019 | wxPen *arg2 = (wxPen *) 0 ; | |
32020 | void *argp1 = 0 ; | |
32021 | int res1 = 0 ; | |
32022 | void *argp2 = 0 ; | |
32023 | int res2 = 0 ; | |
32024 | PyObject * obj0 = 0 ; | |
32025 | PyObject * obj1 = 0 ; | |
32026 | char * kwnames[] = { | |
32027 | (char *) "self",(char *) "pen", NULL | |
32028 | }; | |
32029 | ||
50efceee | 32030 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail; |
0085ce49 RD |
32031 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); |
32032 | if (!SWIG_IsOK(res1)) { | |
50efceee | 32033 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'"); |
0085ce49 RD |
32034 | } |
32035 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
32036 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
32037 | if (!SWIG_IsOK(res2)) { | |
50efceee | 32038 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'"); |
0085ce49 RD |
32039 | } |
32040 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
32041 | { | |
32042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32043 | (arg1)->AddPen(arg2); |
0085ce49 RD |
32044 | wxPyEndAllowThreads(__tstate); |
32045 | if (PyErr_Occurred()) SWIG_fail; | |
32046 | } | |
32047 | resultobj = SWIG_Py_Void(); | |
32048 | return resultobj; | |
32049 | fail: | |
32050 | return NULL; | |
32051 | } | |
32052 | ||
32053 | ||
50efceee | 32054 | SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
32055 | PyObject *resultobj = 0; |
32056 | wxPenList *arg1 = (wxPenList *) 0 ; | |
50efceee | 32057 | wxPen *arg2 = (wxPen *) 0 ; |
0085ce49 RD |
32058 | void *argp1 = 0 ; |
32059 | int res1 = 0 ; | |
50efceee RD |
32060 | void *argp2 = 0 ; |
32061 | int res2 = 0 ; | |
32062 | PyObject * obj0 = 0 ; | |
32063 | PyObject * obj1 = 0 ; | |
32064 | char * kwnames[] = { | |
32065 | (char *) "self",(char *) "pen", NULL | |
32066 | }; | |
0085ce49 | 32067 | |
50efceee RD |
32068 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail; |
32069 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
0085ce49 | 32070 | if (!SWIG_IsOK(res1)) { |
50efceee | 32071 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'"); |
0085ce49 RD |
32072 | } |
32073 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
50efceee RD |
32074 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); |
32075 | if (!SWIG_IsOK(res2)) { | |
32076 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'"); | |
32077 | } | |
32078 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
0085ce49 RD |
32079 | { |
32080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32081 | (arg1)->RemovePen(arg2); |
0085ce49 RD |
32082 | wxPyEndAllowThreads(__tstate); |
32083 | if (PyErr_Occurred()) SWIG_fail; | |
32084 | } | |
50efceee | 32085 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
32086 | return resultobj; |
32087 | fail: | |
32088 | return NULL; | |
32089 | } | |
32090 | ||
32091 | ||
32092 | SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32093 | PyObject *obj; | |
32094 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32095 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj)); | |
32096 | return SWIG_Py_Void(); | |
32097 | } | |
32098 | ||
50efceee RD |
32099 | SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32100 | PyObject *resultobj = 0; | |
32101 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
32102 | wxColour *arg2 = 0 ; | |
32103 | int arg3 = (int) wxSOLID ; | |
32104 | wxBrush *result = 0 ; | |
32105 | void *argp1 = 0 ; | |
32106 | int res1 = 0 ; | |
32107 | wxColour temp2 ; | |
32108 | int val3 ; | |
32109 | int ecode3 = 0 ; | |
32110 | PyObject * obj0 = 0 ; | |
32111 | PyObject * obj1 = 0 ; | |
32112 | PyObject * obj2 = 0 ; | |
32113 | char * kwnames[] = { | |
32114 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
32115 | }; | |
32116 | ||
32117 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32118 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
32119 | if (!SWIG_IsOK(res1)) { | |
32120 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
32121 | } | |
32122 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
32123 | { | |
32124 | arg2 = &temp2; | |
32125 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32126 | } | |
32127 | if (obj2) { | |
32128 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32129 | if (!SWIG_IsOK(ecode3)) { | |
32130 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'"); | |
32131 | } | |
32132 | arg3 = static_cast< int >(val3); | |
32133 | } | |
32134 | { | |
32135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32136 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
32137 | wxPyEndAllowThreads(__tstate); | |
32138 | if (PyErr_Occurred()) SWIG_fail; | |
32139 | } | |
32140 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
32141 | return resultobj; | |
32142 | fail: | |
32143 | return NULL; | |
32144 | } | |
32145 | ||
32146 | ||
0085ce49 RD |
32147 | SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32148 | PyObject *resultobj = 0; | |
32149 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
32150 | wxBrush *arg2 = (wxBrush *) 0 ; | |
32151 | void *argp1 = 0 ; | |
32152 | int res1 = 0 ; | |
32153 | void *argp2 = 0 ; | |
32154 | int res2 = 0 ; | |
32155 | PyObject * obj0 = 0 ; | |
32156 | PyObject * obj1 = 0 ; | |
32157 | char * kwnames[] = { | |
32158 | (char *) "self",(char *) "brush", NULL | |
32159 | }; | |
32160 | ||
32161 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
32162 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
32163 | if (!SWIG_IsOK(res1)) { | |
32164 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
32165 | } | |
32166 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
32167 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
32168 | if (!SWIG_IsOK(res2)) { | |
32169 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
32170 | } | |
32171 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
32172 | { | |
32173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32174 | (arg1)->AddBrush(arg2); | |
32175 | wxPyEndAllowThreads(__tstate); | |
32176 | if (PyErr_Occurred()) SWIG_fail; | |
32177 | } | |
32178 | resultobj = SWIG_Py_Void(); | |
32179 | return resultobj; | |
32180 | fail: | |
32181 | return NULL; | |
32182 | } | |
32183 | ||
32184 | ||
50efceee | 32185 | SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
32186 | PyObject *resultobj = 0; |
32187 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
50efceee | 32188 | wxBrush *arg2 = (wxBrush *) 0 ; |
0085ce49 RD |
32189 | void *argp1 = 0 ; |
32190 | int res1 = 0 ; | |
50efceee RD |
32191 | void *argp2 = 0 ; |
32192 | int res2 = 0 ; | |
32193 | PyObject * obj0 = 0 ; | |
32194 | PyObject * obj1 = 0 ; | |
32195 | char * kwnames[] = { | |
32196 | (char *) "self",(char *) "brush", NULL | |
32197 | }; | |
32198 | ||
32199 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
32200 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
32201 | if (!SWIG_IsOK(res1)) { | |
32202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
32203 | } | |
32204 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
32205 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
32206 | if (!SWIG_IsOK(res2)) { | |
32207 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
32208 | } | |
32209 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
32210 | { | |
32211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32212 | (arg1)->RemoveBrush(arg2); | |
32213 | wxPyEndAllowThreads(__tstate); | |
32214 | if (PyErr_Occurred()) SWIG_fail; | |
32215 | } | |
32216 | resultobj = SWIG_Py_Void(); | |
32217 | return resultobj; | |
32218 | fail: | |
32219 | return NULL; | |
32220 | } | |
32221 | ||
32222 | ||
32223 | SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32224 | PyObject *obj; | |
32225 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32226 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj)); | |
32227 | return SWIG_Py_Void(); | |
32228 | } | |
32229 | ||
32230 | SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32231 | PyObject *resultobj = 0; | |
32232 | wxFontList *arg1 = (wxFontList *) 0 ; | |
32233 | int arg2 ; | |
32234 | int arg3 ; | |
32235 | int arg4 ; | |
32236 | int arg5 ; | |
32237 | bool arg6 = (bool) false ; | |
32238 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
32239 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
32240 | wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
32241 | wxFont *result = 0 ; | |
32242 | void *argp1 = 0 ; | |
32243 | int res1 = 0 ; | |
32244 | int val2 ; | |
32245 | int ecode2 = 0 ; | |
0085ce49 RD |
32246 | int val3 ; |
32247 | int ecode3 = 0 ; | |
50efceee RD |
32248 | int val4 ; |
32249 | int ecode4 = 0 ; | |
32250 | int val5 ; | |
32251 | int ecode5 = 0 ; | |
32252 | bool val6 ; | |
32253 | int ecode6 = 0 ; | |
32254 | bool temp7 = false ; | |
32255 | int val8 ; | |
32256 | int ecode8 = 0 ; | |
0085ce49 RD |
32257 | PyObject * obj0 = 0 ; |
32258 | PyObject * obj1 = 0 ; | |
32259 | PyObject * obj2 = 0 ; | |
50efceee RD |
32260 | PyObject * obj3 = 0 ; |
32261 | PyObject * obj4 = 0 ; | |
32262 | PyObject * obj5 = 0 ; | |
32263 | PyObject * obj6 = 0 ; | |
32264 | PyObject * obj7 = 0 ; | |
0085ce49 | 32265 | char * kwnames[] = { |
50efceee | 32266 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL |
0085ce49 RD |
32267 | }; |
32268 | ||
50efceee RD |
32269 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
32270 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
0085ce49 | 32271 | if (!SWIG_IsOK(res1)) { |
50efceee | 32272 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
0085ce49 | 32273 | } |
50efceee RD |
32274 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
32275 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32276 | if (!SWIG_IsOK(ecode2)) { | |
32277 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'"); | |
32278 | } | |
32279 | arg2 = static_cast< int >(val2); | |
32280 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32281 | if (!SWIG_IsOK(ecode3)) { | |
32282 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'"); | |
32283 | } | |
32284 | arg3 = static_cast< int >(val3); | |
32285 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
32286 | if (!SWIG_IsOK(ecode4)) { | |
32287 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'"); | |
32288 | } | |
32289 | arg4 = static_cast< int >(val4); | |
32290 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
32291 | if (!SWIG_IsOK(ecode5)) { | |
32292 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'"); | |
32293 | } | |
32294 | arg5 = static_cast< int >(val5); | |
32295 | if (obj5) { | |
32296 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
32297 | if (!SWIG_IsOK(ecode6)) { | |
32298 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'"); | |
32299 | } | |
32300 | arg6 = static_cast< bool >(val6); | |
0085ce49 | 32301 | } |
50efceee RD |
32302 | if (obj6) { |
32303 | { | |
32304 | arg7 = wxString_in_helper(obj6); | |
32305 | if (arg7 == NULL) SWIG_fail; | |
32306 | temp7 = true; | |
32307 | } | |
32308 | } | |
32309 | if (obj7) { | |
32310 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
32311 | if (!SWIG_IsOK(ecode8)) { | |
32312 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'"); | |
0085ce49 | 32313 | } |
50efceee | 32314 | arg8 = static_cast< wxFontEncoding >(val8); |
0085ce49 RD |
32315 | } |
32316 | { | |
32317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32318 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8); |
0085ce49 RD |
32319 | wxPyEndAllowThreads(__tstate); |
32320 | if (PyErr_Occurred()) SWIG_fail; | |
32321 | } | |
50efceee RD |
32322 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); |
32323 | { | |
32324 | if (temp7) | |
32325 | delete arg7; | |
32326 | } | |
0085ce49 RD |
32327 | return resultobj; |
32328 | fail: | |
50efceee RD |
32329 | { |
32330 | if (temp7) | |
32331 | delete arg7; | |
32332 | } | |
0085ce49 RD |
32333 | return NULL; |
32334 | } | |
32335 | ||
32336 | ||
50efceee | 32337 | SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 32338 | PyObject *resultobj = 0; |
50efceee RD |
32339 | wxFontList *arg1 = (wxFontList *) 0 ; |
32340 | wxFont *arg2 = (wxFont *) 0 ; | |
0085ce49 RD |
32341 | void *argp1 = 0 ; |
32342 | int res1 = 0 ; | |
32343 | void *argp2 = 0 ; | |
32344 | int res2 = 0 ; | |
32345 | PyObject * obj0 = 0 ; | |
32346 | PyObject * obj1 = 0 ; | |
32347 | char * kwnames[] = { | |
50efceee | 32348 | (char *) "self",(char *) "font", NULL |
0085ce49 RD |
32349 | }; |
32350 | ||
50efceee RD |
32351 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail; |
32352 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
0085ce49 | 32353 | if (!SWIG_IsOK(res1)) { |
50efceee | 32354 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
0085ce49 | 32355 | } |
50efceee RD |
32356 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
32357 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
0085ce49 | 32358 | if (!SWIG_IsOK(res2)) { |
50efceee | 32359 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'"); |
0085ce49 | 32360 | } |
50efceee | 32361 | arg2 = reinterpret_cast< wxFont * >(argp2); |
0085ce49 RD |
32362 | { |
32363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32364 | (arg1)->AddFont(arg2); |
0085ce49 RD |
32365 | wxPyEndAllowThreads(__tstate); |
32366 | if (PyErr_Occurred()) SWIG_fail; | |
32367 | } | |
32368 | resultobj = SWIG_Py_Void(); | |
32369 | return resultobj; | |
32370 | fail: | |
32371 | return NULL; | |
32372 | } | |
32373 | ||
32374 | ||
50efceee | 32375 | SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 32376 | PyObject *resultobj = 0; |
50efceee RD |
32377 | wxFontList *arg1 = (wxFontList *) 0 ; |
32378 | wxFont *arg2 = (wxFont *) 0 ; | |
0085ce49 RD |
32379 | void *argp1 = 0 ; |
32380 | int res1 = 0 ; | |
50efceee RD |
32381 | void *argp2 = 0 ; |
32382 | int res2 = 0 ; | |
32383 | PyObject * obj0 = 0 ; | |
32384 | PyObject * obj1 = 0 ; | |
32385 | char * kwnames[] = { | |
32386 | (char *) "self",(char *) "font", NULL | |
32387 | }; | |
0085ce49 | 32388 | |
50efceee RD |
32389 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail; |
32390 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
0085ce49 | 32391 | if (!SWIG_IsOK(res1)) { |
50efceee | 32392 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
0085ce49 | 32393 | } |
50efceee RD |
32394 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
32395 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
32396 | if (!SWIG_IsOK(res2)) { | |
32397 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'"); | |
32398 | } | |
32399 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
0085ce49 RD |
32400 | { |
32401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32402 | (arg1)->RemoveFont(arg2); |
0085ce49 RD |
32403 | wxPyEndAllowThreads(__tstate); |
32404 | if (PyErr_Occurred()) SWIG_fail; | |
32405 | } | |
50efceee | 32406 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
32407 | return resultobj; |
32408 | fail: | |
32409 | return NULL; | |
32410 | } | |
32411 | ||
32412 | ||
50efceee | 32413 | SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
32414 | PyObject *obj; |
32415 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
50efceee | 32416 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj)); |
0085ce49 RD |
32417 | return SWIG_Py_Void(); |
32418 | } | |
32419 | ||
32420 | SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32421 | PyObject *resultobj = 0; | |
32422 | wxColourDatabase *result = 0 ; | |
32423 | ||
32424 | if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail; | |
32425 | { | |
32426 | if (!wxPyCheckForApp()) SWIG_fail; | |
32427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32428 | result = (wxColourDatabase *)new wxColourDatabase(); | |
32429 | wxPyEndAllowThreads(__tstate); | |
32430 | if (PyErr_Occurred()) SWIG_fail; | |
32431 | } | |
32432 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 ); | |
32433 | return resultobj; | |
32434 | fail: | |
32435 | return NULL; | |
32436 | } | |
32437 | ||
32438 | ||
32439 | SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32440 | PyObject *resultobj = 0; | |
32441 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32442 | void *argp1 = 0 ; | |
32443 | int res1 = 0 ; | |
32444 | PyObject *swig_obj[1] ; | |
32445 | ||
32446 | if (!args) SWIG_fail; | |
32447 | swig_obj[0] = args; | |
32448 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 ); | |
32449 | if (!SWIG_IsOK(res1)) { | |
32450 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
32451 | } | |
32452 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32453 | { | |
32454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32455 | delete arg1; | |
32456 | ||
32457 | wxPyEndAllowThreads(__tstate); | |
32458 | if (PyErr_Occurred()) SWIG_fail; | |
32459 | } | |
32460 | resultobj = SWIG_Py_Void(); | |
32461 | return resultobj; | |
32462 | fail: | |
32463 | return NULL; | |
32464 | } | |
32465 | ||
32466 | ||
32467 | SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32468 | PyObject *resultobj = 0; | |
32469 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32470 | wxString *arg2 = 0 ; | |
32471 | wxColour result; | |
32472 | void *argp1 = 0 ; | |
32473 | int res1 = 0 ; | |
32474 | bool temp2 = false ; | |
32475 | PyObject * obj0 = 0 ; | |
32476 | PyObject * obj1 = 0 ; | |
32477 | char * kwnames[] = { | |
32478 | (char *) "self",(char *) "name", NULL | |
32479 | }; | |
32480 | ||
32481 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail; | |
32482 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
32483 | if (!SWIG_IsOK(res1)) { | |
32484 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
32485 | } | |
32486 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32487 | { | |
32488 | arg2 = wxString_in_helper(obj1); | |
32489 | if (arg2 == NULL) SWIG_fail; | |
32490 | temp2 = true; | |
32491 | } | |
32492 | { | |
32493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32494 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
32495 | wxPyEndAllowThreads(__tstate); | |
32496 | if (PyErr_Occurred()) SWIG_fail; | |
32497 | } | |
32498 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32499 | { | |
32500 | if (temp2) | |
32501 | delete arg2; | |
32502 | } | |
32503 | return resultobj; | |
32504 | fail: | |
32505 | { | |
32506 | if (temp2) | |
32507 | delete arg2; | |
32508 | } | |
32509 | return NULL; | |
32510 | } | |
32511 | ||
32512 | ||
32513 | SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32514 | PyObject *resultobj = 0; | |
32515 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32516 | wxColour *arg2 = 0 ; | |
32517 | wxString result; | |
32518 | void *argp1 = 0 ; | |
32519 | int res1 = 0 ; | |
32520 | wxColour temp2 ; | |
32521 | PyObject * obj0 = 0 ; | |
32522 | PyObject * obj1 = 0 ; | |
32523 | char * kwnames[] = { | |
32524 | (char *) "self",(char *) "colour", NULL | |
32525 | }; | |
32526 | ||
32527 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail; | |
32528 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
32529 | if (!SWIG_IsOK(res1)) { | |
32530 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
32531 | } | |
32532 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32533 | { | |
32534 | arg2 = &temp2; | |
32535 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32536 | } | |
32537 | { | |
32538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32539 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
32540 | wxPyEndAllowThreads(__tstate); | |
32541 | if (PyErr_Occurred()) SWIG_fail; | |
32542 | } | |
32543 | { | |
32544 | #if wxUSE_UNICODE | |
32545 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32546 | #else | |
32547 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32548 | #endif | |
32549 | } | |
32550 | return resultobj; | |
32551 | fail: | |
32552 | return NULL; | |
32553 | } | |
32554 | ||
32555 | ||
32556 | SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32557 | PyObject *resultobj = 0; | |
32558 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32559 | wxString *arg2 = 0 ; | |
32560 | wxColour *arg3 = 0 ; | |
32561 | void *argp1 = 0 ; | |
32562 | int res1 = 0 ; | |
32563 | bool temp2 = false ; | |
32564 | wxColour temp3 ; | |
32565 | PyObject * obj0 = 0 ; | |
32566 | PyObject * obj1 = 0 ; | |
32567 | PyObject * obj2 = 0 ; | |
32568 | char * kwnames[] = { | |
32569 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
32570 | }; | |
32571 | ||
32572 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32573 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
32574 | if (!SWIG_IsOK(res1)) { | |
32575 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
32576 | } | |
32577 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32578 | { | |
32579 | arg2 = wxString_in_helper(obj1); | |
32580 | if (arg2 == NULL) SWIG_fail; | |
32581 | temp2 = true; | |
32582 | } | |
32583 | { | |
32584 | arg3 = &temp3; | |
32585 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
32586 | } | |
32587 | { | |
32588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32589 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
32590 | wxPyEndAllowThreads(__tstate); | |
32591 | if (PyErr_Occurred()) SWIG_fail; | |
32592 | } | |
32593 | resultobj = SWIG_Py_Void(); | |
32594 | { | |
32595 | if (temp2) | |
32596 | delete arg2; | |
32597 | } | |
32598 | return resultobj; | |
32599 | fail: | |
32600 | { | |
32601 | if (temp2) | |
32602 | delete arg2; | |
32603 | } | |
32604 | return NULL; | |
32605 | } | |
32606 | ||
32607 | ||
32608 | SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32609 | PyObject *resultobj = 0; | |
32610 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32611 | wxString *arg2 = 0 ; | |
32612 | int arg3 ; | |
32613 | int arg4 ; | |
32614 | int arg5 ; | |
32615 | void *argp1 = 0 ; | |
32616 | int res1 = 0 ; | |
32617 | bool temp2 = false ; | |
32618 | int val3 ; | |
32619 | int ecode3 = 0 ; | |
32620 | int val4 ; | |
32621 | int ecode4 = 0 ; | |
50efceee RD |
32622 | int val5 ; |
32623 | int ecode5 = 0 ; | |
0085ce49 RD |
32624 | PyObject * obj0 = 0 ; |
32625 | PyObject * obj1 = 0 ; | |
32626 | PyObject * obj2 = 0 ; | |
32627 | PyObject * obj3 = 0 ; | |
32628 | PyObject * obj4 = 0 ; | |
0085ce49 | 32629 | char * kwnames[] = { |
50efceee | 32630 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL |
0085ce49 RD |
32631 | }; |
32632 | ||
50efceee RD |
32633 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
32634 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
0085ce49 | 32635 | if (!SWIG_IsOK(res1)) { |
50efceee RD |
32636 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); |
32637 | } | |
32638 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32639 | { | |
32640 | arg2 = wxString_in_helper(obj1); | |
32641 | if (arg2 == NULL) SWIG_fail; | |
32642 | temp2 = true; | |
0085ce49 | 32643 | } |
0085ce49 RD |
32644 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
32645 | if (!SWIG_IsOK(ecode3)) { | |
50efceee | 32646 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'"); |
0085ce49 RD |
32647 | } |
32648 | arg3 = static_cast< int >(val3); | |
32649 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
32650 | if (!SWIG_IsOK(ecode4)) { | |
50efceee | 32651 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'"); |
0085ce49 RD |
32652 | } |
32653 | arg4 = static_cast< int >(val4); | |
32654 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
32655 | if (!SWIG_IsOK(ecode5)) { | |
50efceee | 32656 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'"); |
0085ce49 RD |
32657 | } |
32658 | arg5 = static_cast< int >(val5); | |
0085ce49 RD |
32659 | { |
32660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32661 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); |
0085ce49 RD |
32662 | wxPyEndAllowThreads(__tstate); |
32663 | if (PyErr_Occurred()) SWIG_fail; | |
32664 | } | |
50efceee | 32665 | resultobj = SWIG_Py_Void(); |
0085ce49 | 32666 | { |
50efceee RD |
32667 | if (temp2) |
32668 | delete arg2; | |
0085ce49 RD |
32669 | } |
32670 | return resultobj; | |
32671 | fail: | |
32672 | { | |
50efceee RD |
32673 | if (temp2) |
32674 | delete arg2; | |
0085ce49 RD |
32675 | } |
32676 | return NULL; | |
32677 | } | |
32678 | ||
32679 | ||
50efceee RD |
32680 | SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32681 | PyObject *obj; | |
32682 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32683 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj)); | |
32684 | return SWIG_Py_Void(); | |
32685 | } | |
32686 | ||
32687 | SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32688 | return SWIG_Python_InitShadowInstance(args); | |
32689 | } | |
32690 | ||
32691 | SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
0085ce49 | 32692 | PyObject *resultobj = 0; |
50efceee | 32693 | wxFontList *result = 0 ; |
0085ce49 | 32694 | |
50efceee | 32695 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail; |
0085ce49 RD |
32696 | { |
32697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32698 | result = (wxFontList *)_wxPyInitTheFontList(); |
0085ce49 RD |
32699 | wxPyEndAllowThreads(__tstate); |
32700 | if (PyErr_Occurred()) SWIG_fail; | |
32701 | } | |
50efceee | 32702 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 ); |
0085ce49 RD |
32703 | return resultobj; |
32704 | fail: | |
32705 | return NULL; | |
32706 | } | |
32707 | ||
32708 | ||
50efceee | 32709 | SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 32710 | PyObject *resultobj = 0; |
50efceee | 32711 | wxPenList *result = 0 ; |
0085ce49 | 32712 | |
50efceee | 32713 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail; |
0085ce49 RD |
32714 | { |
32715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32716 | result = (wxPenList *)_wxPyInitThePenList(); |
0085ce49 RD |
32717 | wxPyEndAllowThreads(__tstate); |
32718 | if (PyErr_Occurred()) SWIG_fail; | |
32719 | } | |
50efceee | 32720 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 ); |
0085ce49 RD |
32721 | return resultobj; |
32722 | fail: | |
32723 | return NULL; | |
32724 | } | |
32725 | ||
32726 | ||
50efceee RD |
32727 | SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32728 | PyObject *resultobj = 0; | |
32729 | wxBrushList *result = 0 ; | |
0085ce49 | 32730 | |
50efceee RD |
32731 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail; |
32732 | { | |
32733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32734 | result = (wxBrushList *)_wxPyInitTheBrushList(); | |
32735 | wxPyEndAllowThreads(__tstate); | |
32736 | if (PyErr_Occurred()) SWIG_fail; | |
32737 | } | |
32738 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
32739 | return resultobj; | |
32740 | fail: | |
32741 | return NULL; | |
0085ce49 RD |
32742 | } |
32743 | ||
32744 | ||
50efceee RD |
32745 | SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32746 | PyObject *resultobj = 0; | |
32747 | wxColourDatabase *result = 0 ; | |
0085ce49 | 32748 | |
50efceee RD |
32749 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail; |
32750 | { | |
32751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32752 | result = (wxColourDatabase *)_wxPyInitTheColourDatabase(); | |
32753 | wxPyEndAllowThreads(__tstate); | |
32754 | if (PyErr_Occurred()) SWIG_fail; | |
32755 | } | |
32756 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
32757 | return resultobj; | |
32758 | fail: | |
32759 | return NULL; | |
0085ce49 RD |
32760 | } |
32761 | ||
32762 | ||
32763 | SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32764 | PyObject *resultobj = 0; | |
32765 | wxEffects *result = 0 ; | |
32766 | ||
32767 | if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail; | |
32768 | { | |
32769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32770 | result = (wxEffects *)new wxEffects(); | |
32771 | wxPyEndAllowThreads(__tstate); | |
32772 | if (PyErr_Occurred()) SWIG_fail; | |
32773 | } | |
32774 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 ); | |
32775 | return resultobj; | |
32776 | fail: | |
32777 | return NULL; | |
32778 | } | |
32779 | ||
32780 | ||
32781 | SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32782 | PyObject *resultobj = 0; | |
32783 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32784 | wxColour result; | |
32785 | void *argp1 = 0 ; | |
32786 | int res1 = 0 ; | |
32787 | PyObject *swig_obj[1] ; | |
32788 | ||
32789 | if (!args) SWIG_fail; | |
32790 | swig_obj[0] = args; | |
32791 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32792 | if (!SWIG_IsOK(res1)) { | |
32793 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
32794 | } | |
32795 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32796 | { | |
32797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32798 | result = ((wxEffects const *)arg1)->GetHighlightColour(); | |
32799 | wxPyEndAllowThreads(__tstate); | |
32800 | if (PyErr_Occurred()) SWIG_fail; | |
32801 | } | |
32802 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32803 | return resultobj; | |
32804 | fail: | |
32805 | return NULL; | |
32806 | } | |
32807 | ||
32808 | ||
32809 | SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32810 | PyObject *resultobj = 0; | |
32811 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32812 | wxColour result; | |
32813 | void *argp1 = 0 ; | |
32814 | int res1 = 0 ; | |
32815 | PyObject *swig_obj[1] ; | |
32816 | ||
32817 | if (!args) SWIG_fail; | |
32818 | swig_obj[0] = args; | |
32819 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32820 | if (!SWIG_IsOK(res1)) { | |
32821 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
32822 | } | |
32823 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32824 | { | |
32825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32826 | result = ((wxEffects const *)arg1)->GetLightShadow(); | |
32827 | wxPyEndAllowThreads(__tstate); | |
32828 | if (PyErr_Occurred()) SWIG_fail; | |
32829 | } | |
32830 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32831 | return resultobj; | |
32832 | fail: | |
32833 | return NULL; | |
32834 | } | |
32835 | ||
32836 | ||
32837 | SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32838 | PyObject *resultobj = 0; | |
32839 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32840 | wxColour result; | |
32841 | void *argp1 = 0 ; | |
32842 | int res1 = 0 ; | |
32843 | PyObject *swig_obj[1] ; | |
32844 | ||
32845 | if (!args) SWIG_fail; | |
32846 | swig_obj[0] = args; | |
32847 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32848 | if (!SWIG_IsOK(res1)) { | |
32849 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
32850 | } | |
32851 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32852 | { | |
32853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32854 | result = ((wxEffects const *)arg1)->GetFaceColour(); | |
32855 | wxPyEndAllowThreads(__tstate); | |
32856 | if (PyErr_Occurred()) SWIG_fail; | |
32857 | } | |
32858 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32859 | return resultobj; | |
32860 | fail: | |
32861 | return NULL; | |
32862 | } | |
32863 | ||
32864 | ||
32865 | SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32866 | PyObject *resultobj = 0; | |
32867 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32868 | wxColour result; | |
32869 | void *argp1 = 0 ; | |
32870 | int res1 = 0 ; | |
32871 | PyObject *swig_obj[1] ; | |
32872 | ||
32873 | if (!args) SWIG_fail; | |
32874 | swig_obj[0] = args; | |
32875 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32876 | if (!SWIG_IsOK(res1)) { | |
32877 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
32878 | } | |
32879 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32880 | { | |
32881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32882 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
32883 | wxPyEndAllowThreads(__tstate); | |
32884 | if (PyErr_Occurred()) SWIG_fail; | |
32885 | } | |
32886 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32887 | return resultobj; | |
32888 | fail: | |
32889 | return NULL; | |
32890 | } | |
32891 | ||
32892 | ||
32893 | SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32894 | PyObject *resultobj = 0; | |
32895 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32896 | wxColour result; | |
32897 | void *argp1 = 0 ; | |
32898 | int res1 = 0 ; | |
32899 | PyObject *swig_obj[1] ; | |
32900 | ||
32901 | if (!args) SWIG_fail; | |
32902 | swig_obj[0] = args; | |
32903 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32904 | if (!SWIG_IsOK(res1)) { | |
32905 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
32906 | } | |
32907 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32908 | { | |
32909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32910 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
32911 | wxPyEndAllowThreads(__tstate); | |
32912 | if (PyErr_Occurred()) SWIG_fail; | |
32913 | } | |
32914 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32915 | return resultobj; | |
32916 | fail: | |
32917 | return NULL; | |
32918 | } | |
32919 | ||
32920 | ||
32921 | SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32922 | PyObject *resultobj = 0; | |
32923 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32924 | wxColour *arg2 = 0 ; | |
32925 | void *argp1 = 0 ; | |
32926 | int res1 = 0 ; | |
32927 | wxColour temp2 ; | |
32928 | PyObject * obj0 = 0 ; | |
32929 | PyObject * obj1 = 0 ; | |
32930 | char * kwnames[] = { | |
32931 | (char *) "self",(char *) "c", NULL | |
32932 | }; | |
32933 | ||
32934 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
32935 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32936 | if (!SWIG_IsOK(res1)) { | |
32937 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
32938 | } | |
32939 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32940 | { | |
32941 | arg2 = &temp2; | |
32942 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32943 | } | |
32944 | { | |
32945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32946 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
32947 | wxPyEndAllowThreads(__tstate); | |
32948 | if (PyErr_Occurred()) SWIG_fail; | |
32949 | } | |
32950 | resultobj = SWIG_Py_Void(); | |
32951 | return resultobj; | |
32952 | fail: | |
32953 | return NULL; | |
32954 | } | |
32955 | ||
32956 | ||
32957 | SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32958 | PyObject *resultobj = 0; | |
32959 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32960 | wxColour *arg2 = 0 ; | |
32961 | void *argp1 = 0 ; | |
32962 | int res1 = 0 ; | |
32963 | wxColour temp2 ; | |
32964 | PyObject * obj0 = 0 ; | |
32965 | PyObject * obj1 = 0 ; | |
32966 | char * kwnames[] = { | |
32967 | (char *) "self",(char *) "c", NULL | |
32968 | }; | |
32969 | ||
32970 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
32971 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32972 | if (!SWIG_IsOK(res1)) { | |
32973 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
32974 | } | |
32975 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32976 | { | |
32977 | arg2 = &temp2; | |
32978 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32979 | } | |
32980 | { | |
32981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32982 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
32983 | wxPyEndAllowThreads(__tstate); | |
32984 | if (PyErr_Occurred()) SWIG_fail; | |
32985 | } | |
32986 | resultobj = SWIG_Py_Void(); | |
32987 | return resultobj; | |
32988 | fail: | |
32989 | return NULL; | |
32990 | } | |
32991 | ||
32992 | ||
32993 | SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32994 | PyObject *resultobj = 0; | |
32995 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32996 | wxColour *arg2 = 0 ; | |
32997 | void *argp1 = 0 ; | |
32998 | int res1 = 0 ; | |
32999 | wxColour temp2 ; | |
33000 | PyObject * obj0 = 0 ; | |
33001 | PyObject * obj1 = 0 ; | |
33002 | char * kwnames[] = { | |
33003 | (char *) "self",(char *) "c", NULL | |
33004 | }; | |
33005 | ||
33006 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
33007 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33008 | if (!SWIG_IsOK(res1)) { | |
33009 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33010 | } | |
33011 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33012 | { | |
33013 | arg2 = &temp2; | |
33014 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33015 | } | |
33016 | { | |
33017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33018 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
33019 | wxPyEndAllowThreads(__tstate); | |
33020 | if (PyErr_Occurred()) SWIG_fail; | |
33021 | } | |
33022 | resultobj = SWIG_Py_Void(); | |
33023 | return resultobj; | |
33024 | fail: | |
33025 | return NULL; | |
33026 | } | |
33027 | ||
33028 | ||
33029 | SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33030 | PyObject *resultobj = 0; | |
33031 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33032 | wxColour *arg2 = 0 ; | |
33033 | void *argp1 = 0 ; | |
33034 | int res1 = 0 ; | |
33035 | wxColour temp2 ; | |
33036 | PyObject * obj0 = 0 ; | |
33037 | PyObject * obj1 = 0 ; | |
33038 | char * kwnames[] = { | |
33039 | (char *) "self",(char *) "c", NULL | |
33040 | }; | |
33041 | ||
33042 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
33043 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33044 | if (!SWIG_IsOK(res1)) { | |
33045 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33046 | } | |
33047 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33048 | { | |
33049 | arg2 = &temp2; | |
33050 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33051 | } | |
33052 | { | |
33053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33054 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
33055 | wxPyEndAllowThreads(__tstate); | |
33056 | if (PyErr_Occurred()) SWIG_fail; | |
33057 | } | |
33058 | resultobj = SWIG_Py_Void(); | |
33059 | return resultobj; | |
33060 | fail: | |
33061 | return NULL; | |
33062 | } | |
33063 | ||
33064 | ||
33065 | SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33066 | PyObject *resultobj = 0; | |
33067 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33068 | wxColour *arg2 = 0 ; | |
33069 | void *argp1 = 0 ; | |
33070 | int res1 = 0 ; | |
33071 | wxColour temp2 ; | |
33072 | PyObject * obj0 = 0 ; | |
33073 | PyObject * obj1 = 0 ; | |
33074 | char * kwnames[] = { | |
33075 | (char *) "self",(char *) "c", NULL | |
33076 | }; | |
33077 | ||
33078 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
33079 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33080 | if (!SWIG_IsOK(res1)) { | |
33081 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33082 | } | |
33083 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33084 | { | |
33085 | arg2 = &temp2; | |
33086 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33087 | } | |
33088 | { | |
33089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33090 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
33091 | wxPyEndAllowThreads(__tstate); | |
33092 | if (PyErr_Occurred()) SWIG_fail; | |
33093 | } | |
33094 | resultobj = SWIG_Py_Void(); | |
33095 | return resultobj; | |
33096 | fail: | |
33097 | return NULL; | |
33098 | } | |
33099 | ||
33100 | ||
33101 | SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33102 | PyObject *resultobj = 0; | |
33103 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33104 | wxColour *arg2 = 0 ; | |
33105 | wxColour *arg3 = 0 ; | |
33106 | wxColour *arg4 = 0 ; | |
33107 | wxColour *arg5 = 0 ; | |
33108 | wxColour *arg6 = 0 ; | |
33109 | void *argp1 = 0 ; | |
33110 | int res1 = 0 ; | |
33111 | wxColour temp2 ; | |
33112 | wxColour temp3 ; | |
33113 | wxColour temp4 ; | |
33114 | wxColour temp5 ; | |
33115 | wxColour temp6 ; | |
33116 | PyObject * obj0 = 0 ; | |
33117 | PyObject * obj1 = 0 ; | |
33118 | PyObject * obj2 = 0 ; | |
33119 | PyObject * obj3 = 0 ; | |
33120 | PyObject * obj4 = 0 ; | |
33121 | PyObject * obj5 = 0 ; | |
33122 | char * kwnames[] = { | |
33123 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
33124 | }; | |
33125 | ||
33126 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
33127 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33128 | if (!SWIG_IsOK(res1)) { | |
33129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33130 | } | |
33131 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33132 | { | |
33133 | arg2 = &temp2; | |
33134 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33135 | } | |
33136 | { | |
33137 | arg3 = &temp3; | |
33138 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
33139 | } | |
33140 | { | |
33141 | arg4 = &temp4; | |
33142 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
33143 | } | |
33144 | { | |
33145 | arg5 = &temp5; | |
33146 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
33147 | } | |
33148 | { | |
33149 | arg6 = &temp6; | |
33150 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
33151 | } | |
33152 | { | |
33153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33154 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
33155 | wxPyEndAllowThreads(__tstate); | |
33156 | if (PyErr_Occurred()) SWIG_fail; | |
33157 | } | |
33158 | resultobj = SWIG_Py_Void(); | |
33159 | return resultobj; | |
33160 | fail: | |
33161 | return NULL; | |
33162 | } | |
33163 | ||
33164 | ||
33165 | SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33166 | PyObject *resultobj = 0; | |
33167 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33168 | wxDC *arg2 = 0 ; | |
33169 | wxRect *arg3 = 0 ; | |
33170 | int arg4 = (int) 1 ; | |
33171 | void *argp1 = 0 ; | |
33172 | int res1 = 0 ; | |
33173 | void *argp2 = 0 ; | |
33174 | int res2 = 0 ; | |
33175 | wxRect temp3 ; | |
33176 | int val4 ; | |
33177 | int ecode4 = 0 ; | |
33178 | PyObject * obj0 = 0 ; | |
33179 | PyObject * obj1 = 0 ; | |
33180 | PyObject * obj2 = 0 ; | |
33181 | PyObject * obj3 = 0 ; | |
33182 | char * kwnames[] = { | |
33183 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
33184 | }; | |
33185 | ||
33186 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
33187 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33188 | if (!SWIG_IsOK(res1)) { | |
33189 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33190 | } | |
33191 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33192 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
33193 | if (!SWIG_IsOK(res2)) { | |
33194 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
33195 | } | |
33196 | if (!argp2) { | |
33197 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
33198 | } | |
33199 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
33200 | { | |
33201 | arg3 = &temp3; | |
33202 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
33203 | } | |
33204 | if (obj3) { | |
33205 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
33206 | if (!SWIG_IsOK(ecode4)) { | |
33207 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'"); | |
33208 | } | |
33209 | arg4 = static_cast< int >(val4); | |
33210 | } | |
33211 | { | |
33212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33213 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
33214 | wxPyEndAllowThreads(__tstate); | |
33215 | if (PyErr_Occurred()) SWIG_fail; | |
33216 | } | |
33217 | resultobj = SWIG_Py_Void(); | |
33218 | return resultobj; | |
33219 | fail: | |
33220 | return NULL; | |
33221 | } | |
33222 | ||
33223 | ||
33224 | SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33225 | PyObject *resultobj = 0; | |
33226 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33227 | wxRect *arg2 = 0 ; | |
33228 | wxDC *arg3 = 0 ; | |
33229 | wxBitmap *arg4 = 0 ; | |
33230 | bool result; | |
33231 | void *argp1 = 0 ; | |
33232 | int res1 = 0 ; | |
33233 | wxRect temp2 ; | |
33234 | void *argp3 = 0 ; | |
33235 | int res3 = 0 ; | |
33236 | void *argp4 = 0 ; | |
33237 | int res4 = 0 ; | |
33238 | PyObject * obj0 = 0 ; | |
33239 | PyObject * obj1 = 0 ; | |
33240 | PyObject * obj2 = 0 ; | |
33241 | PyObject * obj3 = 0 ; | |
33242 | char * kwnames[] = { | |
33243 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
33244 | }; | |
33245 | ||
33246 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
33247 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33248 | if (!SWIG_IsOK(res1)) { | |
33249 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33250 | } | |
33251 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33252 | { | |
33253 | arg2 = &temp2; | |
33254 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
33255 | } | |
33256 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
33257 | if (!SWIG_IsOK(res3)) { | |
33258 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
33259 | } | |
33260 | if (!argp3) { | |
33261 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
33262 | } | |
33263 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
33264 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 ); | |
33265 | if (!SWIG_IsOK(res4)) { | |
33266 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
33267 | } | |
33268 | if (!argp4) { | |
33269 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
33270 | } | |
33271 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
33272 | { | |
33273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33274 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
33275 | wxPyEndAllowThreads(__tstate); | |
33276 | if (PyErr_Occurred()) SWIG_fail; | |
33277 | } | |
33278 | { | |
33279 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33280 | } | |
33281 | return resultobj; | |
33282 | fail: | |
33283 | return NULL; | |
33284 | } | |
33285 | ||
33286 | ||
33287 | SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33288 | PyObject *obj; | |
33289 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33290 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj)); | |
33291 | return SWIG_Py_Void(); | |
33292 | } | |
33293 | ||
33294 | SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33295 | return SWIG_Python_InitShadowInstance(args); | |
33296 | } | |
33297 | ||
33298 | SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33299 | PyObject *resultobj = 0; | |
33300 | int arg1 ; | |
33301 | int arg2 ; | |
33302 | bool arg3 ; | |
33303 | wxSplitterRenderParams *result = 0 ; | |
33304 | int val1 ; | |
33305 | int ecode1 = 0 ; | |
33306 | int val2 ; | |
33307 | int ecode2 = 0 ; | |
33308 | bool val3 ; | |
33309 | int ecode3 = 0 ; | |
33310 | PyObject * obj0 = 0 ; | |
33311 | PyObject * obj1 = 0 ; | |
33312 | PyObject * obj2 = 0 ; | |
33313 | char * kwnames[] = { | |
33314 | (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL | |
33315 | }; | |
33316 | ||
33317 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
33318 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
33319 | if (!SWIG_IsOK(ecode1)) { | |
33320 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'"); | |
33321 | } | |
33322 | arg1 = static_cast< int >(val1); | |
33323 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33324 | if (!SWIG_IsOK(ecode2)) { | |
33325 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'"); | |
33326 | } | |
33327 | arg2 = static_cast< int >(val2); | |
33328 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
33329 | if (!SWIG_IsOK(ecode3)) { | |
33330 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'"); | |
33331 | } | |
33332 | arg3 = static_cast< bool >(val3); | |
33333 | { | |
33334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33335 | result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3); | |
33336 | wxPyEndAllowThreads(__tstate); | |
33337 | if (PyErr_Occurred()) SWIG_fail; | |
33338 | } | |
33339 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 ); | |
33340 | return resultobj; | |
33341 | fail: | |
33342 | return NULL; | |
33343 | } | |
33344 | ||
33345 | ||
33346 | SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33347 | PyObject *resultobj = 0; | |
33348 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
33349 | void *argp1 = 0 ; | |
33350 | int res1 = 0 ; | |
33351 | PyObject *swig_obj[1] ; | |
33352 | ||
33353 | if (!args) SWIG_fail; | |
33354 | swig_obj[0] = args; | |
33355 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 ); | |
33356 | if (!SWIG_IsOK(res1)) { | |
33357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
33358 | } | |
33359 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
33360 | { | |
33361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33362 | delete arg1; | |
33363 | ||
33364 | wxPyEndAllowThreads(__tstate); | |
33365 | if (PyErr_Occurred()) SWIG_fail; | |
33366 | } | |
33367 | resultobj = SWIG_Py_Void(); | |
33368 | return resultobj; | |
33369 | fail: | |
33370 | return NULL; | |
33371 | } | |
33372 | ||
33373 | ||
33374 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33375 | PyObject *resultobj = 0; | |
33376 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
33377 | int result; | |
33378 | void *argp1 = 0 ; | |
33379 | int res1 = 0 ; | |
33380 | PyObject *swig_obj[1] ; | |
33381 | ||
33382 | if (!args) SWIG_fail; | |
33383 | swig_obj[0] = args; | |
33384 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
33385 | if (!SWIG_IsOK(res1)) { | |
33386 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
33387 | } | |
33388 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
33389 | result = (int)(int) ((arg1)->widthSash); | |
33390 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33391 | return resultobj; | |
33392 | fail: | |
33393 | return NULL; | |
33394 | } | |
33395 | ||
33396 | ||
33397 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33398 | PyObject *resultobj = 0; | |
33399 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
33400 | int result; | |
33401 | void *argp1 = 0 ; | |
33402 | int res1 = 0 ; | |
33403 | PyObject *swig_obj[1] ; | |
33404 | ||
33405 | if (!args) SWIG_fail; | |
33406 | swig_obj[0] = args; | |
33407 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
33408 | if (!SWIG_IsOK(res1)) { | |
33409 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
33410 | } | |
33411 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
33412 | result = (int)(int) ((arg1)->border); | |
33413 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33414 | return resultobj; | |
33415 | fail: | |
33416 | return NULL; | |
33417 | } | |
33418 | ||
33419 | ||
33420 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33421 | PyObject *resultobj = 0; | |
33422 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
33423 | bool result; | |
33424 | void *argp1 = 0 ; | |
33425 | int res1 = 0 ; | |
33426 | PyObject *swig_obj[1] ; | |
33427 | ||
33428 | if (!args) SWIG_fail; | |
33429 | swig_obj[0] = args; | |
33430 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
33431 | if (!SWIG_IsOK(res1)) { | |
33432 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
33433 | } | |
33434 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
33435 | result = (bool)(bool) ((arg1)->isHotSensitive); | |
33436 | resultobj = SWIG_From_bool(static_cast< bool >(result)); | |
33437 | return resultobj; | |
33438 | fail: | |
33439 | return NULL; | |
33440 | } | |
33441 | ||
33442 | ||
33443 | SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33444 | PyObject *obj; | |
33445 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33446 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj)); | |
33447 | return SWIG_Py_Void(); | |
33448 | } | |
33449 | ||
33450 | SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33451 | return SWIG_Python_InitShadowInstance(args); | |
33452 | } | |
33453 | ||
33d6fd3b RD |
33454 | SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33455 | PyObject *resultobj = 0; | |
33456 | wxHeaderButtonParams *result = 0 ; | |
33457 | ||
33458 | if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail; | |
33459 | { | |
33460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33461 | result = (wxHeaderButtonParams *)new wxHeaderButtonParams(); | |
33462 | wxPyEndAllowThreads(__tstate); | |
33463 | if (PyErr_Occurred()) SWIG_fail; | |
33464 | } | |
33465 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 ); | |
33466 | return resultobj; | |
33467 | fail: | |
33468 | return NULL; | |
33469 | } | |
33470 | ||
33471 | ||
33472 | SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33473 | PyObject *resultobj = 0; | |
33474 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33475 | void *argp1 = 0 ; | |
33476 | int res1 = 0 ; | |
33477 | PyObject *swig_obj[1] ; | |
33478 | ||
33479 | if (!args) SWIG_fail; | |
33480 | swig_obj[0] = args; | |
33481 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 ); | |
33482 | if (!SWIG_IsOK(res1)) { | |
33483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33484 | } | |
33485 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33486 | { | |
33487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33488 | delete arg1; | |
33489 | ||
33490 | wxPyEndAllowThreads(__tstate); | |
33491 | if (PyErr_Occurred()) SWIG_fail; | |
33492 | } | |
33493 | resultobj = SWIG_Py_Void(); | |
33494 | return resultobj; | |
33495 | fail: | |
33496 | return NULL; | |
33497 | } | |
33498 | ||
33499 | ||
33500 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33501 | PyObject *resultobj = 0; | |
33502 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33503 | wxColour *arg2 = (wxColour *) 0 ; | |
33504 | void *argp1 = 0 ; | |
33505 | int res1 = 0 ; | |
33506 | wxColour temp2 ; | |
33507 | PyObject *swig_obj[2] ; | |
33508 | ||
33509 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail; | |
33510 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33511 | if (!SWIG_IsOK(res1)) { | |
33512 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33513 | } | |
33514 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33515 | { | |
33516 | arg2 = &temp2; | |
33517 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
33518 | } | |
33519 | if (arg1) (arg1)->m_arrowColour = *arg2; | |
33520 | ||
33521 | resultobj = SWIG_Py_Void(); | |
33522 | return resultobj; | |
33523 | fail: | |
33524 | return NULL; | |
33525 | } | |
33526 | ||
33527 | ||
33528 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33529 | PyObject *resultobj = 0; | |
33530 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33531 | wxColour *result = 0 ; | |
33532 | void *argp1 = 0 ; | |
33533 | int res1 = 0 ; | |
33534 | PyObject *swig_obj[1] ; | |
33535 | ||
33536 | if (!args) SWIG_fail; | |
33537 | swig_obj[0] = args; | |
33538 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33539 | if (!SWIG_IsOK(res1)) { | |
33540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33541 | } | |
33542 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33543 | result = (wxColour *)& ((arg1)->m_arrowColour); | |
33544 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
33545 | return resultobj; | |
33546 | fail: | |
33547 | return NULL; | |
33548 | } | |
33549 | ||
33550 | ||
33551 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33552 | PyObject *resultobj = 0; | |
33553 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33554 | wxColour *arg2 = (wxColour *) 0 ; | |
33555 | void *argp1 = 0 ; | |
33556 | int res1 = 0 ; | |
33557 | wxColour temp2 ; | |
33558 | PyObject *swig_obj[2] ; | |
33559 | ||
33560 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail; | |
33561 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33562 | if (!SWIG_IsOK(res1)) { | |
33563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33564 | } | |
33565 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33566 | { | |
33567 | arg2 = &temp2; | |
33568 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
33569 | } | |
33570 | if (arg1) (arg1)->m_selectionColour = *arg2; | |
33571 | ||
33572 | resultobj = SWIG_Py_Void(); | |
33573 | return resultobj; | |
33574 | fail: | |
33575 | return NULL; | |
33576 | } | |
33577 | ||
33578 | ||
33579 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33580 | PyObject *resultobj = 0; | |
33581 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33582 | wxColour *result = 0 ; | |
33583 | void *argp1 = 0 ; | |
33584 | int res1 = 0 ; | |
33585 | PyObject *swig_obj[1] ; | |
33586 | ||
33587 | if (!args) SWIG_fail; | |
33588 | swig_obj[0] = args; | |
33589 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33590 | if (!SWIG_IsOK(res1)) { | |
33591 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33592 | } | |
33593 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33594 | result = (wxColour *)& ((arg1)->m_selectionColour); | |
33595 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
33596 | return resultobj; | |
33597 | fail: | |
33598 | return NULL; | |
33599 | } | |
33600 | ||
33601 | ||
33602 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33603 | PyObject *resultobj = 0; | |
33604 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33605 | wxString *arg2 = (wxString *) 0 ; | |
33606 | void *argp1 = 0 ; | |
33607 | int res1 = 0 ; | |
33608 | bool temp2 = false ; | |
33609 | PyObject *swig_obj[2] ; | |
33610 | ||
33611 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail; | |
33612 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33613 | if (!SWIG_IsOK(res1)) { | |
33614 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33615 | } | |
33616 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33617 | { | |
33618 | arg2 = wxString_in_helper(swig_obj[1]); | |
33619 | if (arg2 == NULL) SWIG_fail; | |
33620 | temp2 = true; | |
33621 | } | |
33622 | if (arg1) (arg1)->m_labelText = *arg2; | |
33623 | ||
33624 | resultobj = SWIG_Py_Void(); | |
33625 | { | |
33626 | if (temp2) | |
33627 | delete arg2; | |
33628 | } | |
33629 | return resultobj; | |
33630 | fail: | |
33631 | { | |
33632 | if (temp2) | |
33633 | delete arg2; | |
33634 | } | |
33635 | return NULL; | |
33636 | } | |
33637 | ||
33638 | ||
33639 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33640 | PyObject *resultobj = 0; | |
33641 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33642 | wxString *result = 0 ; | |
33643 | void *argp1 = 0 ; | |
33644 | int res1 = 0 ; | |
33645 | PyObject *swig_obj[1] ; | |
33646 | ||
33647 | if (!args) SWIG_fail; | |
33648 | swig_obj[0] = args; | |
33649 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33650 | if (!SWIG_IsOK(res1)) { | |
33651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33652 | } | |
33653 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33654 | result = (wxString *)& ((arg1)->m_labelText); | |
33655 | { | |
33656 | #if wxUSE_UNICODE | |
33657 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33658 | #else | |
33659 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33660 | #endif | |
33661 | } | |
33662 | return resultobj; | |
33663 | fail: | |
33664 | return NULL; | |
33665 | } | |
33666 | ||
33667 | ||
33668 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33669 | PyObject *resultobj = 0; | |
33670 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33671 | wxFont *arg2 = (wxFont *) 0 ; | |
33672 | void *argp1 = 0 ; | |
33673 | int res1 = 0 ; | |
33674 | void *argp2 = 0 ; | |
33675 | int res2 = 0 ; | |
33676 | PyObject *swig_obj[2] ; | |
33677 | ||
33678 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail; | |
33679 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33680 | if (!SWIG_IsOK(res1)) { | |
33681 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33682 | } | |
33683 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33684 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
33685 | if (!SWIG_IsOK(res2)) { | |
33686 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'"); | |
33687 | } | |
33688 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
33689 | if (arg1) (arg1)->m_labelFont = *arg2; | |
33690 | ||
33691 | resultobj = SWIG_Py_Void(); | |
33692 | return resultobj; | |
33693 | fail: | |
33694 | return NULL; | |
33695 | } | |
33696 | ||
33697 | ||
33698 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33699 | PyObject *resultobj = 0; | |
33700 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33701 | wxFont *result = 0 ; | |
33702 | void *argp1 = 0 ; | |
33703 | int res1 = 0 ; | |
33704 | PyObject *swig_obj[1] ; | |
33705 | ||
33706 | if (!args) SWIG_fail; | |
33707 | swig_obj[0] = args; | |
33708 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33709 | if (!SWIG_IsOK(res1)) { | |
33710 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33711 | } | |
33712 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33713 | result = (wxFont *)& ((arg1)->m_labelFont); | |
33714 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
33715 | return resultobj; | |
33716 | fail: | |
33717 | return NULL; | |
33718 | } | |
33719 | ||
33720 | ||
33721 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33722 | PyObject *resultobj = 0; | |
33723 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33724 | wxColour *arg2 = (wxColour *) 0 ; | |
33725 | void *argp1 = 0 ; | |
33726 | int res1 = 0 ; | |
33727 | wxColour temp2 ; | |
33728 | PyObject *swig_obj[2] ; | |
33729 | ||
33730 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail; | |
33731 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33732 | if (!SWIG_IsOK(res1)) { | |
33733 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33734 | } | |
33735 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33736 | { | |
33737 | arg2 = &temp2; | |
33738 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
33739 | } | |
33740 | if (arg1) (arg1)->m_labelColour = *arg2; | |
33741 | ||
33742 | resultobj = SWIG_Py_Void(); | |
33743 | return resultobj; | |
33744 | fail: | |
33745 | return NULL; | |
33746 | } | |
33747 | ||
33748 | ||
33749 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33750 | PyObject *resultobj = 0; | |
33751 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33752 | wxColour *result = 0 ; | |
33753 | void *argp1 = 0 ; | |
33754 | int res1 = 0 ; | |
33755 | PyObject *swig_obj[1] ; | |
33756 | ||
33757 | if (!args) SWIG_fail; | |
33758 | swig_obj[0] = args; | |
33759 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33760 | if (!SWIG_IsOK(res1)) { | |
33761 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33762 | } | |
33763 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33764 | result = (wxColour *)& ((arg1)->m_labelColour); | |
33765 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
33766 | return resultobj; | |
33767 | fail: | |
33768 | return NULL; | |
33769 | } | |
33770 | ||
33771 | ||
33772 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33773 | PyObject *resultobj = 0; | |
33774 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33775 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
33776 | void *argp1 = 0 ; | |
33777 | int res1 = 0 ; | |
33778 | void *argp2 = 0 ; | |
33779 | int res2 = 0 ; | |
33780 | PyObject *swig_obj[2] ; | |
33781 | ||
33782 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail; | |
33783 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33784 | if (!SWIG_IsOK(res1)) { | |
33785 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33786 | } | |
33787 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33788 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
33789 | if (!SWIG_IsOK(res2)) { | |
33790 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'"); | |
33791 | } | |
33792 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
33793 | if (arg1) (arg1)->m_labelBitmap = *arg2; | |
33794 | ||
33795 | resultobj = SWIG_Py_Void(); | |
33796 | return resultobj; | |
33797 | fail: | |
33798 | return NULL; | |
33799 | } | |
33800 | ||
33801 | ||
33802 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33803 | PyObject *resultobj = 0; | |
33804 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33805 | wxBitmap *result = 0 ; | |
33806 | void *argp1 = 0 ; | |
33807 | int res1 = 0 ; | |
33808 | PyObject *swig_obj[1] ; | |
33809 | ||
33810 | if (!args) SWIG_fail; | |
33811 | swig_obj[0] = args; | |
33812 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33813 | if (!SWIG_IsOK(res1)) { | |
33814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33815 | } | |
33816 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33817 | result = (wxBitmap *)& ((arg1)->m_labelBitmap); | |
33818 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
33819 | return resultobj; | |
33820 | fail: | |
33821 | return NULL; | |
33822 | } | |
33823 | ||
33824 | ||
33825 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33826 | PyObject *resultobj = 0; | |
33827 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33828 | int arg2 ; | |
33829 | void *argp1 = 0 ; | |
33830 | int res1 = 0 ; | |
33831 | int val2 ; | |
33832 | int ecode2 = 0 ; | |
33833 | PyObject *swig_obj[2] ; | |
33834 | ||
33835 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail; | |
33836 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33837 | if (!SWIG_IsOK(res1)) { | |
33838 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33839 | } | |
33840 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33841 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
33842 | if (!SWIG_IsOK(ecode2)) { | |
33843 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'"); | |
33844 | } | |
33845 | arg2 = static_cast< int >(val2); | |
33846 | if (arg1) (arg1)->m_labelAlignment = arg2; | |
33847 | ||
33848 | resultobj = SWIG_Py_Void(); | |
33849 | return resultobj; | |
33850 | fail: | |
33851 | return NULL; | |
33852 | } | |
33853 | ||
33854 | ||
33855 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33856 | PyObject *resultobj = 0; | |
33857 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33858 | int result; | |
33859 | void *argp1 = 0 ; | |
33860 | int res1 = 0 ; | |
33861 | PyObject *swig_obj[1] ; | |
33862 | ||
33863 | if (!args) SWIG_fail; | |
33864 | swig_obj[0] = args; | |
33865 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33866 | if (!SWIG_IsOK(res1)) { | |
33867 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33868 | } | |
33869 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33870 | result = (int) ((arg1)->m_labelAlignment); | |
33871 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33872 | return resultobj; | |
33873 | fail: | |
33874 | return NULL; | |
33875 | } | |
33876 | ||
33877 | ||
33878 | SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33879 | PyObject *obj; | |
33880 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33881 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj)); | |
33882 | return SWIG_Py_Void(); | |
33883 | } | |
33884 | ||
33885 | SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33886 | return SWIG_Python_InitShadowInstance(args); | |
33887 | } | |
33888 | ||
0085ce49 RD |
33889 | SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
33890 | PyObject *resultobj = 0; | |
33891 | int arg1 ; | |
33892 | int arg2 ; | |
33893 | wxRendererVersion *result = 0 ; | |
33894 | int val1 ; | |
33895 | int ecode1 = 0 ; | |
33896 | int val2 ; | |
33897 | int ecode2 = 0 ; | |
33898 | PyObject * obj0 = 0 ; | |
33899 | PyObject * obj1 = 0 ; | |
33900 | char * kwnames[] = { | |
33901 | (char *) "version_",(char *) "age_", NULL | |
33902 | }; | |
33903 | ||
33904 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail; | |
33905 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
33906 | if (!SWIG_IsOK(ecode1)) { | |
33907 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'"); | |
33908 | } | |
33909 | arg1 = static_cast< int >(val1); | |
33910 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33911 | if (!SWIG_IsOK(ecode2)) { | |
33912 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'"); | |
33913 | } | |
33914 | arg2 = static_cast< int >(val2); | |
33915 | { | |
33916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33917 | result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2); | |
33918 | wxPyEndAllowThreads(__tstate); | |
33919 | if (PyErr_Occurred()) SWIG_fail; | |
33920 | } | |
33921 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 ); | |
33922 | return resultobj; | |
33923 | fail: | |
33924 | return NULL; | |
33925 | } | |
33926 | ||
33927 | ||
33928 | SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33929 | PyObject *resultobj = 0; | |
33930 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
33931 | void *argp1 = 0 ; | |
33932 | int res1 = 0 ; | |
33933 | PyObject *swig_obj[1] ; | |
33934 | ||
33935 | if (!args) SWIG_fail; | |
33936 | swig_obj[0] = args; | |
33937 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 ); | |
33938 | if (!SWIG_IsOK(res1)) { | |
33939 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
33940 | } | |
33941 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
33942 | { | |
33943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33944 | delete arg1; | |
33945 | ||
33946 | wxPyEndAllowThreads(__tstate); | |
33947 | if (PyErr_Occurred()) SWIG_fail; | |
33948 | } | |
33949 | resultobj = SWIG_Py_Void(); | |
33950 | return resultobj; | |
33951 | fail: | |
33952 | return NULL; | |
33953 | } | |
33954 | ||
33955 | ||
33956 | SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33957 | PyObject *resultobj = 0; | |
33958 | wxRendererVersion *arg1 = 0 ; | |
33959 | bool result; | |
33960 | void *argp1 = 0 ; | |
33961 | int res1 = 0 ; | |
33962 | PyObject * obj0 = 0 ; | |
33963 | char * kwnames[] = { | |
33964 | (char *) "ver", NULL | |
33965 | }; | |
33966 | ||
33967 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail; | |
33968 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0); | |
33969 | if (!SWIG_IsOK(res1)) { | |
33970 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
33971 | } | |
33972 | if (!argp1) { | |
33973 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
33974 | } | |
33975 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
33976 | { | |
33977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33978 | result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1); | |
33979 | wxPyEndAllowThreads(__tstate); | |
33980 | if (PyErr_Occurred()) SWIG_fail; | |
33981 | } | |
33982 | { | |
33983 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33984 | } | |
33985 | return resultobj; | |
33986 | fail: | |
33987 | return NULL; | |
33988 | } | |
33989 | ||
33990 | ||
33991 | SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33992 | PyObject *resultobj = 0; | |
33993 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
33994 | int result; | |
33995 | void *argp1 = 0 ; | |
33996 | int res1 = 0 ; | |
33997 | PyObject *swig_obj[1] ; | |
33998 | ||
33999 | if (!args) SWIG_fail; | |
34000 | swig_obj[0] = args; | |
34001 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
34002 | if (!SWIG_IsOK(res1)) { | |
34003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
34004 | } | |
34005 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
34006 | result = (int)(int) ((arg1)->version); | |
34007 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34008 | return resultobj; | |
34009 | fail: | |
34010 | return NULL; | |
34011 | } | |
34012 | ||
34013 | ||
34014 | SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34015 | PyObject *resultobj = 0; | |
34016 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
34017 | int result; | |
34018 | void *argp1 = 0 ; | |
34019 | int res1 = 0 ; | |
34020 | PyObject *swig_obj[1] ; | |
34021 | ||
34022 | if (!args) SWIG_fail; | |
34023 | swig_obj[0] = args; | |
34024 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
34025 | if (!SWIG_IsOK(res1)) { | |
34026 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
34027 | } | |
34028 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
34029 | result = (int)(int) ((arg1)->age); | |
34030 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34031 | return resultobj; | |
34032 | fail: | |
34033 | return NULL; | |
34034 | } | |
34035 | ||
34036 | ||
34037 | SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34038 | PyObject *obj; | |
34039 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
34040 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj)); | |
34041 | return SWIG_Py_Void(); | |
34042 | } | |
34043 | ||
34044 | SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34045 | return SWIG_Python_InitShadowInstance(args); | |
34046 | } | |
34047 | ||
34048 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34049 | PyObject *resultobj = 0; | |
34050 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34051 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34052 | wxDC *arg3 = 0 ; | |
34053 | wxRect *arg4 = 0 ; | |
34054 | int arg5 = (int) 0 ; | |
33d6fd3b RD |
34055 | wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ; |
34056 | wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ; | |
723282b6 | 34057 | int result; |
0085ce49 RD |
34058 | void *argp1 = 0 ; |
34059 | int res1 = 0 ; | |
34060 | void *argp2 = 0 ; | |
34061 | int res2 = 0 ; | |
34062 | void *argp3 = 0 ; | |
34063 | int res3 = 0 ; | |
34064 | wxRect temp4 ; | |
34065 | int val5 ; | |
34066 | int ecode5 = 0 ; | |
33d6fd3b RD |
34067 | int val6 ; |
34068 | int ecode6 = 0 ; | |
34069 | void *argp7 = 0 ; | |
34070 | int res7 = 0 ; | |
0085ce49 RD |
34071 | PyObject * obj0 = 0 ; |
34072 | PyObject * obj1 = 0 ; | |
34073 | PyObject * obj2 = 0 ; | |
34074 | PyObject * obj3 = 0 ; | |
34075 | PyObject * obj4 = 0 ; | |
33d6fd3b RD |
34076 | PyObject * obj5 = 0 ; |
34077 | PyObject * obj6 = 0 ; | |
0085ce49 | 34078 | char * kwnames[] = { |
33d6fd3b | 34079 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL |
0085ce49 RD |
34080 | }; |
34081 | ||
33d6fd3b | 34082 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
0085ce49 RD |
34083 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); |
34084 | if (!SWIG_IsOK(res1)) { | |
34085 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34086 | } | |
34087 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34088 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34089 | if (!SWIG_IsOK(res2)) { | |
34090 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34091 | } | |
34092 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34093 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34094 | if (!SWIG_IsOK(res3)) { | |
34095 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34096 | } | |
34097 | if (!argp3) { | |
34098 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34099 | } | |
34100 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34101 | { | |
34102 | arg4 = &temp4; | |
34103 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34104 | } | |
34105 | if (obj4) { | |
34106 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34107 | if (!SWIG_IsOK(ecode5)) { | |
34108 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'"); | |
34109 | } | |
34110 | arg5 = static_cast< int >(val5); | |
34111 | } | |
33d6fd3b RD |
34112 | if (obj5) { |
34113 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
34114 | if (!SWIG_IsOK(ecode6)) { | |
34115 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'"); | |
34116 | } | |
34117 | arg6 = static_cast< wxHeaderSortIconType >(val6); | |
34118 | } | |
34119 | if (obj6) { | |
34120 | res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34121 | if (!SWIG_IsOK(res7)) { | |
34122 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'"); | |
34123 | } | |
34124 | arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7); | |
34125 | } | |
34126 | { | |
34127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
723282b6 | 34128 | result = (int)(arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); |
33d6fd3b RD |
34129 | wxPyEndAllowThreads(__tstate); |
34130 | if (PyErr_Occurred()) SWIG_fail; | |
34131 | } | |
723282b6 | 34132 | resultobj = SWIG_From_int(static_cast< int >(result)); |
33d6fd3b RD |
34133 | return resultobj; |
34134 | fail: | |
34135 | return NULL; | |
34136 | } | |
34137 | ||
34138 | ||
34139 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34140 | PyObject *resultobj = 0; | |
34141 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34142 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34143 | wxDC *arg3 = 0 ; | |
34144 | wxRect *arg4 = 0 ; | |
34145 | int arg5 = (int) 0 ; | |
34146 | wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ; | |
34147 | wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ; | |
723282b6 | 34148 | int result; |
33d6fd3b RD |
34149 | void *argp1 = 0 ; |
34150 | int res1 = 0 ; | |
34151 | void *argp2 = 0 ; | |
34152 | int res2 = 0 ; | |
34153 | void *argp3 = 0 ; | |
34154 | int res3 = 0 ; | |
34155 | wxRect temp4 ; | |
34156 | int val5 ; | |
34157 | int ecode5 = 0 ; | |
34158 | int val6 ; | |
34159 | int ecode6 = 0 ; | |
34160 | void *argp7 = 0 ; | |
34161 | int res7 = 0 ; | |
34162 | PyObject * obj0 = 0 ; | |
34163 | PyObject * obj1 = 0 ; | |
34164 | PyObject * obj2 = 0 ; | |
34165 | PyObject * obj3 = 0 ; | |
34166 | PyObject * obj4 = 0 ; | |
34167 | PyObject * obj5 = 0 ; | |
34168 | PyObject * obj6 = 0 ; | |
34169 | char * kwnames[] = { | |
34170 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL | |
34171 | }; | |
34172 | ||
34173 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
34174 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34175 | if (!SWIG_IsOK(res1)) { | |
34176 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34177 | } | |
34178 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34179 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34180 | if (!SWIG_IsOK(res2)) { | |
34181 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34182 | } | |
34183 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34184 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34185 | if (!SWIG_IsOK(res3)) { | |
34186 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34187 | } | |
34188 | if (!argp3) { | |
34189 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34190 | } | |
34191 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34192 | { | |
34193 | arg4 = &temp4; | |
34194 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34195 | } | |
34196 | if (obj4) { | |
34197 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34198 | if (!SWIG_IsOK(ecode5)) { | |
34199 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'"); | |
34200 | } | |
34201 | arg5 = static_cast< int >(val5); | |
34202 | } | |
34203 | if (obj5) { | |
34204 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
34205 | if (!SWIG_IsOK(ecode6)) { | |
34206 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'"); | |
34207 | } | |
34208 | arg6 = static_cast< wxHeaderSortIconType >(val6); | |
34209 | } | |
34210 | if (obj6) { | |
34211 | res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34212 | if (!SWIG_IsOK(res7)) { | |
34213 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'"); | |
34214 | } | |
34215 | arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7); | |
34216 | } | |
0085ce49 RD |
34217 | { |
34218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
723282b6 | 34219 | result = (int)(arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); |
0085ce49 RD |
34220 | wxPyEndAllowThreads(__tstate); |
34221 | if (PyErr_Occurred()) SWIG_fail; | |
34222 | } | |
723282b6 | 34223 | resultobj = SWIG_From_int(static_cast< int >(result)); |
0085ce49 RD |
34224 | return resultobj; |
34225 | fail: | |
34226 | return NULL; | |
34227 | } | |
34228 | ||
34229 | ||
33d6fd3b RD |
34230 | SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34231 | PyObject *resultobj = 0; | |
34232 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34233 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34234 | int result; | |
34235 | void *argp1 = 0 ; | |
34236 | int res1 = 0 ; | |
34237 | void *argp2 = 0 ; | |
34238 | int res2 = 0 ; | |
34239 | PyObject * obj0 = 0 ; | |
34240 | PyObject * obj1 = 0 ; | |
34241 | char * kwnames[] = { | |
34242 | (char *) "self",(char *) "win", NULL | |
34243 | }; | |
34244 | ||
34245 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
34246 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34247 | if (!SWIG_IsOK(res1)) { | |
34248 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34249 | } | |
34250 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34251 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34252 | if (!SWIG_IsOK(res2)) { | |
34253 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34254 | } | |
34255 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34256 | { | |
34257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34258 | result = (int)(arg1)->GetHeaderButtonHeight(arg2); | |
34259 | wxPyEndAllowThreads(__tstate); | |
34260 | if (PyErr_Occurred()) SWIG_fail; | |
34261 | } | |
34262 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34263 | return resultobj; | |
34264 | fail: | |
34265 | return NULL; | |
34266 | } | |
34267 | ||
34268 | ||
0085ce49 RD |
34269 | SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34270 | PyObject *resultobj = 0; | |
34271 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34272 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34273 | wxDC *arg3 = 0 ; | |
34274 | wxRect *arg4 = 0 ; | |
34275 | int arg5 = (int) 0 ; | |
34276 | void *argp1 = 0 ; | |
34277 | int res1 = 0 ; | |
34278 | void *argp2 = 0 ; | |
34279 | int res2 = 0 ; | |
34280 | void *argp3 = 0 ; | |
34281 | int res3 = 0 ; | |
34282 | wxRect temp4 ; | |
34283 | int val5 ; | |
34284 | int ecode5 = 0 ; | |
34285 | PyObject * obj0 = 0 ; | |
34286 | PyObject * obj1 = 0 ; | |
34287 | PyObject * obj2 = 0 ; | |
34288 | PyObject * obj3 = 0 ; | |
34289 | PyObject * obj4 = 0 ; | |
34290 | char * kwnames[] = { | |
34291 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34292 | }; | |
34293 | ||
34294 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34295 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34296 | if (!SWIG_IsOK(res1)) { | |
34297 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34298 | } | |
34299 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34300 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34301 | if (!SWIG_IsOK(res2)) { | |
34302 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34303 | } | |
34304 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34305 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34306 | if (!SWIG_IsOK(res3)) { | |
34307 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34308 | } | |
34309 | if (!argp3) { | |
34310 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34311 | } | |
34312 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34313 | { | |
34314 | arg4 = &temp4; | |
34315 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34316 | } | |
34317 | if (obj4) { | |
34318 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34319 | if (!SWIG_IsOK(ecode5)) { | |
34320 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'"); | |
34321 | } | |
34322 | arg5 = static_cast< int >(val5); | |
34323 | } | |
34324 | { | |
34325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34326 | (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34327 | wxPyEndAllowThreads(__tstate); | |
34328 | if (PyErr_Occurred()) SWIG_fail; | |
34329 | } | |
34330 | resultobj = SWIG_Py_Void(); | |
34331 | return resultobj; | |
34332 | fail: | |
34333 | return NULL; | |
34334 | } | |
34335 | ||
34336 | ||
34337 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34338 | PyObject *resultobj = 0; | |
34339 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34340 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34341 | wxDC *arg3 = 0 ; | |
34342 | wxRect *arg4 = 0 ; | |
34343 | int arg5 = (int) 0 ; | |
34344 | void *argp1 = 0 ; | |
34345 | int res1 = 0 ; | |
34346 | void *argp2 = 0 ; | |
34347 | int res2 = 0 ; | |
34348 | void *argp3 = 0 ; | |
34349 | int res3 = 0 ; | |
34350 | wxRect temp4 ; | |
34351 | int val5 ; | |
34352 | int ecode5 = 0 ; | |
34353 | PyObject * obj0 = 0 ; | |
34354 | PyObject * obj1 = 0 ; | |
34355 | PyObject * obj2 = 0 ; | |
34356 | PyObject * obj3 = 0 ; | |
34357 | PyObject * obj4 = 0 ; | |
34358 | char * kwnames[] = { | |
34359 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34360 | }; | |
34361 | ||
34362 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34363 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34364 | if (!SWIG_IsOK(res1)) { | |
34365 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34366 | } | |
34367 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34368 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34369 | if (!SWIG_IsOK(res2)) { | |
34370 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34371 | } | |
34372 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34373 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34374 | if (!SWIG_IsOK(res3)) { | |
34375 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34376 | } | |
34377 | if (!argp3) { | |
34378 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34379 | } | |
34380 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34381 | { | |
34382 | arg4 = &temp4; | |
34383 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34384 | } | |
34385 | if (obj4) { | |
34386 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34387 | if (!SWIG_IsOK(ecode5)) { | |
34388 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'"); | |
34389 | } | |
34390 | arg5 = static_cast< int >(val5); | |
34391 | } | |
34392 | { | |
34393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34394 | (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34395 | wxPyEndAllowThreads(__tstate); | |
34396 | if (PyErr_Occurred()) SWIG_fail; | |
34397 | } | |
34398 | resultobj = SWIG_Py_Void(); | |
34399 | return resultobj; | |
34400 | fail: | |
34401 | return NULL; | |
34402 | } | |
34403 | ||
34404 | ||
34405 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34406 | PyObject *resultobj = 0; | |
34407 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34408 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34409 | wxDC *arg3 = 0 ; | |
34410 | wxSize *arg4 = 0 ; | |
34411 | int arg5 ; | |
34412 | wxOrientation arg6 ; | |
34413 | int arg7 = (int) 0 ; | |
34414 | void *argp1 = 0 ; | |
34415 | int res1 = 0 ; | |
34416 | void *argp2 = 0 ; | |
34417 | int res2 = 0 ; | |
34418 | void *argp3 = 0 ; | |
34419 | int res3 = 0 ; | |
34420 | wxSize temp4 ; | |
34421 | int val5 ; | |
34422 | int ecode5 = 0 ; | |
34423 | int val6 ; | |
34424 | int ecode6 = 0 ; | |
34425 | int val7 ; | |
34426 | int ecode7 = 0 ; | |
34427 | PyObject * obj0 = 0 ; | |
34428 | PyObject * obj1 = 0 ; | |
34429 | PyObject * obj2 = 0 ; | |
34430 | PyObject * obj3 = 0 ; | |
34431 | PyObject * obj4 = 0 ; | |
34432 | PyObject * obj5 = 0 ; | |
34433 | PyObject * obj6 = 0 ; | |
34434 | char * kwnames[] = { | |
34435 | (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL | |
34436 | }; | |
34437 | ||
34438 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
34439 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34440 | if (!SWIG_IsOK(res1)) { | |
34441 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34442 | } | |
34443 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34444 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34445 | if (!SWIG_IsOK(res2)) { | |
34446 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34447 | } | |
34448 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34449 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34450 | if (!SWIG_IsOK(res3)) { | |
34451 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34452 | } | |
34453 | if (!argp3) { | |
34454 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34455 | } | |
34456 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34457 | { | |
34458 | arg4 = &temp4; | |
34459 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
34460 | } | |
34461 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34462 | if (!SWIG_IsOK(ecode5)) { | |
34463 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'"); | |
34464 | } | |
34465 | arg5 = static_cast< int >(val5); | |
34466 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
34467 | if (!SWIG_IsOK(ecode6)) { | |
34468 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'"); | |
34469 | } | |
34470 | arg6 = static_cast< wxOrientation >(val6); | |
34471 | if (obj6) { | |
34472 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
34473 | if (!SWIG_IsOK(ecode7)) { | |
34474 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'"); | |
34475 | } | |
34476 | arg7 = static_cast< int >(val7); | |
34477 | } | |
34478 | { | |
34479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34480 | (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7); | |
34481 | wxPyEndAllowThreads(__tstate); | |
34482 | if (PyErr_Occurred()) SWIG_fail; | |
34483 | } | |
34484 | resultobj = SWIG_Py_Void(); | |
34485 | return resultobj; | |
34486 | fail: | |
34487 | return NULL; | |
34488 | } | |
34489 | ||
34490 | ||
34491 | SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34492 | PyObject *resultobj = 0; | |
34493 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34494 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34495 | wxDC *arg3 = 0 ; | |
34496 | wxRect *arg4 = 0 ; | |
34497 | int arg5 = (int) 0 ; | |
34498 | void *argp1 = 0 ; | |
34499 | int res1 = 0 ; | |
34500 | void *argp2 = 0 ; | |
34501 | int res2 = 0 ; | |
34502 | void *argp3 = 0 ; | |
34503 | int res3 = 0 ; | |
34504 | wxRect temp4 ; | |
34505 | int val5 ; | |
34506 | int ecode5 = 0 ; | |
34507 | PyObject * obj0 = 0 ; | |
34508 | PyObject * obj1 = 0 ; | |
34509 | PyObject * obj2 = 0 ; | |
34510 | PyObject * obj3 = 0 ; | |
34511 | PyObject * obj4 = 0 ; | |
34512 | char * kwnames[] = { | |
34513 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34514 | }; | |
34515 | ||
34516 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34517 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34518 | if (!SWIG_IsOK(res1)) { | |
34519 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34520 | } | |
34521 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34522 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34523 | if (!SWIG_IsOK(res2)) { | |
34524 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34525 | } | |
34526 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34527 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34528 | if (!SWIG_IsOK(res3)) { | |
34529 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34530 | } | |
34531 | if (!argp3) { | |
34532 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34533 | } | |
34534 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34535 | { | |
34536 | arg4 = &temp4; | |
34537 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34538 | } | |
34539 | if (obj4) { | |
34540 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34541 | if (!SWIG_IsOK(ecode5)) { | |
34542 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'"); | |
34543 | } | |
34544 | arg5 = static_cast< int >(val5); | |
34545 | } | |
34546 | { | |
34547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34548 | (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34549 | wxPyEndAllowThreads(__tstate); | |
34550 | if (PyErr_Occurred()) SWIG_fail; | |
34551 | } | |
34552 | resultobj = SWIG_Py_Void(); | |
34553 | return resultobj; | |
34554 | fail: | |
34555 | return NULL; | |
34556 | } | |
34557 | ||
34558 | ||
34559 | SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34560 | PyObject *resultobj = 0; | |
34561 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34562 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34563 | wxDC *arg3 = 0 ; | |
34564 | wxRect *arg4 = 0 ; | |
34565 | int arg5 = (int) 0 ; | |
34566 | void *argp1 = 0 ; | |
34567 | int res1 = 0 ; | |
34568 | void *argp2 = 0 ; | |
34569 | int res2 = 0 ; | |
34570 | void *argp3 = 0 ; | |
34571 | int res3 = 0 ; | |
34572 | wxRect temp4 ; | |
34573 | int val5 ; | |
34574 | int ecode5 = 0 ; | |
34575 | PyObject * obj0 = 0 ; | |
34576 | PyObject * obj1 = 0 ; | |
34577 | PyObject * obj2 = 0 ; | |
34578 | PyObject * obj3 = 0 ; | |
34579 | PyObject * obj4 = 0 ; | |
34580 | char * kwnames[] = { | |
34581 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34582 | }; | |
34583 | ||
34584 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34585 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34586 | if (!SWIG_IsOK(res1)) { | |
34587 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34588 | } | |
34589 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34590 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34591 | if (!SWIG_IsOK(res2)) { | |
34592 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34593 | } | |
34594 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34595 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34596 | if (!SWIG_IsOK(res3)) { | |
34597 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34598 | } | |
34599 | if (!argp3) { | |
34600 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34601 | } | |
34602 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34603 | { | |
34604 | arg4 = &temp4; | |
34605 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34606 | } | |
34607 | if (obj4) { | |
34608 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34609 | if (!SWIG_IsOK(ecode5)) { | |
34610 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'"); | |
34611 | } | |
34612 | arg5 = static_cast< int >(val5); | |
34613 | } | |
34614 | { | |
34615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34616 | (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34617 | wxPyEndAllowThreads(__tstate); | |
34618 | if (PyErr_Occurred()) SWIG_fail; | |
34619 | } | |
34620 | resultobj = SWIG_Py_Void(); | |
34621 | return resultobj; | |
34622 | fail: | |
34623 | return NULL; | |
34624 | } | |
34625 | ||
34626 | ||
01f6b6d3 RD |
34627 | SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34628 | PyObject *resultobj = 0; | |
34629 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34630 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34631 | wxDC *arg3 = 0 ; | |
34632 | wxRect *arg4 = 0 ; | |
34633 | int arg5 = (int) 0 ; | |
34634 | void *argp1 = 0 ; | |
34635 | int res1 = 0 ; | |
34636 | void *argp2 = 0 ; | |
34637 | int res2 = 0 ; | |
34638 | void *argp3 = 0 ; | |
34639 | int res3 = 0 ; | |
34640 | wxRect temp4 ; | |
34641 | int val5 ; | |
34642 | int ecode5 = 0 ; | |
34643 | PyObject * obj0 = 0 ; | |
34644 | PyObject * obj1 = 0 ; | |
34645 | PyObject * obj2 = 0 ; | |
34646 | PyObject * obj3 = 0 ; | |
34647 | PyObject * obj4 = 0 ; | |
34648 | char * kwnames[] = { | |
34649 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34650 | }; | |
34651 | ||
34652 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34653 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34654 | if (!SWIG_IsOK(res1)) { | |
34655 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34656 | } | |
34657 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34658 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34659 | if (!SWIG_IsOK(res2)) { | |
34660 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34661 | } | |
34662 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34663 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34664 | if (!SWIG_IsOK(res3)) { | |
34665 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34666 | } | |
34667 | if (!argp3) { | |
34668 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34669 | } | |
34670 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34671 | { | |
34672 | arg4 = &temp4; | |
34673 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34674 | } | |
34675 | if (obj4) { | |
34676 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34677 | if (!SWIG_IsOK(ecode5)) { | |
34678 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'"); | |
34679 | } | |
34680 | arg5 = static_cast< int >(val5); | |
34681 | } | |
34682 | { | |
34683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34684 | (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34685 | wxPyEndAllowThreads(__tstate); | |
34686 | if (PyErr_Occurred()) SWIG_fail; | |
34687 | } | |
34688 | resultobj = SWIG_Py_Void(); | |
34689 | return resultobj; | |
34690 | fail: | |
34691 | return NULL; | |
34692 | } | |
34693 | ||
34694 | ||
34695 | SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34696 | PyObject *resultobj = 0; | |
34697 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34698 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34699 | wxDC *arg3 = 0 ; | |
34700 | wxRect *arg4 = 0 ; | |
34701 | int arg5 = (int) 0 ; | |
34702 | void *argp1 = 0 ; | |
34703 | int res1 = 0 ; | |
34704 | void *argp2 = 0 ; | |
34705 | int res2 = 0 ; | |
34706 | void *argp3 = 0 ; | |
34707 | int res3 = 0 ; | |
34708 | wxRect temp4 ; | |
34709 | int val5 ; | |
34710 | int ecode5 = 0 ; | |
34711 | PyObject * obj0 = 0 ; | |
34712 | PyObject * obj1 = 0 ; | |
34713 | PyObject * obj2 = 0 ; | |
34714 | PyObject * obj3 = 0 ; | |
34715 | PyObject * obj4 = 0 ; | |
34716 | char * kwnames[] = { | |
34717 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34718 | }; | |
34719 | ||
34720 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34721 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34722 | if (!SWIG_IsOK(res1)) { | |
34723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34724 | } | |
34725 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34726 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34727 | if (!SWIG_IsOK(res2)) { | |
34728 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34729 | } | |
34730 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34731 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34732 | if (!SWIG_IsOK(res3)) { | |
34733 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34734 | } | |
34735 | if (!argp3) { | |
34736 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34737 | } | |
34738 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34739 | { | |
34740 | arg4 = &temp4; | |
34741 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34742 | } | |
34743 | if (obj4) { | |
34744 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34745 | if (!SWIG_IsOK(ecode5)) { | |
34746 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'"); | |
34747 | } | |
34748 | arg5 = static_cast< int >(val5); | |
34749 | } | |
34750 | { | |
34751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34752 | (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34753 | wxPyEndAllowThreads(__tstate); | |
34754 | if (PyErr_Occurred()) SWIG_fail; | |
34755 | } | |
34756 | resultobj = SWIG_Py_Void(); | |
34757 | return resultobj; | |
34758 | fail: | |
34759 | return NULL; | |
34760 | } | |
34761 | ||
34762 | ||
34763 | SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
50efceee RD |
34764 | PyObject *resultobj = 0; |
34765 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34766 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34767 | wxDC *arg3 = 0 ; | |
34768 | wxRect *arg4 = 0 ; | |
34769 | int arg5 = (int) 0 ; | |
34770 | void *argp1 = 0 ; | |
34771 | int res1 = 0 ; | |
34772 | void *argp2 = 0 ; | |
34773 | int res2 = 0 ; | |
34774 | void *argp3 = 0 ; | |
34775 | int res3 = 0 ; | |
34776 | wxRect temp4 ; | |
34777 | int val5 ; | |
34778 | int ecode5 = 0 ; | |
34779 | PyObject * obj0 = 0 ; | |
34780 | PyObject * obj1 = 0 ; | |
34781 | PyObject * obj2 = 0 ; | |
34782 | PyObject * obj3 = 0 ; | |
34783 | PyObject * obj4 = 0 ; | |
34784 | char * kwnames[] = { | |
34785 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34786 | }; | |
34787 | ||
01f6b6d3 | 34788 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
50efceee RD |
34789 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); |
34790 | if (!SWIG_IsOK(res1)) { | |
01f6b6d3 | 34791 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'"); |
50efceee RD |
34792 | } |
34793 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34794 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34795 | if (!SWIG_IsOK(res2)) { | |
01f6b6d3 | 34796 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'"); |
50efceee RD |
34797 | } |
34798 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34799 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34800 | if (!SWIG_IsOK(res3)) { | |
01f6b6d3 | 34801 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); |
50efceee RD |
34802 | } |
34803 | if (!argp3) { | |
01f6b6d3 | 34804 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); |
50efceee RD |
34805 | } |
34806 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34807 | { | |
34808 | arg4 = &temp4; | |
34809 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34810 | } | |
34811 | if (obj4) { | |
34812 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34813 | if (!SWIG_IsOK(ecode5)) { | |
01f6b6d3 | 34814 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'"); |
50efceee RD |
34815 | } |
34816 | arg5 = static_cast< int >(val5); | |
34817 | } | |
34818 | { | |
34819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
01f6b6d3 | 34820 | (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5); |
50efceee RD |
34821 | wxPyEndAllowThreads(__tstate); |
34822 | if (PyErr_Occurred()) SWIG_fail; | |
34823 | } | |
34824 | resultobj = SWIG_Py_Void(); | |
34825 | return resultobj; | |
34826 | fail: | |
34827 | return NULL; | |
34828 | } | |
34829 | ||
34830 | ||
0085ce49 RD |
34831 | SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34832 | PyObject *resultobj = 0; | |
34833 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34834 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34835 | SwigValueWrapper<wxSplitterRenderParams > result; | |
34836 | void *argp1 = 0 ; | |
34837 | int res1 = 0 ; | |
34838 | void *argp2 = 0 ; | |
34839 | int res2 = 0 ; | |
34840 | PyObject * obj0 = 0 ; | |
34841 | PyObject * obj1 = 0 ; | |
34842 | char * kwnames[] = { | |
34843 | (char *) "self",(char *) "win", NULL | |
34844 | }; | |
34845 | ||
34846 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail; | |
34847 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34848 | if (!SWIG_IsOK(res1)) { | |
34849 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34850 | } | |
34851 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34852 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34853 | if (!SWIG_IsOK(res2)) { | |
34854 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'"); | |
34855 | } | |
34856 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34857 | { | |
34858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34859 | result = (arg1)->GetSplitterParams((wxWindow const *)arg2); | |
34860 | wxPyEndAllowThreads(__tstate); | |
34861 | if (PyErr_Occurred()) SWIG_fail; | |
34862 | } | |
34863 | resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 ); | |
34864 | return resultobj; | |
34865 | fail: | |
34866 | return NULL; | |
34867 | } | |
34868 | ||
34869 | ||
34870 | SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34871 | PyObject *resultobj = 0; | |
34872 | wxRendererNative *result = 0 ; | |
34873 | ||
34874 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail; | |
34875 | { | |
704eda0c | 34876 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 | 34877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 34878 | { |
0085ce49 RD |
34879 | wxRendererNative &_result_ref = wxRendererNative::Get(); |
34880 | result = (wxRendererNative *) &_result_ref; | |
093d3ff1 | 34881 | } |
0085ce49 RD |
34882 | wxPyEndAllowThreads(__tstate); |
34883 | if (PyErr_Occurred()) SWIG_fail; | |
34884 | } | |
34885 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34886 | return resultobj; | |
34887 | fail: | |
34888 | return NULL; | |
34889 | } | |
34890 | ||
34891 | ||
34892 | SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34893 | PyObject *resultobj = 0; | |
34894 | wxRendererNative *result = 0 ; | |
34895 | ||
34896 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail; | |
34897 | { | |
704eda0c | 34898 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 | 34899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8d38bd1d | 34900 | { |
0085ce49 RD |
34901 | wxRendererNative &_result_ref = wxRendererNative::GetGeneric(); |
34902 | result = (wxRendererNative *) &_result_ref; | |
8d38bd1d | 34903 | } |
0085ce49 RD |
34904 | wxPyEndAllowThreads(__tstate); |
34905 | if (PyErr_Occurred()) SWIG_fail; | |
34906 | } | |
34907 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34908 | return resultobj; | |
34909 | fail: | |
34910 | return NULL; | |
34911 | } | |
34912 | ||
34913 | ||
34914 | SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34915 | PyObject *resultobj = 0; | |
34916 | wxRendererNative *result = 0 ; | |
34917 | ||
34918 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail; | |
34919 | { | |
704eda0c | 34920 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 | 34921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8d38bd1d | 34922 | { |
0085ce49 RD |
34923 | wxRendererNative &_result_ref = wxRendererNative::GetDefault(); |
34924 | result = (wxRendererNative *) &_result_ref; | |
8d38bd1d | 34925 | } |
0085ce49 RD |
34926 | wxPyEndAllowThreads(__tstate); |
34927 | if (PyErr_Occurred()) SWIG_fail; | |
34928 | } | |
34929 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34930 | return resultobj; | |
34931 | fail: | |
34932 | return NULL; | |
34933 | } | |
34934 | ||
34935 | ||
34936 | SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34937 | PyObject *resultobj = 0; | |
34938 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34939 | wxRendererNative *result = 0 ; | |
34940 | void *argp1 = 0 ; | |
34941 | int res1 = 0 ; | |
34942 | PyObject * obj0 = 0 ; | |
34943 | char * kwnames[] = { | |
34944 | (char *) "renderer", NULL | |
34945 | }; | |
34946 | ||
34947 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail; | |
34948 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34949 | if (!SWIG_IsOK(res1)) { | |
34950 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34951 | } | |
34952 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34953 | { | |
704eda0c | 34954 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 RD |
34955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34956 | result = (wxRendererNative *)wxRendererNative::Set(arg1); | |
34957 | wxPyEndAllowThreads(__tstate); | |
34958 | if (PyErr_Occurred()) SWIG_fail; | |
34959 | } | |
34960 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34961 | return resultobj; | |
34962 | fail: | |
34963 | return NULL; | |
34964 | } | |
34965 | ||
34966 | ||
34967 | SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34968 | PyObject *resultobj = 0; | |
34969 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34970 | SwigValueWrapper<wxRendererVersion > result; | |
34971 | void *argp1 = 0 ; | |
34972 | int res1 = 0 ; | |
34973 | PyObject *swig_obj[1] ; | |
34974 | ||
34975 | if (!args) SWIG_fail; | |
34976 | swig_obj[0] = args; | |
34977 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34978 | if (!SWIG_IsOK(res1)) { | |
34979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'"); | |
34980 | } | |
34981 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34982 | { | |
34983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34984 | result = ((wxRendererNative const *)arg1)->GetVersion(); | |
34985 | wxPyEndAllowThreads(__tstate); | |
34986 | if (PyErr_Occurred()) SWIG_fail; | |
34987 | } | |
34988 | resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 ); | |
34989 | return resultobj; | |
34990 | fail: | |
34991 | return NULL; | |
34992 | } | |
34993 | ||
34994 | ||
34995 | SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34996 | PyObject *obj; | |
34997 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
34998 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj)); | |
34999 | return SWIG_Py_Void(); | |
35000 | } | |
35001 | ||
27e45892 RD |
35002 | SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35003 | PyObject *resultobj = 0; | |
35004 | wxPseudoDC *result = 0 ; | |
35005 | ||
35006 | if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail; | |
35007 | { | |
35008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35009 | result = (wxPseudoDC *)new wxPseudoDC(); | |
35010 | wxPyEndAllowThreads(__tstate); | |
35011 | if (PyErr_Occurred()) SWIG_fail; | |
35012 | } | |
35013 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 ); | |
35014 | return resultobj; | |
35015 | fail: | |
35016 | return NULL; | |
35017 | } | |
35018 | ||
35019 | ||
35020 | SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35021 | PyObject *resultobj = 0; | |
35022 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35023 | void *argp1 = 0 ; | |
35024 | int res1 = 0 ; | |
35025 | PyObject *swig_obj[1] ; | |
35026 | ||
35027 | if (!args) SWIG_fail; | |
35028 | swig_obj[0] = args; | |
35029 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35030 | if (!SWIG_IsOK(res1)) { | |
35031 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35032 | } | |
35033 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35034 | { | |
35035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35036 | (arg1)->BeginDrawing(); | |
35037 | wxPyEndAllowThreads(__tstate); | |
35038 | if (PyErr_Occurred()) SWIG_fail; | |
35039 | } | |
35040 | resultobj = SWIG_Py_Void(); | |
35041 | return resultobj; | |
35042 | fail: | |
35043 | return NULL; | |
35044 | } | |
35045 | ||
35046 | ||
35047 | SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35048 | PyObject *resultobj = 0; | |
35049 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35050 | void *argp1 = 0 ; | |
35051 | int res1 = 0 ; | |
35052 | PyObject *swig_obj[1] ; | |
35053 | ||
35054 | if (!args) SWIG_fail; | |
35055 | swig_obj[0] = args; | |
35056 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35057 | if (!SWIG_IsOK(res1)) { | |
35058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35059 | } | |
35060 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35061 | { | |
35062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35063 | (arg1)->EndDrawing(); | |
35064 | wxPyEndAllowThreads(__tstate); | |
35065 | if (PyErr_Occurred()) SWIG_fail; | |
35066 | } | |
35067 | resultobj = SWIG_Py_Void(); | |
35068 | return resultobj; | |
35069 | fail: | |
35070 | return NULL; | |
35071 | } | |
35072 | ||
35073 | ||
35074 | SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35075 | PyObject *resultobj = 0; | |
35076 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35077 | void *argp1 = 0 ; | |
35078 | int res1 = 0 ; | |
35079 | PyObject *swig_obj[1] ; | |
35080 | ||
35081 | if (!args) SWIG_fail; | |
35082 | swig_obj[0] = args; | |
35083 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 ); | |
35084 | if (!SWIG_IsOK(res1)) { | |
35085 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35086 | } | |
35087 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35088 | { | |
35089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35090 | delete arg1; | |
35091 | ||
35092 | wxPyEndAllowThreads(__tstate); | |
35093 | if (PyErr_Occurred()) SWIG_fail; | |
35094 | } | |
35095 | resultobj = SWIG_Py_Void(); | |
35096 | return resultobj; | |
35097 | fail: | |
35098 | return NULL; | |
35099 | } | |
35100 | ||
35101 | ||
35102 | SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35103 | PyObject *resultobj = 0; | |
35104 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35105 | void *argp1 = 0 ; | |
35106 | int res1 = 0 ; | |
35107 | PyObject *swig_obj[1] ; | |
35108 | ||
35109 | if (!args) SWIG_fail; | |
35110 | swig_obj[0] = args; | |
35111 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35112 | if (!SWIG_IsOK(res1)) { | |
35113 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35114 | } | |
35115 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35116 | { | |
35117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35118 | (arg1)->RemoveAll(); | |
35119 | wxPyEndAllowThreads(__tstate); | |
35120 | if (PyErr_Occurred()) SWIG_fail; | |
35121 | } | |
35122 | resultobj = SWIG_Py_Void(); | |
35123 | return resultobj; | |
35124 | fail: | |
35125 | return NULL; | |
35126 | } | |
35127 | ||
35128 | ||
35129 | SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35130 | PyObject *resultobj = 0; | |
35131 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35132 | int result; | |
35133 | void *argp1 = 0 ; | |
35134 | int res1 = 0 ; | |
35135 | PyObject *swig_obj[1] ; | |
35136 | ||
35137 | if (!args) SWIG_fail; | |
35138 | swig_obj[0] = args; | |
35139 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35140 | if (!SWIG_IsOK(res1)) { | |
35141 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35142 | } | |
35143 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35144 | { | |
35145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35146 | result = (int)(arg1)->GetLen(); | |
35147 | wxPyEndAllowThreads(__tstate); | |
35148 | if (PyErr_Occurred()) SWIG_fail; | |
35149 | } | |
35150 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
35151 | return resultobj; | |
35152 | fail: | |
35153 | return NULL; | |
35154 | } | |
35155 | ||
35156 | ||
35157 | SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35158 | PyObject *resultobj = 0; | |
35159 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35160 | int arg2 ; | |
35161 | void *argp1 = 0 ; | |
35162 | int res1 = 0 ; | |
35163 | int val2 ; | |
35164 | int ecode2 = 0 ; | |
35165 | PyObject * obj0 = 0 ; | |
35166 | PyObject * obj1 = 0 ; | |
35167 | char * kwnames[] = { | |
35168 | (char *) "self",(char *) "id", NULL | |
35169 | }; | |
35170 | ||
35171 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail; | |
35172 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35173 | if (!SWIG_IsOK(res1)) { | |
35174 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35175 | } | |
35176 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35177 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35178 | if (!SWIG_IsOK(ecode2)) { | |
35179 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'"); | |
35180 | } | |
35181 | arg2 = static_cast< int >(val2); | |
35182 | { | |
35183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35184 | (arg1)->SetId(arg2); | |
35185 | wxPyEndAllowThreads(__tstate); | |
35186 | if (PyErr_Occurred()) SWIG_fail; | |
35187 | } | |
35188 | resultobj = SWIG_Py_Void(); | |
35189 | return resultobj; | |
35190 | fail: | |
35191 | return NULL; | |
35192 | } | |
35193 | ||
35194 | ||
35195 | SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35196 | PyObject *resultobj = 0; | |
35197 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35198 | int arg2 ; | |
35199 | void *argp1 = 0 ; | |
35200 | int res1 = 0 ; | |
35201 | int val2 ; | |
35202 | int ecode2 = 0 ; | |
35203 | PyObject * obj0 = 0 ; | |
35204 | PyObject * obj1 = 0 ; | |
35205 | char * kwnames[] = { | |
35206 | (char *) "self",(char *) "id", NULL | |
35207 | }; | |
35208 | ||
35209 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail; | |
35210 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35211 | if (!SWIG_IsOK(res1)) { | |
35212 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35213 | } | |
35214 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35215 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35216 | if (!SWIG_IsOK(ecode2)) { | |
35217 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'"); | |
35218 | } | |
35219 | arg2 = static_cast< int >(val2); | |
35220 | { | |
35221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35222 | (arg1)->ClearId(arg2); | |
35223 | wxPyEndAllowThreads(__tstate); | |
35224 | if (PyErr_Occurred()) SWIG_fail; | |
35225 | } | |
35226 | resultobj = SWIG_Py_Void(); | |
35227 | return resultobj; | |
35228 | fail: | |
35229 | return NULL; | |
35230 | } | |
35231 | ||
35232 | ||
35233 | SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35234 | PyObject *resultobj = 0; | |
35235 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35236 | int arg2 ; | |
35237 | void *argp1 = 0 ; | |
35238 | int res1 = 0 ; | |
35239 | int val2 ; | |
35240 | int ecode2 = 0 ; | |
35241 | PyObject * obj0 = 0 ; | |
35242 | PyObject * obj1 = 0 ; | |
35243 | char * kwnames[] = { | |
35244 | (char *) "self",(char *) "id", NULL | |
35245 | }; | |
35246 | ||
35247 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail; | |
35248 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35249 | if (!SWIG_IsOK(res1)) { | |
35250 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35251 | } | |
35252 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35253 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35254 | if (!SWIG_IsOK(ecode2)) { | |
35255 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'"); | |
35256 | } | |
35257 | arg2 = static_cast< int >(val2); | |
35258 | { | |
35259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35260 | (arg1)->RemoveId(arg2); | |
35261 | wxPyEndAllowThreads(__tstate); | |
35262 | if (PyErr_Occurred()) SWIG_fail; | |
35263 | } | |
35264 | resultobj = SWIG_Py_Void(); | |
35265 | return resultobj; | |
35266 | fail: | |
35267 | return NULL; | |
35268 | } | |
35269 | ||
35270 | ||
35271 | SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35272 | PyObject *resultobj = 0; | |
35273 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35274 | int arg2 ; | |
35275 | int arg3 ; | |
35276 | int arg4 ; | |
35277 | void *argp1 = 0 ; | |
35278 | int res1 = 0 ; | |
35279 | int val2 ; | |
35280 | int ecode2 = 0 ; | |
35281 | int val3 ; | |
35282 | int ecode3 = 0 ; | |
35283 | int val4 ; | |
35284 | int ecode4 = 0 ; | |
35285 | PyObject * obj0 = 0 ; | |
35286 | PyObject * obj1 = 0 ; | |
35287 | PyObject * obj2 = 0 ; | |
35288 | PyObject * obj3 = 0 ; | |
35289 | char * kwnames[] = { | |
35290 | (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL | |
35291 | }; | |
35292 | ||
35293 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
35294 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35295 | if (!SWIG_IsOK(res1)) { | |
35296 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35297 | } | |
35298 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35299 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35300 | if (!SWIG_IsOK(ecode2)) { | |
35301 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'"); | |
35302 | } | |
35303 | arg2 = static_cast< int >(val2); | |
35304 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35305 | if (!SWIG_IsOK(ecode3)) { | |
35306 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'"); | |
35307 | } | |
35308 | arg3 = static_cast< int >(val3); | |
35309 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35310 | if (!SWIG_IsOK(ecode4)) { | |
35311 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'"); | |
35312 | } | |
35313 | arg4 = static_cast< int >(val4); | |
35314 | { | |
35315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35316 | (arg1)->TranslateId(arg2,arg3,arg4); | |
35317 | wxPyEndAllowThreads(__tstate); | |
35318 | if (PyErr_Occurred()) SWIG_fail; | |
35319 | } | |
35320 | resultobj = SWIG_Py_Void(); | |
35321 | return resultobj; | |
35322 | fail: | |
35323 | return NULL; | |
35324 | } | |
35325 | ||
35326 | ||
72ef6efb RD |
35327 | SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35328 | PyObject *resultobj = 0; | |
35329 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35330 | int arg2 ; | |
35331 | bool arg3 = (bool) true ; | |
35332 | void *argp1 = 0 ; | |
35333 | int res1 = 0 ; | |
35334 | int val2 ; | |
35335 | int ecode2 = 0 ; | |
35336 | bool val3 ; | |
35337 | int ecode3 = 0 ; | |
35338 | PyObject * obj0 = 0 ; | |
35339 | PyObject * obj1 = 0 ; | |
35340 | PyObject * obj2 = 0 ; | |
35341 | char * kwnames[] = { | |
35342 | (char *) "self",(char *) "id",(char *) "greyout", NULL | |
35343 | }; | |
35344 | ||
35345 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35346 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35347 | if (!SWIG_IsOK(res1)) { | |
35348 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35349 | } | |
35350 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35351 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35352 | if (!SWIG_IsOK(ecode2)) { | |
35353 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'"); | |
35354 | } | |
35355 | arg2 = static_cast< int >(val2); | |
35356 | if (obj2) { | |
35357 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
35358 | if (!SWIG_IsOK(ecode3)) { | |
35359 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'"); | |
35360 | } | |
35361 | arg3 = static_cast< bool >(val3); | |
35362 | } | |
35363 | { | |
35364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35365 | (arg1)->SetIdGreyedOut(arg2,arg3); | |
35366 | wxPyEndAllowThreads(__tstate); | |
35367 | if (PyErr_Occurred()) SWIG_fail; | |
35368 | } | |
35369 | resultobj = SWIG_Py_Void(); | |
35370 | return resultobj; | |
35371 | fail: | |
35372 | return NULL; | |
35373 | } | |
35374 | ||
35375 | ||
35376 | SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35377 | PyObject *resultobj = 0; | |
35378 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35379 | int arg2 ; | |
35380 | bool result; | |
35381 | void *argp1 = 0 ; | |
35382 | int res1 = 0 ; | |
35383 | int val2 ; | |
35384 | int ecode2 = 0 ; | |
35385 | PyObject * obj0 = 0 ; | |
35386 | PyObject * obj1 = 0 ; | |
35387 | char * kwnames[] = { | |
35388 | (char *) "self",(char *) "id", NULL | |
35389 | }; | |
35390 | ||
35391 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail; | |
35392 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35393 | if (!SWIG_IsOK(res1)) { | |
35394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35395 | } | |
35396 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35397 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35398 | if (!SWIG_IsOK(ecode2)) { | |
35399 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'"); | |
35400 | } | |
35401 | arg2 = static_cast< int >(val2); | |
35402 | { | |
35403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35404 | result = (bool)(arg1)->GetIdGreyedOut(arg2); | |
35405 | wxPyEndAllowThreads(__tstate); | |
35406 | if (PyErr_Occurred()) SWIG_fail; | |
35407 | } | |
35408 | { | |
35409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35410 | } | |
35411 | return resultobj; | |
35412 | fail: | |
35413 | return NULL; | |
35414 | } | |
35415 | ||
35416 | ||
35417 | SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35418 | PyObject *resultobj = 0; | |
35419 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35420 | int arg2 ; | |
35421 | int arg3 ; | |
35422 | int arg4 = (int) 1 ; | |
35423 | wxColor const &arg5_defvalue = *wxWHITE ; | |
35424 | wxColor *arg5 = (wxColor *) &arg5_defvalue ; | |
35425 | PyObject *result = 0 ; | |
35426 | void *argp1 = 0 ; | |
35427 | int res1 = 0 ; | |
35428 | int val2 ; | |
35429 | int ecode2 = 0 ; | |
35430 | int val3 ; | |
35431 | int ecode3 = 0 ; | |
35432 | int val4 ; | |
35433 | int ecode4 = 0 ; | |
35434 | void *argp5 = 0 ; | |
35435 | int res5 = 0 ; | |
35436 | PyObject * obj0 = 0 ; | |
35437 | PyObject * obj1 = 0 ; | |
35438 | PyObject * obj2 = 0 ; | |
35439 | PyObject * obj3 = 0 ; | |
35440 | PyObject * obj4 = 0 ; | |
35441 | char * kwnames[] = { | |
35442 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL | |
35443 | }; | |
35444 | ||
35445 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35446 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35447 | if (!SWIG_IsOK(res1)) { | |
35448 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35449 | } | |
35450 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35451 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35452 | if (!SWIG_IsOK(ecode2)) { | |
35453 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'"); | |
35454 | } | |
35455 | arg2 = static_cast< int >(val2); | |
35456 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35457 | if (!SWIG_IsOK(ecode3)) { | |
35458 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'"); | |
35459 | } | |
35460 | arg3 = static_cast< int >(val3); | |
35461 | if (obj3) { | |
35462 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35463 | if (!SWIG_IsOK(ecode4)) { | |
35464 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'"); | |
35465 | } | |
35466 | arg4 = static_cast< int >(val4); | |
35467 | } | |
35468 | if (obj4) { | |
35469 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0); | |
35470 | if (!SWIG_IsOK(res5)) { | |
35471 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'"); | |
35472 | } | |
35473 | if (!argp5) { | |
35474 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'"); | |
35475 | } | |
35476 | arg5 = reinterpret_cast< wxColor * >(argp5); | |
35477 | } | |
35478 | { | |
35479 | result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5); | |
35480 | if (PyErr_Occurred()) SWIG_fail; | |
35481 | } | |
35482 | resultobj = result; | |
35483 | return resultobj; | |
35484 | fail: | |
35485 | return NULL; | |
35486 | } | |
35487 | ||
35488 | ||
35489 | SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35490 | PyObject *resultobj = 0; | |
35491 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35492 | int arg2 ; | |
35493 | int arg3 ; | |
35494 | PyObject *result = 0 ; | |
35495 | void *argp1 = 0 ; | |
35496 | int res1 = 0 ; | |
35497 | int val2 ; | |
35498 | int ecode2 = 0 ; | |
35499 | int val3 ; | |
35500 | int ecode3 = 0 ; | |
35501 | PyObject * obj0 = 0 ; | |
35502 | PyObject * obj1 = 0 ; | |
35503 | PyObject * obj2 = 0 ; | |
35504 | char * kwnames[] = { | |
35505 | (char *) "self",(char *) "x",(char *) "y", NULL | |
35506 | }; | |
35507 | ||
35508 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35509 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35510 | if (!SWIG_IsOK(res1)) { | |
35511 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35512 | } | |
35513 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35514 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35515 | if (!SWIG_IsOK(ecode2)) { | |
35516 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'"); | |
35517 | } | |
35518 | arg2 = static_cast< int >(val2); | |
35519 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35520 | if (!SWIG_IsOK(ecode3)) { | |
35521 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'"); | |
35522 | } | |
35523 | arg3 = static_cast< int >(val3); | |
35524 | { | |
35525 | result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3); | |
35526 | if (PyErr_Occurred()) SWIG_fail; | |
35527 | } | |
35528 | resultobj = result; | |
35529 | return resultobj; | |
35530 | fail: | |
35531 | return NULL; | |
35532 | } | |
35533 | ||
35534 | ||
27e45892 RD |
35535 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35536 | PyObject *resultobj = 0; | |
35537 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35538 | int arg2 ; | |
35539 | wxDC *arg3 = (wxDC *) 0 ; | |
35540 | void *argp1 = 0 ; | |
35541 | int res1 = 0 ; | |
35542 | int val2 ; | |
35543 | int ecode2 = 0 ; | |
35544 | void *argp3 = 0 ; | |
35545 | int res3 = 0 ; | |
35546 | PyObject * obj0 = 0 ; | |
35547 | PyObject * obj1 = 0 ; | |
35548 | PyObject * obj2 = 0 ; | |
35549 | char * kwnames[] = { | |
35550 | (char *) "self",(char *) "id",(char *) "dc", NULL | |
35551 | }; | |
35552 | ||
35553 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35554 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35555 | if (!SWIG_IsOK(res1)) { | |
35556 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35557 | } | |
35558 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35559 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35560 | if (!SWIG_IsOK(ecode2)) { | |
35561 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'"); | |
35562 | } | |
35563 | arg2 = static_cast< int >(val2); | |
35564 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 ); | |
35565 | if (!SWIG_IsOK(res3)) { | |
35566 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'"); | |
35567 | } | |
35568 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35569 | { | |
35570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35571 | (arg1)->DrawIdToDC(arg2,arg3); | |
35572 | wxPyEndAllowThreads(__tstate); | |
35573 | if (PyErr_Occurred()) SWIG_fail; | |
35574 | } | |
35575 | resultobj = SWIG_Py_Void(); | |
35576 | return resultobj; | |
35577 | fail: | |
35578 | return NULL; | |
35579 | } | |
35580 | ||
35581 | ||
35582 | SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35583 | PyObject *resultobj = 0; | |
35584 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35585 | int arg2 ; | |
35586 | wxRect *arg3 = 0 ; | |
35587 | void *argp1 = 0 ; | |
35588 | int res1 = 0 ; | |
35589 | int val2 ; | |
35590 | int ecode2 = 0 ; | |
35591 | wxRect temp3 ; | |
35592 | PyObject * obj0 = 0 ; | |
35593 | PyObject * obj1 = 0 ; | |
35594 | PyObject * obj2 = 0 ; | |
35595 | char * kwnames[] = { | |
35596 | (char *) "self",(char *) "id",(char *) "rect", NULL | |
35597 | }; | |
35598 | ||
35599 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35600 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35601 | if (!SWIG_IsOK(res1)) { | |
35602 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35603 | } | |
35604 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35605 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35606 | if (!SWIG_IsOK(ecode2)) { | |
35607 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'"); | |
35608 | } | |
35609 | arg2 = static_cast< int >(val2); | |
35610 | { | |
35611 | arg3 = &temp3; | |
35612 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
35613 | } | |
35614 | { | |
35615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35616 | (arg1)->SetIdBounds(arg2,*arg3); | |
35617 | wxPyEndAllowThreads(__tstate); | |
35618 | if (PyErr_Occurred()) SWIG_fail; | |
35619 | } | |
35620 | resultobj = SWIG_Py_Void(); | |
35621 | return resultobj; | |
35622 | fail: | |
35623 | return NULL; | |
35624 | } | |
35625 | ||
35626 | ||
35627 | SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35628 | PyObject *resultobj = 0; | |
35629 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35630 | int arg2 ; | |
35631 | wxRect result; | |
35632 | void *argp1 = 0 ; | |
35633 | int res1 = 0 ; | |
35634 | int val2 ; | |
35635 | int ecode2 = 0 ; | |
35636 | PyObject * obj0 = 0 ; | |
35637 | PyObject * obj1 = 0 ; | |
35638 | char * kwnames[] = { | |
35639 | (char *) "self",(char *) "id", NULL | |
35640 | }; | |
35641 | ||
35642 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail; | |
35643 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35644 | if (!SWIG_IsOK(res1)) { | |
35645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35646 | } | |
35647 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35648 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35649 | if (!SWIG_IsOK(ecode2)) { | |
35650 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'"); | |
35651 | } | |
35652 | arg2 = static_cast< int >(val2); | |
35653 | { | |
35654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35655 | result = wxPseudoDC_GetIdBounds(arg1,arg2); | |
35656 | wxPyEndAllowThreads(__tstate); | |
35657 | if (PyErr_Occurred()) SWIG_fail; | |
35658 | } | |
35659 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
35660 | return resultobj; | |
35661 | fail: | |
35662 | return NULL; | |
35663 | } | |
35664 | ||
35665 | ||
35666 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35667 | PyObject *resultobj = 0; | |
35668 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35669 | wxDC *arg2 = (wxDC *) 0 ; | |
35670 | wxRect *arg3 = 0 ; | |
35671 | void *argp1 = 0 ; | |
35672 | int res1 = 0 ; | |
35673 | void *argp2 = 0 ; | |
35674 | int res2 = 0 ; | |
35675 | wxRect temp3 ; | |
35676 | PyObject * obj0 = 0 ; | |
35677 | PyObject * obj1 = 0 ; | |
35678 | PyObject * obj2 = 0 ; | |
35679 | char * kwnames[] = { | |
35680 | (char *) "self",(char *) "dc",(char *) "rect", NULL | |
35681 | }; | |
35682 | ||
35683 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35684 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35685 | if (!SWIG_IsOK(res1)) { | |
35686 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35687 | } | |
35688 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35689 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
35690 | if (!SWIG_IsOK(res2)) { | |
35691 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'"); | |
35692 | } | |
35693 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
35694 | { | |
35695 | arg3 = &temp3; | |
35696 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
35697 | } | |
35698 | { | |
35699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35700 | (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3); | |
35701 | wxPyEndAllowThreads(__tstate); | |
35702 | if (PyErr_Occurred()) SWIG_fail; | |
35703 | } | |
35704 | resultobj = SWIG_Py_Void(); | |
35705 | return resultobj; | |
35706 | fail: | |
35707 | return NULL; | |
35708 | } | |
35709 | ||
35710 | ||
35711 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35712 | PyObject *resultobj = 0; | |
35713 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35714 | wxDC *arg2 = (wxDC *) 0 ; | |
35715 | wxRegion *arg3 = 0 ; | |
35716 | void *argp1 = 0 ; | |
35717 | int res1 = 0 ; | |
35718 | void *argp2 = 0 ; | |
35719 | int res2 = 0 ; | |
35720 | void *argp3 = 0 ; | |
35721 | int res3 = 0 ; | |
35722 | PyObject * obj0 = 0 ; | |
35723 | PyObject * obj1 = 0 ; | |
35724 | PyObject * obj2 = 0 ; | |
35725 | char * kwnames[] = { | |
35726 | (char *) "self",(char *) "dc",(char *) "region", NULL | |
35727 | }; | |
35728 | ||
35729 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35730 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35731 | if (!SWIG_IsOK(res1)) { | |
35732 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35733 | } | |
35734 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35735 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
35736 | if (!SWIG_IsOK(res2)) { | |
35737 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'"); | |
35738 | } | |
35739 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
35740 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0); | |
35741 | if (!SWIG_IsOK(res3)) { | |
35742 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'"); | |
35743 | } | |
35744 | if (!argp3) { | |
35745 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'"); | |
35746 | } | |
35747 | arg3 = reinterpret_cast< wxRegion * >(argp3); | |
35748 | { | |
35749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35750 | (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3); | |
35751 | wxPyEndAllowThreads(__tstate); | |
35752 | if (PyErr_Occurred()) SWIG_fail; | |
35753 | } | |
35754 | resultobj = SWIG_Py_Void(); | |
35755 | return resultobj; | |
35756 | fail: | |
35757 | return NULL; | |
35758 | } | |
35759 | ||
35760 | ||
35761 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35762 | PyObject *resultobj = 0; | |
35763 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35764 | wxDC *arg2 = (wxDC *) 0 ; | |
35765 | void *argp1 = 0 ; | |
35766 | int res1 = 0 ; | |
35767 | void *argp2 = 0 ; | |
35768 | int res2 = 0 ; | |
35769 | PyObject * obj0 = 0 ; | |
35770 | PyObject * obj1 = 0 ; | |
35771 | char * kwnames[] = { | |
35772 | (char *) "self",(char *) "dc", NULL | |
35773 | }; | |
35774 | ||
35775 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
35776 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35777 | if (!SWIG_IsOK(res1)) { | |
35778 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35779 | } | |
35780 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35781 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
35782 | if (!SWIG_IsOK(res2)) { | |
35783 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'"); | |
35784 | } | |
35785 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
35786 | { | |
35787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35788 | (arg1)->DrawToDC(arg2); | |
35789 | wxPyEndAllowThreads(__tstate); | |
35790 | if (PyErr_Occurred()) SWIG_fail; | |
35791 | } | |
35792 | resultobj = SWIG_Py_Void(); | |
35793 | return resultobj; | |
35794 | fail: | |
35795 | return NULL; | |
35796 | } | |
35797 | ||
35798 | ||
35799 | SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35800 | PyObject *resultobj = 0; | |
35801 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35802 | int arg2 ; | |
35803 | int arg3 ; | |
35804 | wxColour *arg4 = 0 ; | |
35805 | int arg5 = (int) wxFLOOD_SURFACE ; | |
35806 | void *argp1 = 0 ; | |
35807 | int res1 = 0 ; | |
35808 | int val2 ; | |
35809 | int ecode2 = 0 ; | |
35810 | int val3 ; | |
35811 | int ecode3 = 0 ; | |
35812 | wxColour temp4 ; | |
35813 | int val5 ; | |
35814 | int ecode5 = 0 ; | |
35815 | PyObject * obj0 = 0 ; | |
35816 | PyObject * obj1 = 0 ; | |
35817 | PyObject * obj2 = 0 ; | |
35818 | PyObject * obj3 = 0 ; | |
35819 | PyObject * obj4 = 0 ; | |
35820 | char * kwnames[] = { | |
35821 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
35822 | }; | |
35823 | ||
35824 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35825 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35826 | if (!SWIG_IsOK(res1)) { | |
35827 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35828 | } | |
35829 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35830 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35831 | if (!SWIG_IsOK(ecode2)) { | |
35832 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
35833 | } | |
35834 | arg2 = static_cast< int >(val2); | |
35835 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35836 | if (!SWIG_IsOK(ecode3)) { | |
35837 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
35838 | } | |
35839 | arg3 = static_cast< int >(val3); | |
35840 | { | |
35841 | arg4 = &temp4; | |
35842 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
35843 | } | |
35844 | if (obj4) { | |
35845 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35846 | if (!SWIG_IsOK(ecode5)) { | |
35847 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
35848 | } | |
35849 | arg5 = static_cast< int >(val5); | |
35850 | } | |
35851 | { | |
35852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35853 | (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
35854 | wxPyEndAllowThreads(__tstate); | |
35855 | if (PyErr_Occurred()) SWIG_fail; | |
35856 | } | |
35857 | resultobj = SWIG_Py_Void(); | |
35858 | return resultobj; | |
35859 | fail: | |
35860 | return NULL; | |
35861 | } | |
35862 | ||
35863 | ||
35864 | SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35865 | PyObject *resultobj = 0; | |
35866 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35867 | wxPoint *arg2 = 0 ; | |
35868 | wxColour *arg3 = 0 ; | |
35869 | int arg4 = (int) wxFLOOD_SURFACE ; | |
35870 | void *argp1 = 0 ; | |
35871 | int res1 = 0 ; | |
35872 | wxPoint temp2 ; | |
35873 | wxColour temp3 ; | |
35874 | int val4 ; | |
35875 | int ecode4 = 0 ; | |
35876 | PyObject * obj0 = 0 ; | |
35877 | PyObject * obj1 = 0 ; | |
35878 | PyObject * obj2 = 0 ; | |
35879 | PyObject * obj3 = 0 ; | |
35880 | char * kwnames[] = { | |
35881 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
35882 | }; | |
35883 | ||
35884 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35888 | } | |
35889 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35890 | { | |
35891 | arg2 = &temp2; | |
35892 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
35893 | } | |
35894 | { | |
35895 | arg3 = &temp3; | |
35896 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
35897 | } | |
35898 | if (obj3) { | |
35899 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35900 | if (!SWIG_IsOK(ecode4)) { | |
35901 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
35902 | } | |
35903 | arg4 = static_cast< int >(val4); | |
35904 | } | |
35905 | { | |
35906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35907 | (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
35908 | wxPyEndAllowThreads(__tstate); | |
35909 | if (PyErr_Occurred()) SWIG_fail; | |
35910 | } | |
35911 | resultobj = SWIG_Py_Void(); | |
35912 | return resultobj; | |
35913 | fail: | |
35914 | return NULL; | |
35915 | } | |
35916 | ||
35917 | ||
35918 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35919 | PyObject *resultobj = 0; | |
35920 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35921 | int arg2 ; | |
35922 | int arg3 ; | |
35923 | int arg4 ; | |
35924 | int arg5 ; | |
35925 | void *argp1 = 0 ; | |
35926 | int res1 = 0 ; | |
35927 | int val2 ; | |
35928 | int ecode2 = 0 ; | |
35929 | int val3 ; | |
35930 | int ecode3 = 0 ; | |
35931 | int val4 ; | |
35932 | int ecode4 = 0 ; | |
35933 | int val5 ; | |
35934 | int ecode5 = 0 ; | |
35935 | PyObject * obj0 = 0 ; | |
35936 | PyObject * obj1 = 0 ; | |
35937 | PyObject * obj2 = 0 ; | |
35938 | PyObject * obj3 = 0 ; | |
35939 | PyObject * obj4 = 0 ; | |
35940 | char * kwnames[] = { | |
35941 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
35942 | }; | |
35943 | ||
35944 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35945 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35946 | if (!SWIG_IsOK(res1)) { | |
35947 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35948 | } | |
35949 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35950 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35951 | if (!SWIG_IsOK(ecode2)) { | |
35952 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
35953 | } | |
35954 | arg2 = static_cast< int >(val2); | |
35955 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35956 | if (!SWIG_IsOK(ecode3)) { | |
35957 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
35958 | } | |
35959 | arg3 = static_cast< int >(val3); | |
35960 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35961 | if (!SWIG_IsOK(ecode4)) { | |
35962 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
35963 | } | |
35964 | arg4 = static_cast< int >(val4); | |
35965 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35966 | if (!SWIG_IsOK(ecode5)) { | |
35967 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
35968 | } | |
35969 | arg5 = static_cast< int >(val5); | |
35970 | { | |
35971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35972 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
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_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35984 | PyObject *resultobj = 0; | |
35985 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35986 | wxPoint *arg2 = 0 ; | |
35987 | wxPoint *arg3 = 0 ; | |
35988 | void *argp1 = 0 ; | |
35989 | int res1 = 0 ; | |
35990 | wxPoint temp2 ; | |
35991 | wxPoint temp3 ; | |
35992 | PyObject * obj0 = 0 ; | |
35993 | PyObject * obj1 = 0 ; | |
35994 | PyObject * obj2 = 0 ; | |
35995 | char * kwnames[] = { | |
35996 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
35997 | }; | |
35998 | ||
35999 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36000 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36001 | if (!SWIG_IsOK(res1)) { | |
36002 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36003 | } | |
36004 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36005 | { | |
36006 | arg2 = &temp2; | |
36007 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36008 | } | |
36009 | { | |
36010 | arg3 = &temp3; | |
36011 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36012 | } | |
36013 | { | |
36014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36015 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
36016 | wxPyEndAllowThreads(__tstate); | |
36017 | if (PyErr_Occurred()) SWIG_fail; | |
36018 | } | |
36019 | resultobj = SWIG_Py_Void(); | |
36020 | return resultobj; | |
36021 | fail: | |
36022 | return NULL; | |
36023 | } | |
36024 | ||
36025 | ||
36026 | SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36027 | PyObject *resultobj = 0; | |
36028 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36029 | int arg2 ; | |
36030 | int arg3 ; | |
36031 | void *argp1 = 0 ; | |
36032 | int res1 = 0 ; | |
36033 | int val2 ; | |
36034 | int ecode2 = 0 ; | |
36035 | int val3 ; | |
36036 | int ecode3 = 0 ; | |
36037 | PyObject * obj0 = 0 ; | |
36038 | PyObject * obj1 = 0 ; | |
36039 | PyObject * obj2 = 0 ; | |
36040 | char * kwnames[] = { | |
36041 | (char *) "self",(char *) "x",(char *) "y", NULL | |
36042 | }; | |
36043 | ||
36044 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36045 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36046 | if (!SWIG_IsOK(res1)) { | |
36047 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36048 | } | |
36049 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36050 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36051 | if (!SWIG_IsOK(ecode2)) { | |
36052 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
36053 | } | |
36054 | arg2 = static_cast< int >(val2); | |
36055 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36056 | if (!SWIG_IsOK(ecode3)) { | |
36057 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
36058 | } | |
36059 | arg3 = static_cast< int >(val3); | |
36060 | { | |
36061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36062 | (arg1)->CrossHair(arg2,arg3); | |
36063 | wxPyEndAllowThreads(__tstate); | |
36064 | if (PyErr_Occurred()) SWIG_fail; | |
36065 | } | |
36066 | resultobj = SWIG_Py_Void(); | |
36067 | return resultobj; | |
36068 | fail: | |
36069 | return NULL; | |
36070 | } | |
36071 | ||
36072 | ||
36073 | SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36074 | PyObject *resultobj = 0; | |
36075 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36076 | wxPoint *arg2 = 0 ; | |
36077 | void *argp1 = 0 ; | |
36078 | int res1 = 0 ; | |
36079 | wxPoint temp2 ; | |
36080 | PyObject * obj0 = 0 ; | |
36081 | PyObject * obj1 = 0 ; | |
36082 | char * kwnames[] = { | |
36083 | (char *) "self",(char *) "pt", NULL | |
36084 | }; | |
36085 | ||
36086 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
36087 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36088 | if (!SWIG_IsOK(res1)) { | |
36089 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36090 | } | |
36091 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36092 | { | |
36093 | arg2 = &temp2; | |
36094 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36095 | } | |
36096 | { | |
36097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36098 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
36099 | wxPyEndAllowThreads(__tstate); | |
36100 | if (PyErr_Occurred()) SWIG_fail; | |
36101 | } | |
36102 | resultobj = SWIG_Py_Void(); | |
36103 | return resultobj; | |
36104 | fail: | |
36105 | return NULL; | |
36106 | } | |
36107 | ||
36108 | ||
36109 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36110 | PyObject *resultobj = 0; | |
36111 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36112 | int arg2 ; | |
36113 | int arg3 ; | |
36114 | int arg4 ; | |
36115 | int arg5 ; | |
36116 | int arg6 ; | |
36117 | int arg7 ; | |
36118 | void *argp1 = 0 ; | |
36119 | int res1 = 0 ; | |
36120 | int val2 ; | |
36121 | int ecode2 = 0 ; | |
36122 | int val3 ; | |
36123 | int ecode3 = 0 ; | |
36124 | int val4 ; | |
36125 | int ecode4 = 0 ; | |
36126 | int val5 ; | |
36127 | int ecode5 = 0 ; | |
36128 | int val6 ; | |
36129 | int ecode6 = 0 ; | |
36130 | int val7 ; | |
36131 | int ecode7 = 0 ; | |
36132 | PyObject * obj0 = 0 ; | |
36133 | PyObject * obj1 = 0 ; | |
36134 | PyObject * obj2 = 0 ; | |
36135 | PyObject * obj3 = 0 ; | |
36136 | PyObject * obj4 = 0 ; | |
36137 | PyObject * obj5 = 0 ; | |
36138 | PyObject * obj6 = 0 ; | |
36139 | char * kwnames[] = { | |
36140 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
36141 | }; | |
36142 | ||
36143 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
36144 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36145 | if (!SWIG_IsOK(res1)) { | |
36146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36147 | } | |
36148 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36149 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36150 | if (!SWIG_IsOK(ecode2)) { | |
36151 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
36152 | } | |
36153 | arg2 = static_cast< int >(val2); | |
36154 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36155 | if (!SWIG_IsOK(ecode3)) { | |
36156 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
36157 | } | |
36158 | arg3 = static_cast< int >(val3); | |
36159 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36160 | if (!SWIG_IsOK(ecode4)) { | |
36161 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
36162 | } | |
36163 | arg4 = static_cast< int >(val4); | |
36164 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36165 | if (!SWIG_IsOK(ecode5)) { | |
36166 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
36167 | } | |
36168 | arg5 = static_cast< int >(val5); | |
36169 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
36170 | if (!SWIG_IsOK(ecode6)) { | |
36171 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
36172 | } | |
36173 | arg6 = static_cast< int >(val6); | |
36174 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
36175 | if (!SWIG_IsOK(ecode7)) { | |
36176 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
36177 | } | |
36178 | arg7 = static_cast< int >(val7); | |
36179 | { | |
36180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36181 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
36182 | wxPyEndAllowThreads(__tstate); | |
36183 | if (PyErr_Occurred()) SWIG_fail; | |
36184 | } | |
36185 | resultobj = SWIG_Py_Void(); | |
36186 | return resultobj; | |
36187 | fail: | |
36188 | return NULL; | |
36189 | } | |
36190 | ||
36191 | ||
36192 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36193 | PyObject *resultobj = 0; | |
36194 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36195 | wxPoint *arg2 = 0 ; | |
36196 | wxPoint *arg3 = 0 ; | |
36197 | wxPoint *arg4 = 0 ; | |
36198 | void *argp1 = 0 ; | |
36199 | int res1 = 0 ; | |
36200 | wxPoint temp2 ; | |
36201 | wxPoint temp3 ; | |
36202 | wxPoint temp4 ; | |
36203 | PyObject * obj0 = 0 ; | |
36204 | PyObject * obj1 = 0 ; | |
36205 | PyObject * obj2 = 0 ; | |
36206 | PyObject * obj3 = 0 ; | |
36207 | char * kwnames[] = { | |
36208 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
36209 | }; | |
36210 | ||
36211 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36212 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36213 | if (!SWIG_IsOK(res1)) { | |
36214 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36215 | } | |
36216 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36217 | { | |
36218 | arg2 = &temp2; | |
36219 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36220 | } | |
36221 | { | |
36222 | arg3 = &temp3; | |
36223 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36224 | } | |
36225 | { | |
36226 | arg4 = &temp4; | |
36227 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
36228 | } | |
36229 | { | |
36230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36231 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
36232 | wxPyEndAllowThreads(__tstate); | |
36233 | if (PyErr_Occurred()) SWIG_fail; | |
36234 | } | |
36235 | resultobj = SWIG_Py_Void(); | |
36236 | return resultobj; | |
36237 | fail: | |
36238 | return NULL; | |
36239 | } | |
36240 | ||
36241 | ||
36242 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36243 | PyObject *resultobj = 0; | |
36244 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36245 | int arg2 ; | |
36246 | int arg3 ; | |
36247 | int arg4 ; | |
36248 | int arg5 ; | |
36249 | void *argp1 = 0 ; | |
36250 | int res1 = 0 ; | |
36251 | int val2 ; | |
36252 | int ecode2 = 0 ; | |
36253 | int val3 ; | |
36254 | int ecode3 = 0 ; | |
36255 | int val4 ; | |
36256 | int ecode4 = 0 ; | |
36257 | int val5 ; | |
36258 | int ecode5 = 0 ; | |
36259 | PyObject * obj0 = 0 ; | |
36260 | PyObject * obj1 = 0 ; | |
36261 | PyObject * obj2 = 0 ; | |
36262 | PyObject * obj3 = 0 ; | |
36263 | PyObject * obj4 = 0 ; | |
36264 | char * kwnames[] = { | |
36265 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
36266 | }; | |
36267 | ||
36268 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36269 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36270 | if (!SWIG_IsOK(res1)) { | |
36271 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36272 | } | |
36273 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36274 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36275 | if (!SWIG_IsOK(ecode2)) { | |
36276 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
36277 | } | |
36278 | arg2 = static_cast< int >(val2); | |
36279 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36280 | if (!SWIG_IsOK(ecode3)) { | |
36281 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
36282 | } | |
36283 | arg3 = static_cast< int >(val3); | |
36284 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36285 | if (!SWIG_IsOK(ecode4)) { | |
36286 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
36287 | } | |
36288 | arg4 = static_cast< int >(val4); | |
36289 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36290 | if (!SWIG_IsOK(ecode5)) { | |
36291 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
36292 | } | |
36293 | arg5 = static_cast< int >(val5); | |
36294 | { | |
36295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36296 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
36297 | wxPyEndAllowThreads(__tstate); | |
36298 | if (PyErr_Occurred()) SWIG_fail; | |
36299 | } | |
36300 | resultobj = SWIG_Py_Void(); | |
36301 | return resultobj; | |
36302 | fail: | |
36303 | return NULL; | |
36304 | } | |
36305 | ||
36306 | ||
36307 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36308 | PyObject *resultobj = 0; | |
36309 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36310 | wxRect *arg2 = 0 ; | |
36311 | void *argp1 = 0 ; | |
36312 | int res1 = 0 ; | |
36313 | wxRect temp2 ; | |
36314 | PyObject * obj0 = 0 ; | |
36315 | PyObject * obj1 = 0 ; | |
36316 | char * kwnames[] = { | |
36317 | (char *) "self",(char *) "rect", NULL | |
36318 | }; | |
36319 | ||
36320 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
36321 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36322 | if (!SWIG_IsOK(res1)) { | |
36323 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36324 | } | |
36325 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36326 | { | |
36327 | arg2 = &temp2; | |
36328 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
36329 | } | |
36330 | { | |
36331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36332 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
36333 | wxPyEndAllowThreads(__tstate); | |
36334 | if (PyErr_Occurred()) SWIG_fail; | |
36335 | } | |
36336 | resultobj = SWIG_Py_Void(); | |
36337 | return resultobj; | |
36338 | fail: | |
36339 | return NULL; | |
36340 | } | |
36341 | ||
36342 | ||
36343 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36344 | PyObject *resultobj = 0; | |
36345 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36346 | int arg2 ; | |
36347 | int arg3 ; | |
36348 | int arg4 ; | |
36349 | int arg5 ; | |
36350 | double arg6 ; | |
36351 | double arg7 ; | |
36352 | void *argp1 = 0 ; | |
36353 | int res1 = 0 ; | |
36354 | int val2 ; | |
36355 | int ecode2 = 0 ; | |
36356 | int val3 ; | |
36357 | int ecode3 = 0 ; | |
36358 | int val4 ; | |
36359 | int ecode4 = 0 ; | |
36360 | int val5 ; | |
36361 | int ecode5 = 0 ; | |
36362 | double val6 ; | |
36363 | int ecode6 = 0 ; | |
36364 | double val7 ; | |
36365 | int ecode7 = 0 ; | |
36366 | PyObject * obj0 = 0 ; | |
36367 | PyObject * obj1 = 0 ; | |
36368 | PyObject * obj2 = 0 ; | |
36369 | PyObject * obj3 = 0 ; | |
36370 | PyObject * obj4 = 0 ; | |
36371 | PyObject * obj5 = 0 ; | |
36372 | PyObject * obj6 = 0 ; | |
36373 | char * kwnames[] = { | |
36374 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
36375 | }; | |
36376 | ||
36377 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
36378 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36379 | if (!SWIG_IsOK(res1)) { | |
36380 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36381 | } | |
36382 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36383 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36384 | if (!SWIG_IsOK(ecode2)) { | |
36385 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
36386 | } | |
36387 | arg2 = static_cast< int >(val2); | |
36388 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36389 | if (!SWIG_IsOK(ecode3)) { | |
36390 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
36391 | } | |
36392 | arg3 = static_cast< int >(val3); | |
36393 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36394 | if (!SWIG_IsOK(ecode4)) { | |
36395 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
36396 | } | |
36397 | arg4 = static_cast< int >(val4); | |
36398 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36399 | if (!SWIG_IsOK(ecode5)) { | |
36400 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
36401 | } | |
36402 | arg5 = static_cast< int >(val5); | |
36403 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
36404 | if (!SWIG_IsOK(ecode6)) { | |
36405 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
36406 | } | |
36407 | arg6 = static_cast< double >(val6); | |
36408 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
36409 | if (!SWIG_IsOK(ecode7)) { | |
36410 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
36411 | } | |
36412 | arg7 = static_cast< double >(val7); | |
36413 | { | |
36414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36415 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
36416 | wxPyEndAllowThreads(__tstate); | |
36417 | if (PyErr_Occurred()) SWIG_fail; | |
36418 | } | |
36419 | resultobj = SWIG_Py_Void(); | |
36420 | return resultobj; | |
36421 | fail: | |
36422 | return NULL; | |
36423 | } | |
36424 | ||
36425 | ||
36426 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36427 | PyObject *resultobj = 0; | |
36428 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36429 | wxPoint *arg2 = 0 ; | |
36430 | wxSize *arg3 = 0 ; | |
36431 | double arg4 ; | |
36432 | double arg5 ; | |
36433 | void *argp1 = 0 ; | |
36434 | int res1 = 0 ; | |
36435 | wxPoint temp2 ; | |
36436 | wxSize temp3 ; | |
36437 | double val4 ; | |
36438 | int ecode4 = 0 ; | |
36439 | double val5 ; | |
36440 | int ecode5 = 0 ; | |
36441 | PyObject * obj0 = 0 ; | |
36442 | PyObject * obj1 = 0 ; | |
36443 | PyObject * obj2 = 0 ; | |
36444 | PyObject * obj3 = 0 ; | |
36445 | PyObject * obj4 = 0 ; | |
36446 | char * kwnames[] = { | |
36447 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
36448 | }; | |
36449 | ||
36450 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36451 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36452 | if (!SWIG_IsOK(res1)) { | |
36453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36454 | } | |
36455 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36456 | { | |
36457 | arg2 = &temp2; | |
36458 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36459 | } | |
36460 | { | |
36461 | arg3 = &temp3; | |
36462 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
36463 | } | |
36464 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
36465 | if (!SWIG_IsOK(ecode4)) { | |
36466 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
36467 | } | |
36468 | arg4 = static_cast< double >(val4); | |
36469 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
36470 | if (!SWIG_IsOK(ecode5)) { | |
36471 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
36472 | } | |
36473 | arg5 = static_cast< double >(val5); | |
36474 | { | |
36475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36476 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
36477 | wxPyEndAllowThreads(__tstate); | |
36478 | if (PyErr_Occurred()) SWIG_fail; | |
36479 | } | |
36480 | resultobj = SWIG_Py_Void(); | |
36481 | return resultobj; | |
36482 | fail: | |
36483 | return NULL; | |
36484 | } | |
36485 | ||
36486 | ||
36487 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36488 | PyObject *resultobj = 0; | |
36489 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36490 | int arg2 ; | |
36491 | int arg3 ; | |
36492 | void *argp1 = 0 ; | |
36493 | int res1 = 0 ; | |
36494 | int val2 ; | |
36495 | int ecode2 = 0 ; | |
36496 | int val3 ; | |
36497 | int ecode3 = 0 ; | |
36498 | PyObject * obj0 = 0 ; | |
36499 | PyObject * obj1 = 0 ; | |
36500 | PyObject * obj2 = 0 ; | |
36501 | char * kwnames[] = { | |
36502 | (char *) "self",(char *) "x",(char *) "y", NULL | |
36503 | }; | |
36504 | ||
36505 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36506 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36507 | if (!SWIG_IsOK(res1)) { | |
36508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36509 | } | |
36510 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36511 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36512 | if (!SWIG_IsOK(ecode2)) { | |
36513 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
36514 | } | |
36515 | arg2 = static_cast< int >(val2); | |
36516 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36517 | if (!SWIG_IsOK(ecode3)) { | |
36518 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
36519 | } | |
36520 | arg3 = static_cast< int >(val3); | |
36521 | { | |
36522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36523 | (arg1)->DrawPoint(arg2,arg3); | |
36524 | wxPyEndAllowThreads(__tstate); | |
36525 | if (PyErr_Occurred()) SWIG_fail; | |
36526 | } | |
36527 | resultobj = SWIG_Py_Void(); | |
36528 | return resultobj; | |
36529 | fail: | |
36530 | return NULL; | |
36531 | } | |
36532 | ||
36533 | ||
36534 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36535 | PyObject *resultobj = 0; | |
36536 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36537 | wxPoint *arg2 = 0 ; | |
36538 | void *argp1 = 0 ; | |
36539 | int res1 = 0 ; | |
36540 | wxPoint temp2 ; | |
36541 | PyObject * obj0 = 0 ; | |
36542 | PyObject * obj1 = 0 ; | |
36543 | char * kwnames[] = { | |
36544 | (char *) "self",(char *) "pt", NULL | |
36545 | }; | |
36546 | ||
36547 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
36548 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36549 | if (!SWIG_IsOK(res1)) { | |
36550 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36551 | } | |
36552 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36553 | { | |
36554 | arg2 = &temp2; | |
36555 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36556 | } | |
36557 | { | |
36558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36559 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
36560 | wxPyEndAllowThreads(__tstate); | |
36561 | if (PyErr_Occurred()) SWIG_fail; | |
36562 | } | |
36563 | resultobj = SWIG_Py_Void(); | |
36564 | return resultobj; | |
36565 | fail: | |
36566 | return NULL; | |
36567 | } | |
36568 | ||
36569 | ||
36570 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36571 | PyObject *resultobj = 0; | |
36572 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36573 | int arg2 ; | |
36574 | int arg3 ; | |
36575 | int arg4 ; | |
36576 | int arg5 ; | |
36577 | void *argp1 = 0 ; | |
36578 | int res1 = 0 ; | |
36579 | int val2 ; | |
36580 | int ecode2 = 0 ; | |
36581 | int val3 ; | |
36582 | int ecode3 = 0 ; | |
36583 | int val4 ; | |
36584 | int ecode4 = 0 ; | |
36585 | int val5 ; | |
36586 | int ecode5 = 0 ; | |
36587 | PyObject * obj0 = 0 ; | |
36588 | PyObject * obj1 = 0 ; | |
36589 | PyObject * obj2 = 0 ; | |
36590 | PyObject * obj3 = 0 ; | |
36591 | PyObject * obj4 = 0 ; | |
36592 | char * kwnames[] = { | |
36593 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
36594 | }; | |
36595 | ||
36596 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36597 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36598 | if (!SWIG_IsOK(res1)) { | |
36599 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36600 | } | |
36601 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36602 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36603 | if (!SWIG_IsOK(ecode2)) { | |
36604 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
36605 | } | |
36606 | arg2 = static_cast< int >(val2); | |
36607 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36608 | if (!SWIG_IsOK(ecode3)) { | |
36609 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
36610 | } | |
36611 | arg3 = static_cast< int >(val3); | |
36612 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36613 | if (!SWIG_IsOK(ecode4)) { | |
36614 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
36615 | } | |
36616 | arg4 = static_cast< int >(val4); | |
36617 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36618 | if (!SWIG_IsOK(ecode5)) { | |
36619 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
36620 | } | |
36621 | arg5 = static_cast< int >(val5); | |
36622 | { | |
36623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36624 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
36625 | wxPyEndAllowThreads(__tstate); | |
36626 | if (PyErr_Occurred()) SWIG_fail; | |
36627 | } | |
36628 | resultobj = SWIG_Py_Void(); | |
36629 | return resultobj; | |
36630 | fail: | |
36631 | return NULL; | |
36632 | } | |
36633 | ||
36634 | ||
36635 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36636 | PyObject *resultobj = 0; | |
36637 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36638 | wxRect *arg2 = 0 ; | |
36639 | void *argp1 = 0 ; | |
36640 | int res1 = 0 ; | |
36641 | wxRect temp2 ; | |
36642 | PyObject * obj0 = 0 ; | |
36643 | PyObject * obj1 = 0 ; | |
36644 | char * kwnames[] = { | |
36645 | (char *) "self",(char *) "rect", NULL | |
36646 | }; | |
36647 | ||
36648 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) 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_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36652 | } | |
36653 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36654 | { | |
36655 | arg2 = &temp2; | |
36656 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
36657 | } | |
36658 | { | |
36659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36660 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
36661 | wxPyEndAllowThreads(__tstate); | |
36662 | if (PyErr_Occurred()) SWIG_fail; | |
36663 | } | |
36664 | resultobj = SWIG_Py_Void(); | |
36665 | return resultobj; | |
36666 | fail: | |
36667 | return NULL; | |
36668 | } | |
36669 | ||
36670 | ||
36671 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36672 | PyObject *resultobj = 0; | |
36673 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36674 | wxPoint *arg2 = 0 ; | |
36675 | wxSize *arg3 = 0 ; | |
36676 | void *argp1 = 0 ; | |
36677 | int res1 = 0 ; | |
36678 | wxPoint temp2 ; | |
36679 | wxSize temp3 ; | |
36680 | PyObject * obj0 = 0 ; | |
36681 | PyObject * obj1 = 0 ; | |
36682 | PyObject * obj2 = 0 ; | |
36683 | char * kwnames[] = { | |
36684 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
36685 | }; | |
36686 | ||
36687 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36688 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36689 | if (!SWIG_IsOK(res1)) { | |
36690 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36691 | } | |
36692 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36693 | { | |
36694 | arg2 = &temp2; | |
36695 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36696 | } | |
36697 | { | |
36698 | arg3 = &temp3; | |
36699 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
36700 | } | |
36701 | { | |
36702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36703 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
36704 | wxPyEndAllowThreads(__tstate); | |
36705 | if (PyErr_Occurred()) SWIG_fail; | |
36706 | } | |
36707 | resultobj = SWIG_Py_Void(); | |
36708 | return resultobj; | |
36709 | fail: | |
36710 | return NULL; | |
36711 | } | |
36712 | ||
36713 | ||
36714 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36715 | PyObject *resultobj = 0; | |
36716 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36717 | int arg2 ; | |
36718 | int arg3 ; | |
36719 | int arg4 ; | |
36720 | int arg5 ; | |
36721 | double arg6 ; | |
36722 | void *argp1 = 0 ; | |
36723 | int res1 = 0 ; | |
36724 | int val2 ; | |
36725 | int ecode2 = 0 ; | |
36726 | int val3 ; | |
36727 | int ecode3 = 0 ; | |
36728 | int val4 ; | |
36729 | int ecode4 = 0 ; | |
36730 | int val5 ; | |
36731 | int ecode5 = 0 ; | |
36732 | double val6 ; | |
36733 | int ecode6 = 0 ; | |
36734 | PyObject * obj0 = 0 ; | |
36735 | PyObject * obj1 = 0 ; | |
36736 | PyObject * obj2 = 0 ; | |
36737 | PyObject * obj3 = 0 ; | |
36738 | PyObject * obj4 = 0 ; | |
36739 | PyObject * obj5 = 0 ; | |
36740 | char * kwnames[] = { | |
36741 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
36742 | }; | |
36743 | ||
36744 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
36745 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36746 | if (!SWIG_IsOK(res1)) { | |
36747 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36748 | } | |
36749 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36750 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36751 | if (!SWIG_IsOK(ecode2)) { | |
36752 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'"); | |
36753 | } | |
36754 | arg2 = static_cast< int >(val2); | |
36755 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36756 | if (!SWIG_IsOK(ecode3)) { | |
36757 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
36758 | } | |
36759 | arg3 = static_cast< int >(val3); | |
36760 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36761 | if (!SWIG_IsOK(ecode4)) { | |
36762 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
36763 | } | |
36764 | arg4 = static_cast< int >(val4); | |
36765 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36766 | if (!SWIG_IsOK(ecode5)) { | |
36767 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
36768 | } | |
36769 | arg5 = static_cast< int >(val5); | |
36770 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
36771 | if (!SWIG_IsOK(ecode6)) { | |
36772 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
36773 | } | |
36774 | arg6 = static_cast< double >(val6); | |
36775 | { | |
36776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36777 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
36778 | wxPyEndAllowThreads(__tstate); | |
36779 | if (PyErr_Occurred()) SWIG_fail; | |
36780 | } | |
36781 | resultobj = SWIG_Py_Void(); | |
36782 | return resultobj; | |
36783 | fail: | |
36784 | return NULL; | |
36785 | } | |
36786 | ||
36787 | ||
36788 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36789 | PyObject *resultobj = 0; | |
36790 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36791 | wxRect *arg2 = 0 ; | |
36792 | double arg3 ; | |
36793 | void *argp1 = 0 ; | |
36794 | int res1 = 0 ; | |
36795 | wxRect temp2 ; | |
36796 | double val3 ; | |
36797 | int ecode3 = 0 ; | |
36798 | PyObject * obj0 = 0 ; | |
36799 | PyObject * obj1 = 0 ; | |
36800 | PyObject * obj2 = 0 ; | |
36801 | char * kwnames[] = { | |
36802 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
36803 | }; | |
36804 | ||
36805 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) 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_DrawRoundedRectangleRect" "', 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 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
36816 | if (!SWIG_IsOK(ecode3)) { | |
36817 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
36818 | } | |
36819 | arg3 = static_cast< double >(val3); | |
36820 | { | |
36821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36822 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
36823 | wxPyEndAllowThreads(__tstate); | |
36824 | if (PyErr_Occurred()) SWIG_fail; | |
36825 | } | |
36826 | resultobj = SWIG_Py_Void(); | |
36827 | return resultobj; | |
36828 | fail: | |
36829 | return NULL; | |
36830 | } | |
36831 | ||
36832 | ||
36833 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36834 | PyObject *resultobj = 0; | |
36835 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36836 | wxPoint *arg2 = 0 ; | |
36837 | wxSize *arg3 = 0 ; | |
36838 | double arg4 ; | |
36839 | void *argp1 = 0 ; | |
36840 | int res1 = 0 ; | |
36841 | wxPoint temp2 ; | |
36842 | wxSize temp3 ; | |
36843 | double val4 ; | |
36844 | int ecode4 = 0 ; | |
36845 | PyObject * obj0 = 0 ; | |
36846 | PyObject * obj1 = 0 ; | |
36847 | PyObject * obj2 = 0 ; | |
36848 | PyObject * obj3 = 0 ; | |
36849 | char * kwnames[] = { | |
36850 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
36851 | }; | |
36852 | ||
36853 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36854 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36855 | if (!SWIG_IsOK(res1)) { | |
36856 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36857 | } | |
36858 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36859 | { | |
36860 | arg2 = &temp2; | |
36861 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36862 | } | |
36863 | { | |
36864 | arg3 = &temp3; | |
36865 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
36866 | } | |
36867 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
36868 | if (!SWIG_IsOK(ecode4)) { | |
36869 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
36870 | } | |
36871 | arg4 = static_cast< double >(val4); | |
36872 | { | |
36873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36874 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
36875 | wxPyEndAllowThreads(__tstate); | |
36876 | if (PyErr_Occurred()) SWIG_fail; | |
36877 | } | |
36878 | resultobj = SWIG_Py_Void(); | |
36879 | return resultobj; | |
36880 | fail: | |
36881 | return NULL; | |
36882 | } | |
36883 | ||
36884 | ||
36885 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36886 | PyObject *resultobj = 0; | |
36887 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36888 | int arg2 ; | |
36889 | int arg3 ; | |
36890 | int arg4 ; | |
36891 | void *argp1 = 0 ; | |
36892 | int res1 = 0 ; | |
36893 | int val2 ; | |
36894 | int ecode2 = 0 ; | |
36895 | int val3 ; | |
36896 | int ecode3 = 0 ; | |
36897 | int val4 ; | |
36898 | int ecode4 = 0 ; | |
36899 | PyObject * obj0 = 0 ; | |
36900 | PyObject * obj1 = 0 ; | |
36901 | PyObject * obj2 = 0 ; | |
36902 | PyObject * obj3 = 0 ; | |
36903 | char * kwnames[] = { | |
36904 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
36905 | }; | |
36906 | ||
36907 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36908 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36909 | if (!SWIG_IsOK(res1)) { | |
36910 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36911 | } | |
36912 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36913 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36914 | if (!SWIG_IsOK(ecode2)) { | |
36915 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
36916 | } | |
36917 | arg2 = static_cast< int >(val2); | |
36918 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36919 | if (!SWIG_IsOK(ecode3)) { | |
36920 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
36921 | } | |
36922 | arg3 = static_cast< int >(val3); | |
36923 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36924 | if (!SWIG_IsOK(ecode4)) { | |
36925 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
36926 | } | |
36927 | arg4 = static_cast< int >(val4); | |
36928 | { | |
36929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36930 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
36931 | wxPyEndAllowThreads(__tstate); | |
36932 | if (PyErr_Occurred()) SWIG_fail; | |
36933 | } | |
36934 | resultobj = SWIG_Py_Void(); | |
36935 | return resultobj; | |
36936 | fail: | |
36937 | return NULL; | |
36938 | } | |
36939 | ||
36940 | ||
36941 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36942 | PyObject *resultobj = 0; | |
36943 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36944 | wxPoint *arg2 = 0 ; | |
36945 | int arg3 ; | |
36946 | void *argp1 = 0 ; | |
36947 | int res1 = 0 ; | |
36948 | wxPoint temp2 ; | |
36949 | int val3 ; | |
36950 | int ecode3 = 0 ; | |
36951 | PyObject * obj0 = 0 ; | |
36952 | PyObject * obj1 = 0 ; | |
36953 | PyObject * obj2 = 0 ; | |
36954 | char * kwnames[] = { | |
36955 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
36956 | }; | |
36957 | ||
36958 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36959 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36960 | if (!SWIG_IsOK(res1)) { | |
36961 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36962 | } | |
36963 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36964 | { | |
36965 | arg2 = &temp2; | |
36966 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36967 | } | |
36968 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36969 | if (!SWIG_IsOK(ecode3)) { | |
36970 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
36971 | } | |
36972 | arg3 = static_cast< int >(val3); | |
36973 | { | |
36974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36975 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
36976 | wxPyEndAllowThreads(__tstate); | |
36977 | if (PyErr_Occurred()) SWIG_fail; | |
36978 | } | |
36979 | resultobj = SWIG_Py_Void(); | |
36980 | return resultobj; | |
36981 | fail: | |
36982 | return NULL; | |
36983 | } | |
36984 | ||
36985 | ||
36986 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36987 | PyObject *resultobj = 0; | |
36988 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36989 | int arg2 ; | |
36990 | int arg3 ; | |
36991 | int arg4 ; | |
36992 | int arg5 ; | |
36993 | void *argp1 = 0 ; | |
36994 | int res1 = 0 ; | |
36995 | int val2 ; | |
36996 | int ecode2 = 0 ; | |
36997 | int val3 ; | |
36998 | int ecode3 = 0 ; | |
36999 | int val4 ; | |
37000 | int ecode4 = 0 ; | |
37001 | int val5 ; | |
37002 | int ecode5 = 0 ; | |
37003 | PyObject * obj0 = 0 ; | |
37004 | PyObject * obj1 = 0 ; | |
37005 | PyObject * obj2 = 0 ; | |
37006 | PyObject * obj3 = 0 ; | |
37007 | PyObject * obj4 = 0 ; | |
37008 | char * kwnames[] = { | |
37009 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
37010 | }; | |
37011 | ||
37012 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37013 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37014 | if (!SWIG_IsOK(res1)) { | |
37015 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37016 | } | |
37017 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37018 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37019 | if (!SWIG_IsOK(ecode2)) { | |
37020 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
37021 | } | |
37022 | arg2 = static_cast< int >(val2); | |
37023 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37024 | if (!SWIG_IsOK(ecode3)) { | |
37025 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'"); | |
37026 | } | |
37027 | arg3 = static_cast< int >(val3); | |
37028 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37029 | if (!SWIG_IsOK(ecode4)) { | |
37030 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
37031 | } | |
37032 | arg4 = static_cast< int >(val4); | |
37033 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37034 | if (!SWIG_IsOK(ecode5)) { | |
37035 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
37036 | } | |
37037 | arg5 = static_cast< int >(val5); | |
37038 | { | |
37039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37040 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
37041 | wxPyEndAllowThreads(__tstate); | |
37042 | if (PyErr_Occurred()) SWIG_fail; | |
37043 | } | |
37044 | resultobj = SWIG_Py_Void(); | |
37045 | return resultobj; | |
37046 | fail: | |
37047 | return NULL; | |
37048 | } | |
37049 | ||
37050 | ||
37051 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37052 | PyObject *resultobj = 0; | |
37053 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37054 | wxRect *arg2 = 0 ; | |
37055 | void *argp1 = 0 ; | |
37056 | int res1 = 0 ; | |
37057 | wxRect temp2 ; | |
37058 | PyObject * obj0 = 0 ; | |
37059 | PyObject * obj1 = 0 ; | |
37060 | char * kwnames[] = { | |
37061 | (char *) "self",(char *) "rect", NULL | |
37062 | }; | |
37063 | ||
37064 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
37065 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37066 | if (!SWIG_IsOK(res1)) { | |
37067 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37068 | } | |
37069 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37070 | { | |
37071 | arg2 = &temp2; | |
37072 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
37073 | } | |
37074 | { | |
37075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37076 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
37077 | wxPyEndAllowThreads(__tstate); | |
37078 | if (PyErr_Occurred()) SWIG_fail; | |
37079 | } | |
37080 | resultobj = SWIG_Py_Void(); | |
37081 | return resultobj; | |
37082 | fail: | |
37083 | return NULL; | |
37084 | } | |
37085 | ||
37086 | ||
37087 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37088 | PyObject *resultobj = 0; | |
37089 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37090 | wxPoint *arg2 = 0 ; | |
37091 | wxSize *arg3 = 0 ; | |
37092 | void *argp1 = 0 ; | |
37093 | int res1 = 0 ; | |
37094 | wxPoint temp2 ; | |
37095 | wxSize temp3 ; | |
37096 | PyObject * obj0 = 0 ; | |
37097 | PyObject * obj1 = 0 ; | |
37098 | PyObject * obj2 = 0 ; | |
37099 | char * kwnames[] = { | |
37100 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
37101 | }; | |
37102 | ||
37103 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37104 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37105 | if (!SWIG_IsOK(res1)) { | |
37106 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37107 | } | |
37108 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37109 | { | |
37110 | arg2 = &temp2; | |
37111 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37112 | } | |
37113 | { | |
37114 | arg3 = &temp3; | |
37115 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
37116 | } | |
37117 | { | |
37118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37119 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
37120 | wxPyEndAllowThreads(__tstate); | |
37121 | if (PyErr_Occurred()) SWIG_fail; | |
37122 | } | |
37123 | resultobj = SWIG_Py_Void(); | |
37124 | return resultobj; | |
37125 | fail: | |
37126 | return NULL; | |
37127 | } | |
37128 | ||
37129 | ||
37130 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37131 | PyObject *resultobj = 0; | |
37132 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37133 | wxIcon *arg2 = 0 ; | |
37134 | int arg3 ; | |
37135 | int arg4 ; | |
37136 | void *argp1 = 0 ; | |
37137 | int res1 = 0 ; | |
37138 | void *argp2 = 0 ; | |
37139 | int res2 = 0 ; | |
37140 | int val3 ; | |
37141 | int ecode3 = 0 ; | |
37142 | int val4 ; | |
37143 | int ecode4 = 0 ; | |
37144 | PyObject * obj0 = 0 ; | |
37145 | PyObject * obj1 = 0 ; | |
37146 | PyObject * obj2 = 0 ; | |
37147 | PyObject * obj3 = 0 ; | |
37148 | char * kwnames[] = { | |
37149 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
37150 | }; | |
37151 | ||
37152 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37153 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37154 | if (!SWIG_IsOK(res1)) { | |
37155 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37156 | } | |
37157 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37158 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
37159 | if (!SWIG_IsOK(res2)) { | |
37160 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
37161 | } | |
37162 | if (!argp2) { | |
37163 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
37164 | } | |
37165 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
37166 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37167 | if (!SWIG_IsOK(ecode3)) { | |
37168 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
37169 | } | |
37170 | arg3 = static_cast< int >(val3); | |
37171 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37172 | if (!SWIG_IsOK(ecode4)) { | |
37173 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
37174 | } | |
37175 | arg4 = static_cast< int >(val4); | |
37176 | { | |
37177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37178 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
37179 | wxPyEndAllowThreads(__tstate); | |
37180 | if (PyErr_Occurred()) SWIG_fail; | |
37181 | } | |
37182 | resultobj = SWIG_Py_Void(); | |
37183 | return resultobj; | |
37184 | fail: | |
37185 | return NULL; | |
37186 | } | |
37187 | ||
37188 | ||
37189 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37190 | PyObject *resultobj = 0; | |
37191 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37192 | wxIcon *arg2 = 0 ; | |
37193 | wxPoint *arg3 = 0 ; | |
37194 | void *argp1 = 0 ; | |
37195 | int res1 = 0 ; | |
37196 | void *argp2 = 0 ; | |
37197 | int res2 = 0 ; | |
37198 | wxPoint temp3 ; | |
37199 | PyObject * obj0 = 0 ; | |
37200 | PyObject * obj1 = 0 ; | |
37201 | PyObject * obj2 = 0 ; | |
37202 | char * kwnames[] = { | |
37203 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
37204 | }; | |
37205 | ||
37206 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37207 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37208 | if (!SWIG_IsOK(res1)) { | |
37209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37210 | } | |
37211 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37212 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
37213 | if (!SWIG_IsOK(res2)) { | |
37214 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
37215 | } | |
37216 | if (!argp2) { | |
37217 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
37218 | } | |
37219 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
37220 | { | |
37221 | arg3 = &temp3; | |
37222 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37223 | } | |
37224 | { | |
37225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37226 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
37227 | wxPyEndAllowThreads(__tstate); | |
37228 | if (PyErr_Occurred()) SWIG_fail; | |
37229 | } | |
37230 | resultobj = SWIG_Py_Void(); | |
37231 | return resultobj; | |
37232 | fail: | |
37233 | return NULL; | |
37234 | } | |
37235 | ||
37236 | ||
37237 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37238 | PyObject *resultobj = 0; | |
37239 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37240 | wxBitmap *arg2 = 0 ; | |
37241 | int arg3 ; | |
37242 | int arg4 ; | |
37243 | bool arg5 = (bool) false ; | |
37244 | void *argp1 = 0 ; | |
37245 | int res1 = 0 ; | |
37246 | void *argp2 = 0 ; | |
37247 | int res2 = 0 ; | |
37248 | int val3 ; | |
37249 | int ecode3 = 0 ; | |
37250 | int val4 ; | |
37251 | int ecode4 = 0 ; | |
37252 | bool val5 ; | |
37253 | int ecode5 = 0 ; | |
37254 | PyObject * obj0 = 0 ; | |
37255 | PyObject * obj1 = 0 ; | |
37256 | PyObject * obj2 = 0 ; | |
37257 | PyObject * obj3 = 0 ; | |
37258 | PyObject * obj4 = 0 ; | |
37259 | char * kwnames[] = { | |
37260 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
37261 | }; | |
37262 | ||
37263 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37264 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37265 | if (!SWIG_IsOK(res1)) { | |
37266 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37267 | } | |
37268 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37269 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
37270 | if (!SWIG_IsOK(res2)) { | |
37271 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
37272 | } | |
37273 | if (!argp2) { | |
37274 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
37275 | } | |
37276 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
37277 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37278 | if (!SWIG_IsOK(ecode3)) { | |
37279 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
37280 | } | |
37281 | arg3 = static_cast< int >(val3); | |
37282 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37283 | if (!SWIG_IsOK(ecode4)) { | |
37284 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
37285 | } | |
37286 | arg4 = static_cast< int >(val4); | |
37287 | if (obj4) { | |
37288 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
37289 | if (!SWIG_IsOK(ecode5)) { | |
37290 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
37291 | } | |
37292 | arg5 = static_cast< bool >(val5); | |
37293 | } | |
37294 | { | |
37295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37296 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
37297 | wxPyEndAllowThreads(__tstate); | |
37298 | if (PyErr_Occurred()) SWIG_fail; | |
37299 | } | |
37300 | resultobj = SWIG_Py_Void(); | |
37301 | return resultobj; | |
37302 | fail: | |
37303 | return NULL; | |
37304 | } | |
37305 | ||
37306 | ||
37307 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37308 | PyObject *resultobj = 0; | |
37309 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37310 | wxBitmap *arg2 = 0 ; | |
37311 | wxPoint *arg3 = 0 ; | |
37312 | bool arg4 = (bool) false ; | |
37313 | void *argp1 = 0 ; | |
37314 | int res1 = 0 ; | |
37315 | void *argp2 = 0 ; | |
37316 | int res2 = 0 ; | |
37317 | wxPoint temp3 ; | |
37318 | bool val4 ; | |
37319 | int ecode4 = 0 ; | |
37320 | PyObject * obj0 = 0 ; | |
37321 | PyObject * obj1 = 0 ; | |
37322 | PyObject * obj2 = 0 ; | |
37323 | PyObject * obj3 = 0 ; | |
37324 | char * kwnames[] = { | |
37325 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
37326 | }; | |
37327 | ||
37328 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37329 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37330 | if (!SWIG_IsOK(res1)) { | |
37331 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37332 | } | |
37333 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37334 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
37335 | if (!SWIG_IsOK(res2)) { | |
37336 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
37337 | } | |
37338 | if (!argp2) { | |
37339 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
37340 | } | |
37341 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
37342 | { | |
37343 | arg3 = &temp3; | |
37344 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37345 | } | |
37346 | if (obj3) { | |
37347 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
37348 | if (!SWIG_IsOK(ecode4)) { | |
37349 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
37350 | } | |
37351 | arg4 = static_cast< bool >(val4); | |
37352 | } | |
37353 | { | |
37354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37355 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
37356 | wxPyEndAllowThreads(__tstate); | |
37357 | if (PyErr_Occurred()) SWIG_fail; | |
37358 | } | |
37359 | resultobj = SWIG_Py_Void(); | |
37360 | return resultobj; | |
37361 | fail: | |
37362 | return NULL; | |
37363 | } | |
37364 | ||
37365 | ||
37366 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37367 | PyObject *resultobj = 0; | |
37368 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37369 | wxString *arg2 = 0 ; | |
37370 | int arg3 ; | |
37371 | int arg4 ; | |
37372 | void *argp1 = 0 ; | |
37373 | int res1 = 0 ; | |
37374 | bool temp2 = false ; | |
37375 | int val3 ; | |
37376 | int ecode3 = 0 ; | |
37377 | int val4 ; | |
37378 | int ecode4 = 0 ; | |
37379 | PyObject * obj0 = 0 ; | |
37380 | PyObject * obj1 = 0 ; | |
37381 | PyObject * obj2 = 0 ; | |
37382 | PyObject * obj3 = 0 ; | |
37383 | char * kwnames[] = { | |
37384 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
37385 | }; | |
37386 | ||
37387 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37388 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37389 | if (!SWIG_IsOK(res1)) { | |
37390 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37391 | } | |
37392 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37393 | { | |
37394 | arg2 = wxString_in_helper(obj1); | |
37395 | if (arg2 == NULL) SWIG_fail; | |
37396 | temp2 = true; | |
37397 | } | |
37398 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37399 | if (!SWIG_IsOK(ecode3)) { | |
37400 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
37401 | } | |
37402 | arg3 = static_cast< int >(val3); | |
37403 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37404 | if (!SWIG_IsOK(ecode4)) { | |
37405 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
37406 | } | |
37407 | arg4 = static_cast< int >(val4); | |
37408 | { | |
37409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37410 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
37411 | wxPyEndAllowThreads(__tstate); | |
37412 | if (PyErr_Occurred()) SWIG_fail; | |
37413 | } | |
37414 | resultobj = SWIG_Py_Void(); | |
37415 | { | |
37416 | if (temp2) | |
37417 | delete arg2; | |
37418 | } | |
37419 | return resultobj; | |
37420 | fail: | |
37421 | { | |
37422 | if (temp2) | |
37423 | delete arg2; | |
37424 | } | |
37425 | return NULL; | |
37426 | } | |
37427 | ||
37428 | ||
37429 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37430 | PyObject *resultobj = 0; | |
37431 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37432 | wxString *arg2 = 0 ; | |
37433 | wxPoint *arg3 = 0 ; | |
37434 | void *argp1 = 0 ; | |
37435 | int res1 = 0 ; | |
37436 | bool temp2 = false ; | |
37437 | wxPoint temp3 ; | |
37438 | PyObject * obj0 = 0 ; | |
37439 | PyObject * obj1 = 0 ; | |
37440 | PyObject * obj2 = 0 ; | |
37441 | char * kwnames[] = { | |
37442 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
37443 | }; | |
37444 | ||
37445 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37446 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37447 | if (!SWIG_IsOK(res1)) { | |
37448 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37449 | } | |
37450 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37451 | { | |
37452 | arg2 = wxString_in_helper(obj1); | |
37453 | if (arg2 == NULL) SWIG_fail; | |
37454 | temp2 = true; | |
37455 | } | |
37456 | { | |
37457 | arg3 = &temp3; | |
37458 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37459 | } | |
37460 | { | |
37461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37462 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
37463 | wxPyEndAllowThreads(__tstate); | |
37464 | if (PyErr_Occurred()) SWIG_fail; | |
37465 | } | |
37466 | resultobj = SWIG_Py_Void(); | |
37467 | { | |
37468 | if (temp2) | |
37469 | delete arg2; | |
37470 | } | |
37471 | return resultobj; | |
37472 | fail: | |
37473 | { | |
37474 | if (temp2) | |
37475 | delete arg2; | |
37476 | } | |
37477 | return NULL; | |
37478 | } | |
37479 | ||
37480 | ||
37481 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37482 | PyObject *resultobj = 0; | |
37483 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37484 | wxString *arg2 = 0 ; | |
37485 | int arg3 ; | |
37486 | int arg4 ; | |
37487 | double arg5 ; | |
37488 | void *argp1 = 0 ; | |
37489 | int res1 = 0 ; | |
37490 | bool temp2 = false ; | |
37491 | int val3 ; | |
37492 | int ecode3 = 0 ; | |
37493 | int val4 ; | |
37494 | int ecode4 = 0 ; | |
37495 | double val5 ; | |
37496 | int ecode5 = 0 ; | |
37497 | PyObject * obj0 = 0 ; | |
37498 | PyObject * obj1 = 0 ; | |
37499 | PyObject * obj2 = 0 ; | |
37500 | PyObject * obj3 = 0 ; | |
37501 | PyObject * obj4 = 0 ; | |
37502 | char * kwnames[] = { | |
37503 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
37504 | }; | |
37505 | ||
37506 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37507 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37508 | if (!SWIG_IsOK(res1)) { | |
37509 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37510 | } | |
37511 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37512 | { | |
37513 | arg2 = wxString_in_helper(obj1); | |
37514 | if (arg2 == NULL) SWIG_fail; | |
37515 | temp2 = true; | |
37516 | } | |
37517 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37518 | if (!SWIG_IsOK(ecode3)) { | |
37519 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
37520 | } | |
37521 | arg3 = static_cast< int >(val3); | |
37522 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37523 | if (!SWIG_IsOK(ecode4)) { | |
37524 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
37525 | } | |
37526 | arg4 = static_cast< int >(val4); | |
37527 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
37528 | if (!SWIG_IsOK(ecode5)) { | |
37529 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
37530 | } | |
37531 | arg5 = static_cast< double >(val5); | |
37532 | { | |
37533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37534 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
37535 | wxPyEndAllowThreads(__tstate); | |
37536 | if (PyErr_Occurred()) SWIG_fail; | |
37537 | } | |
37538 | resultobj = SWIG_Py_Void(); | |
37539 | { | |
37540 | if (temp2) | |
37541 | delete arg2; | |
37542 | } | |
37543 | return resultobj; | |
37544 | fail: | |
37545 | { | |
37546 | if (temp2) | |
37547 | delete arg2; | |
37548 | } | |
37549 | return NULL; | |
37550 | } | |
37551 | ||
37552 | ||
37553 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37554 | PyObject *resultobj = 0; | |
37555 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37556 | wxString *arg2 = 0 ; | |
37557 | wxPoint *arg3 = 0 ; | |
37558 | double arg4 ; | |
37559 | void *argp1 = 0 ; | |
37560 | int res1 = 0 ; | |
37561 | bool temp2 = false ; | |
37562 | wxPoint temp3 ; | |
37563 | double val4 ; | |
37564 | int ecode4 = 0 ; | |
37565 | PyObject * obj0 = 0 ; | |
37566 | PyObject * obj1 = 0 ; | |
37567 | PyObject * obj2 = 0 ; | |
37568 | PyObject * obj3 = 0 ; | |
37569 | char * kwnames[] = { | |
37570 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
37571 | }; | |
37572 | ||
37573 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37574 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37575 | if (!SWIG_IsOK(res1)) { | |
37576 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37577 | } | |
37578 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37579 | { | |
37580 | arg2 = wxString_in_helper(obj1); | |
37581 | if (arg2 == NULL) SWIG_fail; | |
37582 | temp2 = true; | |
37583 | } | |
37584 | { | |
37585 | arg3 = &temp3; | |
37586 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37587 | } | |
37588 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
37589 | if (!SWIG_IsOK(ecode4)) { | |
37590 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
37591 | } | |
37592 | arg4 = static_cast< double >(val4); | |
37593 | { | |
37594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37595 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
37596 | wxPyEndAllowThreads(__tstate); | |
37597 | if (PyErr_Occurred()) SWIG_fail; | |
37598 | } | |
37599 | resultobj = SWIG_Py_Void(); | |
37600 | { | |
37601 | if (temp2) | |
37602 | delete arg2; | |
37603 | } | |
37604 | return resultobj; | |
37605 | fail: | |
37606 | { | |
37607 | if (temp2) | |
37608 | delete arg2; | |
37609 | } | |
37610 | return NULL; | |
37611 | } | |
37612 | ||
37613 | ||
37614 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37615 | PyObject *resultobj = 0; | |
37616 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37617 | int arg2 ; | |
37618 | wxPoint *arg3 = (wxPoint *) 0 ; | |
37619 | int arg4 = (int) 0 ; | |
37620 | int arg5 = (int) 0 ; | |
37621 | void *argp1 = 0 ; | |
37622 | int res1 = 0 ; | |
37623 | int val4 ; | |
37624 | int ecode4 = 0 ; | |
37625 | int val5 ; | |
37626 | int ecode5 = 0 ; | |
37627 | PyObject * obj0 = 0 ; | |
37628 | PyObject * obj1 = 0 ; | |
37629 | PyObject * obj2 = 0 ; | |
37630 | PyObject * obj3 = 0 ; | |
37631 | char * kwnames[] = { | |
37632 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
37633 | }; | |
37634 | ||
37635 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37636 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37637 | if (!SWIG_IsOK(res1)) { | |
37638 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37639 | } | |
37640 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37641 | { | |
37642 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
37643 | if (arg3 == NULL) SWIG_fail; | |
37644 | } | |
37645 | if (obj2) { | |
37646 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
37647 | if (!SWIG_IsOK(ecode4)) { | |
37648 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
37649 | } | |
37650 | arg4 = static_cast< int >(val4); | |
37651 | } | |
37652 | if (obj3) { | |
37653 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
37654 | if (!SWIG_IsOK(ecode5)) { | |
37655 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
37656 | } | |
37657 | arg5 = static_cast< int >(val5); | |
37658 | } | |
37659 | { | |
37660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37661 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
37662 | wxPyEndAllowThreads(__tstate); | |
37663 | if (PyErr_Occurred()) SWIG_fail; | |
37664 | } | |
37665 | resultobj = SWIG_Py_Void(); | |
37666 | { | |
37667 | if (arg3) delete [] arg3; | |
37668 | } | |
37669 | return resultobj; | |
37670 | fail: | |
37671 | { | |
37672 | if (arg3) delete [] arg3; | |
37673 | } | |
37674 | return NULL; | |
37675 | } | |
37676 | ||
37677 | ||
37678 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37679 | PyObject *resultobj = 0; | |
37680 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37681 | int arg2 ; | |
37682 | wxPoint *arg3 = (wxPoint *) 0 ; | |
37683 | int arg4 = (int) 0 ; | |
37684 | int arg5 = (int) 0 ; | |
37685 | int arg6 = (int) wxODDEVEN_RULE ; | |
37686 | void *argp1 = 0 ; | |
37687 | int res1 = 0 ; | |
37688 | int val4 ; | |
37689 | int ecode4 = 0 ; | |
37690 | int val5 ; | |
37691 | int ecode5 = 0 ; | |
37692 | int val6 ; | |
37693 | int ecode6 = 0 ; | |
37694 | PyObject * obj0 = 0 ; | |
37695 | PyObject * obj1 = 0 ; | |
37696 | PyObject * obj2 = 0 ; | |
37697 | PyObject * obj3 = 0 ; | |
37698 | PyObject * obj4 = 0 ; | |
37699 | char * kwnames[] = { | |
37700 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
37701 | }; | |
37702 | ||
37703 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37704 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37705 | if (!SWIG_IsOK(res1)) { | |
37706 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37707 | } | |
37708 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37709 | { | |
37710 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
37711 | if (arg3 == NULL) SWIG_fail; | |
37712 | } | |
37713 | if (obj2) { | |
37714 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
37715 | if (!SWIG_IsOK(ecode4)) { | |
37716 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
37717 | } | |
37718 | arg4 = static_cast< int >(val4); | |
37719 | } | |
37720 | if (obj3) { | |
37721 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
37722 | if (!SWIG_IsOK(ecode5)) { | |
37723 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
37724 | } | |
37725 | arg5 = static_cast< int >(val5); | |
37726 | } | |
37727 | if (obj4) { | |
37728 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
37729 | if (!SWIG_IsOK(ecode6)) { | |
37730 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
37731 | } | |
37732 | arg6 = static_cast< int >(val6); | |
37733 | } | |
37734 | { | |
37735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37736 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
37737 | wxPyEndAllowThreads(__tstate); | |
37738 | if (PyErr_Occurred()) SWIG_fail; | |
37739 | } | |
37740 | resultobj = SWIG_Py_Void(); | |
37741 | { | |
37742 | if (arg3) delete [] arg3; | |
37743 | } | |
37744 | return resultobj; | |
37745 | fail: | |
37746 | { | |
37747 | if (arg3) delete [] arg3; | |
37748 | } | |
37749 | return NULL; | |
37750 | } | |
37751 | ||
37752 | ||
37753 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37754 | PyObject *resultobj = 0; | |
37755 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37756 | wxString *arg2 = 0 ; | |
37757 | wxRect *arg3 = 0 ; | |
37758 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
37759 | int arg5 = (int) -1 ; | |
37760 | void *argp1 = 0 ; | |
37761 | int res1 = 0 ; | |
37762 | bool temp2 = false ; | |
37763 | wxRect temp3 ; | |
37764 | int val4 ; | |
37765 | int ecode4 = 0 ; | |
37766 | int val5 ; | |
37767 | int ecode5 = 0 ; | |
37768 | PyObject * obj0 = 0 ; | |
37769 | PyObject * obj1 = 0 ; | |
37770 | PyObject * obj2 = 0 ; | |
37771 | PyObject * obj3 = 0 ; | |
37772 | PyObject * obj4 = 0 ; | |
37773 | char * kwnames[] = { | |
37774 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
37775 | }; | |
37776 | ||
37777 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37778 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37779 | if (!SWIG_IsOK(res1)) { | |
37780 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37781 | } | |
37782 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37783 | { | |
37784 | arg2 = wxString_in_helper(obj1); | |
37785 | if (arg2 == NULL) SWIG_fail; | |
37786 | temp2 = true; | |
37787 | } | |
37788 | { | |
37789 | arg3 = &temp3; | |
37790 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
37791 | } | |
37792 | if (obj3) { | |
37793 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37794 | if (!SWIG_IsOK(ecode4)) { | |
37795 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
37796 | } | |
37797 | arg4 = static_cast< int >(val4); | |
37798 | } | |
37799 | if (obj4) { | |
37800 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37801 | if (!SWIG_IsOK(ecode5)) { | |
37802 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
37803 | } | |
37804 | arg5 = static_cast< int >(val5); | |
37805 | } | |
37806 | { | |
37807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37808 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
37809 | wxPyEndAllowThreads(__tstate); | |
37810 | if (PyErr_Occurred()) SWIG_fail; | |
37811 | } | |
37812 | resultobj = SWIG_Py_Void(); | |
37813 | { | |
37814 | if (temp2) | |
37815 | delete arg2; | |
37816 | } | |
37817 | return resultobj; | |
37818 | fail: | |
37819 | { | |
37820 | if (temp2) | |
37821 | delete arg2; | |
37822 | } | |
37823 | return NULL; | |
37824 | } | |
37825 | ||
37826 | ||
37827 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37828 | PyObject *resultobj = 0; | |
37829 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37830 | wxString *arg2 = 0 ; | |
37831 | wxBitmap *arg3 = 0 ; | |
37832 | wxRect *arg4 = 0 ; | |
37833 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
37834 | int arg6 = (int) -1 ; | |
37835 | void *argp1 = 0 ; | |
37836 | int res1 = 0 ; | |
37837 | bool temp2 = false ; | |
37838 | void *argp3 = 0 ; | |
37839 | int res3 = 0 ; | |
37840 | wxRect temp4 ; | |
37841 | int val5 ; | |
37842 | int ecode5 = 0 ; | |
37843 | int val6 ; | |
37844 | int ecode6 = 0 ; | |
37845 | PyObject * obj0 = 0 ; | |
37846 | PyObject * obj1 = 0 ; | |
37847 | PyObject * obj2 = 0 ; | |
37848 | PyObject * obj3 = 0 ; | |
37849 | PyObject * obj4 = 0 ; | |
37850 | PyObject * obj5 = 0 ; | |
37851 | char * kwnames[] = { | |
37852 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
37853 | }; | |
37854 | ||
37855 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
37856 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37857 | if (!SWIG_IsOK(res1)) { | |
37858 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37859 | } | |
37860 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37861 | { | |
37862 | arg2 = wxString_in_helper(obj1); | |
37863 | if (arg2 == NULL) SWIG_fail; | |
37864 | temp2 = true; | |
37865 | } | |
37866 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
37867 | if (!SWIG_IsOK(res3)) { | |
37868 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
37869 | } | |
37870 | if (!argp3) { | |
37871 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
37872 | } | |
37873 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
37874 | { | |
37875 | arg4 = &temp4; | |
37876 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
37877 | } | |
37878 | if (obj4) { | |
37879 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37880 | if (!SWIG_IsOK(ecode5)) { | |
37881 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
37882 | } | |
37883 | arg5 = static_cast< int >(val5); | |
37884 | } | |
37885 | if (obj5) { | |
37886 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
37887 | if (!SWIG_IsOK(ecode6)) { | |
37888 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
37889 | } | |
37890 | arg6 = static_cast< int >(val6); | |
37891 | } | |
37892 | { | |
37893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37894 | (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
37895 | wxPyEndAllowThreads(__tstate); | |
37896 | if (PyErr_Occurred()) SWIG_fail; | |
37897 | } | |
37898 | resultobj = SWIG_Py_Void(); | |
37899 | { | |
37900 | if (temp2) | |
37901 | delete arg2; | |
37902 | } | |
37903 | return resultobj; | |
37904 | fail: | |
37905 | { | |
37906 | if (temp2) | |
37907 | delete arg2; | |
37908 | } | |
37909 | return NULL; | |
37910 | } | |
37911 | ||
37912 | ||
37913 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37914 | PyObject *resultobj = 0; | |
37915 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37916 | int arg2 ; | |
37917 | wxPoint *arg3 = (wxPoint *) 0 ; | |
37918 | void *argp1 = 0 ; | |
37919 | int res1 = 0 ; | |
37920 | PyObject * obj0 = 0 ; | |
37921 | PyObject * obj1 = 0 ; | |
37922 | char * kwnames[] = { | |
37923 | (char *) "self",(char *) "points", NULL | |
37924 | }; | |
37925 | ||
37926 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
37927 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37928 | if (!SWIG_IsOK(res1)) { | |
37929 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37930 | } | |
37931 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37932 | { | |
37933 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
37934 | if (arg3 == NULL) SWIG_fail; | |
37935 | } | |
37936 | { | |
37937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37938 | (arg1)->DrawSpline(arg2,arg3); | |
37939 | wxPyEndAllowThreads(__tstate); | |
37940 | if (PyErr_Occurred()) SWIG_fail; | |
37941 | } | |
37942 | resultobj = SWIG_Py_Void(); | |
37943 | { | |
37944 | if (arg3) delete [] arg3; | |
37945 | } | |
37946 | return resultobj; | |
37947 | fail: | |
37948 | { | |
37949 | if (arg3) delete [] arg3; | |
37950 | } | |
37951 | return NULL; | |
37952 | } | |
37953 | ||
37954 | ||
37955 | SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
37956 | PyObject *resultobj = 0; | |
37957 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37958 | void *argp1 = 0 ; | |
37959 | int res1 = 0 ; | |
37960 | PyObject *swig_obj[1] ; | |
37961 | ||
37962 | if (!args) SWIG_fail; | |
37963 | swig_obj[0] = args; | |
37964 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37965 | if (!SWIG_IsOK(res1)) { | |
37966 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37967 | } | |
37968 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37969 | { | |
37970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37971 | (arg1)->Clear(); | |
37972 | wxPyEndAllowThreads(__tstate); | |
37973 | if (PyErr_Occurred()) SWIG_fail; | |
37974 | } | |
37975 | resultobj = SWIG_Py_Void(); | |
37976 | return resultobj; | |
37977 | fail: | |
37978 | return NULL; | |
37979 | } | |
37980 | ||
37981 | ||
37982 | SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37983 | PyObject *resultobj = 0; | |
37984 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37985 | wxFont *arg2 = 0 ; | |
37986 | void *argp1 = 0 ; | |
37987 | int res1 = 0 ; | |
37988 | void *argp2 = 0 ; | |
37989 | int res2 = 0 ; | |
37990 | PyObject * obj0 = 0 ; | |
37991 | PyObject * obj1 = 0 ; | |
37992 | char * kwnames[] = { | |
37993 | (char *) "self",(char *) "font", NULL | |
37994 | }; | |
37995 | ||
37996 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
37997 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37998 | if (!SWIG_IsOK(res1)) { | |
37999 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38000 | } | |
38001 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38002 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
38003 | if (!SWIG_IsOK(res2)) { | |
38004 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
38005 | } | |
38006 | if (!argp2) { | |
38007 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
38008 | } | |
38009 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
38010 | { | |
38011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38012 | (arg1)->SetFont((wxFont const &)*arg2); | |
38013 | wxPyEndAllowThreads(__tstate); | |
38014 | if (PyErr_Occurred()) SWIG_fail; | |
38015 | } | |
38016 | resultobj = SWIG_Py_Void(); | |
38017 | return resultobj; | |
38018 | fail: | |
38019 | return NULL; | |
38020 | } | |
38021 | ||
38022 | ||
38023 | SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38024 | PyObject *resultobj = 0; | |
38025 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38026 | wxPen *arg2 = 0 ; | |
38027 | void *argp1 = 0 ; | |
38028 | int res1 = 0 ; | |
38029 | void *argp2 = 0 ; | |
38030 | int res2 = 0 ; | |
38031 | PyObject * obj0 = 0 ; | |
38032 | PyObject * obj1 = 0 ; | |
38033 | char * kwnames[] = { | |
38034 | (char *) "self",(char *) "pen", NULL | |
38035 | }; | |
38036 | ||
38037 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
38038 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38039 | if (!SWIG_IsOK(res1)) { | |
38040 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38041 | } | |
38042 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38043 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
38044 | if (!SWIG_IsOK(res2)) { | |
38045 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
38046 | } | |
38047 | if (!argp2) { | |
38048 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
38049 | } | |
38050 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
38051 | { | |
38052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38053 | (arg1)->SetPen((wxPen const &)*arg2); | |
38054 | wxPyEndAllowThreads(__tstate); | |
38055 | if (PyErr_Occurred()) SWIG_fail; | |
38056 | } | |
38057 | resultobj = SWIG_Py_Void(); | |
38058 | return resultobj; | |
38059 | fail: | |
38060 | return NULL; | |
38061 | } | |
38062 | ||
38063 | ||
38064 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38065 | PyObject *resultobj = 0; | |
38066 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38067 | wxBrush *arg2 = 0 ; | |
38068 | void *argp1 = 0 ; | |
38069 | int res1 = 0 ; | |
38070 | void *argp2 = 0 ; | |
38071 | int res2 = 0 ; | |
38072 | PyObject * obj0 = 0 ; | |
38073 | PyObject * obj1 = 0 ; | |
38074 | char * kwnames[] = { | |
38075 | (char *) "self",(char *) "brush", NULL | |
38076 | }; | |
38077 | ||
38078 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
38079 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38080 | if (!SWIG_IsOK(res1)) { | |
38081 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38082 | } | |
38083 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38084 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
38085 | if (!SWIG_IsOK(res2)) { | |
38086 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
38087 | } | |
38088 | if (!argp2) { | |
38089 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
38090 | } | |
38091 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
38092 | { | |
38093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38094 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
38095 | wxPyEndAllowThreads(__tstate); | |
38096 | if (PyErr_Occurred()) SWIG_fail; | |
38097 | } | |
38098 | resultobj = SWIG_Py_Void(); | |
38099 | return resultobj; | |
38100 | fail: | |
38101 | return NULL; | |
38102 | } | |
38103 | ||
38104 | ||
38105 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38106 | PyObject *resultobj = 0; | |
38107 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38108 | wxBrush *arg2 = 0 ; | |
38109 | void *argp1 = 0 ; | |
38110 | int res1 = 0 ; | |
38111 | void *argp2 = 0 ; | |
38112 | int res2 = 0 ; | |
38113 | PyObject * obj0 = 0 ; | |
38114 | PyObject * obj1 = 0 ; | |
38115 | char * kwnames[] = { | |
38116 | (char *) "self",(char *) "brush", NULL | |
38117 | }; | |
38118 | ||
38119 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
38120 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38121 | if (!SWIG_IsOK(res1)) { | |
38122 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38123 | } | |
38124 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38125 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
38126 | if (!SWIG_IsOK(res2)) { | |
38127 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
38128 | } | |
38129 | if (!argp2) { | |
38130 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
38131 | } | |
38132 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
38133 | { | |
38134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38135 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
38136 | wxPyEndAllowThreads(__tstate); | |
38137 | if (PyErr_Occurred()) SWIG_fail; | |
38138 | } | |
38139 | resultobj = SWIG_Py_Void(); | |
38140 | return resultobj; | |
38141 | fail: | |
38142 | return NULL; | |
38143 | } | |
38144 | ||
38145 | ||
38146 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38147 | PyObject *resultobj = 0; | |
38148 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38149 | int arg2 ; | |
38150 | void *argp1 = 0 ; | |
38151 | int res1 = 0 ; | |
38152 | int val2 ; | |
38153 | int ecode2 = 0 ; | |
38154 | PyObject * obj0 = 0 ; | |
38155 | PyObject * obj1 = 0 ; | |
38156 | char * kwnames[] = { | |
38157 | (char *) "self",(char *) "mode", NULL | |
38158 | }; | |
38159 | ||
38160 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
38161 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38162 | if (!SWIG_IsOK(res1)) { | |
38163 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38164 | } | |
38165 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38166 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38167 | if (!SWIG_IsOK(ecode2)) { | |
38168 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
38169 | } | |
38170 | arg2 = static_cast< int >(val2); | |
38171 | { | |
38172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38173 | (arg1)->SetBackgroundMode(arg2); | |
38174 | wxPyEndAllowThreads(__tstate); | |
38175 | if (PyErr_Occurred()) SWIG_fail; | |
38176 | } | |
38177 | resultobj = SWIG_Py_Void(); | |
38178 | return resultobj; | |
38179 | fail: | |
38180 | return NULL; | |
38181 | } | |
38182 | ||
38183 | ||
38184 | SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38185 | PyObject *resultobj = 0; | |
38186 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38187 | wxPalette *arg2 = 0 ; | |
38188 | void *argp1 = 0 ; | |
38189 | int res1 = 0 ; | |
38190 | void *argp2 = 0 ; | |
38191 | int res2 = 0 ; | |
38192 | PyObject * obj0 = 0 ; | |
38193 | PyObject * obj1 = 0 ; | |
38194 | char * kwnames[] = { | |
38195 | (char *) "self",(char *) "palette", NULL | |
38196 | }; | |
38197 | ||
38198 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
38199 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38200 | if (!SWIG_IsOK(res1)) { | |
38201 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38202 | } | |
38203 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38204 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
38205 | if (!SWIG_IsOK(res2)) { | |
38206 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
38207 | } | |
38208 | if (!argp2) { | |
38209 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
38210 | } | |
38211 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
38212 | { | |
38213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38214 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
38215 | wxPyEndAllowThreads(__tstate); | |
38216 | if (PyErr_Occurred()) SWIG_fail; | |
38217 | } | |
38218 | resultobj = SWIG_Py_Void(); | |
38219 | return resultobj; | |
38220 | fail: | |
38221 | return NULL; | |
38222 | } | |
38223 | ||
38224 | ||
38225 | SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38226 | PyObject *resultobj = 0; | |
38227 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38228 | wxColour *arg2 = 0 ; | |
38229 | void *argp1 = 0 ; | |
38230 | int res1 = 0 ; | |
38231 | wxColour temp2 ; | |
38232 | PyObject * obj0 = 0 ; | |
38233 | PyObject * obj1 = 0 ; | |
38234 | char * kwnames[] = { | |
38235 | (char *) "self",(char *) "colour", NULL | |
38236 | }; | |
38237 | ||
38238 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
38239 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38240 | if (!SWIG_IsOK(res1)) { | |
38241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38242 | } | |
38243 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38244 | { | |
38245 | arg2 = &temp2; | |
38246 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
38247 | } | |
38248 | { | |
38249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38250 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
38251 | wxPyEndAllowThreads(__tstate); | |
38252 | if (PyErr_Occurred()) SWIG_fail; | |
38253 | } | |
38254 | resultobj = SWIG_Py_Void(); | |
38255 | return resultobj; | |
38256 | fail: | |
38257 | return NULL; | |
38258 | } | |
38259 | ||
38260 | ||
38261 | SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38262 | PyObject *resultobj = 0; | |
38263 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38264 | wxColour *arg2 = 0 ; | |
38265 | void *argp1 = 0 ; | |
38266 | int res1 = 0 ; | |
38267 | wxColour temp2 ; | |
38268 | PyObject * obj0 = 0 ; | |
38269 | PyObject * obj1 = 0 ; | |
38270 | char * kwnames[] = { | |
38271 | (char *) "self",(char *) "colour", NULL | |
38272 | }; | |
38273 | ||
38274 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
38275 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38276 | if (!SWIG_IsOK(res1)) { | |
38277 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38278 | } | |
38279 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38280 | { | |
38281 | arg2 = &temp2; | |
38282 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
38283 | } | |
38284 | { | |
38285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38286 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
38287 | wxPyEndAllowThreads(__tstate); | |
38288 | if (PyErr_Occurred()) SWIG_fail; | |
38289 | } | |
38290 | resultobj = SWIG_Py_Void(); | |
38291 | return resultobj; | |
38292 | fail: | |
38293 | return NULL; | |
38294 | } | |
38295 | ||
38296 | ||
38297 | SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38298 | PyObject *resultobj = 0; | |
38299 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38300 | int arg2 ; | |
38301 | void *argp1 = 0 ; | |
38302 | int res1 = 0 ; | |
38303 | int val2 ; | |
38304 | int ecode2 = 0 ; | |
38305 | PyObject * obj0 = 0 ; | |
38306 | PyObject * obj1 = 0 ; | |
38307 | char * kwnames[] = { | |
38308 | (char *) "self",(char *) "function", NULL | |
38309 | }; | |
38310 | ||
38311 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
38312 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38313 | if (!SWIG_IsOK(res1)) { | |
38314 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38315 | } | |
38316 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38317 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38318 | if (!SWIG_IsOK(ecode2)) { | |
38319 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
38320 | } | |
38321 | arg2 = static_cast< int >(val2); | |
38322 | { | |
38323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38324 | (arg1)->SetLogicalFunction(arg2); | |
38325 | wxPyEndAllowThreads(__tstate); | |
38326 | if (PyErr_Occurred()) SWIG_fail; | |
38327 | } | |
38328 | resultobj = SWIG_Py_Void(); | |
38329 | return resultobj; | |
38330 | fail: | |
38331 | return NULL; | |
38332 | } | |
38333 | ||
38334 | ||
38335 | SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38336 | PyObject *obj; | |
38337 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
38338 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj)); | |
38339 | return SWIG_Py_Void(); | |
38340 | } | |
38341 | ||
38342 | SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38343 | return SWIG_Python_InitShadowInstance(args); | |
38344 | } | |
38345 | ||
38346 | static PyMethodDef SwigMethods[] = { | |
38347 | { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL}, | |
38348 | { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL}, | |
38349 | { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL}, | |
38350 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL}, | |
38351 | { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL}, | |
38352 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38353 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38354 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38355 | { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL}, | |
38356 | { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL}, | |
38357 | { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL}, | |
38358 | { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL}, | |
fc46b7f3 | 38359 | { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL}, |
b39fe951 | 38360 | { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL}, |
27e45892 RD |
38361 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
38362 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38363 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38364 | { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38365 | { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL}, | |
38366 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38367 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
fc46b7f3 | 38368 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL}, |
27e45892 RD |
38369 | { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL}, |
38370 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL}, | |
38371 | { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL}, | |
38372 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38373 | { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL}, | |
38374 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38375 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38376 | { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL}, | |
b39fe951 | 38377 | { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL}, |
27e45892 RD |
38378 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL}, |
38379 | { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL}, | |
38380 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38381 | { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL}, | |
38382 | { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL}, | |
38383 | { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL}, | |
38384 | { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL}, | |
38385 | { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL}, | |
38386 | { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL}, | |
b39fe951 | 38387 | { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL}, |
27e45892 RD |
38388 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL}, |
38389 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38390 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38391 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38392 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38393 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38394 | { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL}, | |
38395 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38396 | { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL}, | |
38397 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38398 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38399 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL}, | |
38400 | { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL}, | |
38401 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38402 | { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38403 | { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL}, | |
38404 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38405 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38406 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38407 | { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL}, | |
38408 | { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL}, | |
38409 | { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL}, | |
38410 | { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL}, | |
b39fe951 | 38411 | { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL}, |
27e45892 RD |
38412 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL}, |
38413 | { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL}, | |
38414 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38415 | { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL}, | |
38416 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38417 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38418 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38419 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38420 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 38421 | { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL}, |
27e45892 RD |
38422 | { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL}, |
38423 | { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL}, | |
38424 | { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL}, | |
38425 | { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL}, | |
38426 | { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL}, | |
38427 | { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL}, | |
38428 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38429 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38430 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38431 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38432 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38433 | { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL}, | |
38434 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38435 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38436 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38437 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38438 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8f514ab4 RD |
38439 | { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, |
38440 | { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL}, | |
27e45892 RD |
38441 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, |
38442 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38443 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL}, | |
38444 | { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL}, | |
fc46b7f3 RD |
38445 | { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, |
38446 | { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38447 | { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38448 | { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL}, | |
38449 | { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL}, | |
38450 | { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL}, | |
38451 | { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL}, | |
38452 | { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL}, | |
38453 | { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL}, | |
38454 | { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL}, | |
38455 | { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL}, | |
38456 | { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL}, | |
38457 | { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL}, | |
38458 | { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL}, | |
38459 | { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL}, | |
38460 | { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL}, | |
38461 | { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL}, | |
38462 | { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL}, | |
38463 | { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38464 | { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL}, | |
38465 | { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL}, | |
38466 | { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38467 | { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38468 | { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38469 | { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38470 | { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38471 | { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL}, | |
38472 | { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL}, | |
38473 | { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL}, | |
38474 | { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL}, | |
38475 | { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL}, | |
38476 | { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL}, | |
38477 | { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL}, | |
38478 | { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL}, | |
38479 | { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL}, | |
38480 | { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL}, | |
38481 | { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL}, | |
38482 | { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL}, | |
38483 | { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38484 | { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL}, | |
38485 | { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL}, | |
38486 | { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38487 | { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38488 | { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38489 | { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38490 | { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38491 | { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL}, | |
38492 | { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL}, | |
38493 | { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL}, | |
27e45892 RD |
38494 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL}, |
38495 | { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL}, | |
38496 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL}, | |
38497 | { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL}, | |
38498 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38499 | { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL}, | |
38500 | { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL}, | |
38501 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38502 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38503 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38504 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 38505 | { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL}, |
27e45892 RD |
38506 | { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL}, |
38507 | { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL}, | |
38508 | { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL}, | |
38509 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38510 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38511 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38512 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38513 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL}, | |
38514 | { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL}, | |
38515 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38516 | { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL}, | |
38517 | { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL}, | |
38518 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38519 | { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL}, | |
38520 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38521 | { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL}, | |
38522 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL}, | |
38523 | { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL}, | |
38524 | { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL}, | |
38525 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38526 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38527 | { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL}, | |
38528 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38529 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38530 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38531 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL}, | |
38532 | { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL}, | |
38533 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38534 | { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL}, | |
38535 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38536 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 38537 | { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL}, |
27e45892 RD |
38538 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL}, |
38539 | { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL}, | |
38540 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38541 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38542 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38543 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38544 | { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL}, | |
38545 | { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL}, | |
38546 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38547 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38548 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38549 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38550 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38551 | { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL}, | |
38552 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38553 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38554 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38555 | { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL}, | |
f5263701 | 38556 | { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL}, |
27e45892 RD |
38557 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL}, |
38558 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38559 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38560 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38561 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38562 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38563 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38564 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38565 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38566 | { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL}, | |
38567 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38568 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38569 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL}, | |
38570 | { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL}, | |
38571 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38572 | { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL}, | |
38573 | { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL}, | |
38574 | { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL}, | |
38575 | { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL}, | |
38576 | { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL}, | |
38577 | { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL}, | |
38578 | { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL}, | |
38579 | { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL}, | |
38580 | { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL}, | |
38581 | { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL}, | |
38582 | { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL}, | |
38583 | { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL}, | |
38584 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL}, | |
38585 | { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL}, | |
38586 | { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL}, | |
38587 | { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL}, | |
38588 | { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL}, | |
38589 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38590 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL}, | |
38591 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL}, | |
38592 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL}, | |
38593 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL}, | |
38594 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL}, | |
38595 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL}, | |
38596 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL}, | |
38597 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38598 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38599 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38600 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38601 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38602 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38603 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38604 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38605 | { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL}, | |
38606 | { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL}, | |
38607 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38608 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL}, | |
38609 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL}, | |
38610 | { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL}, | |
38611 | { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL}, | |
38612 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL}, | |
38613 | { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL}, | |
38614 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL}, | |
38615 | { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL}, | |
38616 | { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL}, | |
38617 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38618 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL}, | |
38619 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL}, | |
38620 | { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL}, | |
38621 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38622 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38623 | { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL}, | |
38624 | { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL}, | |
38625 | { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL}, | |
38626 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38627 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38628 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL}, | |
38629 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38630 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38631 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38632 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38633 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38634 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL}, | |
38635 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38636 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38637 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38638 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38639 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL}, | |
38640 | { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL}, | |
38641 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38642 | { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL}, | |
38643 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38644 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38645 | { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38646 | { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38647 | { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 38648 | { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL}, |
27e45892 | 38649 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
38650 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, |
38651 | { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL}, | |
38652 | { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL}, | |
38653 | { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL}, | |
38654 | { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL}, | |
38655 | { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL}, | |
38656 | { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL}, | |
38657 | { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL}, | |
38658 | { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL}, | |
38659 | { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL}, | |
38660 | { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL}, | |
38661 | { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL}, | |
38662 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL}, | |
38663 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL}, | |
38664 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38665 | { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38666 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38667 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38668 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38669 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38670 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38671 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38672 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38673 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38674 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38675 | { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL}, | |
38676 | { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL}, | |
38677 | { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL}, | |
38678 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38679 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL}, | |
38680 | { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL}, | |
38681 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38682 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL}, | |
38683 | { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL}, | |
38684 | { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL}, | |
38685 | { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL}, | |
38686 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38687 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38688 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
704eda0c RD |
38689 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL}, |
38690 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL}, | |
38691 | { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
38692 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL}, |
38693 | { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL}, | |
38694 | { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL}, | |
38695 | { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL}, | |
38696 | { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL}, | |
38697 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL}, | |
38698 | { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL}, | |
38699 | { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL}, | |
38700 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL}, | |
38701 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38702 | { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL}, | |
38703 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38704 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38705 | { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL}, | |
38706 | { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL}, | |
38707 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL}, | |
38708 | { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL}, | |
38709 | { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL}, | |
38710 | { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL}, | |
38711 | { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL}, | |
38712 | { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL}, | |
38713 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38714 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33d6fd3b | 38715 | { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
38716 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL}, |
38717 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38718 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38719 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38720 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38721 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38722 | { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL}, | |
38723 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL}, | |
38724 | { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL}, | |
fc46b7f3 RD |
38725 | { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL}, |
38726 | { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL}, | |
38727 | { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38728 | { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38729 | { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38730 | { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL}, | |
38731 | { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
38732 | { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL}, |
38733 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL}, | |
38734 | { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL}, | |
38735 | { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL}, | |
38736 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38737 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38738 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38739 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38740 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38741 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL}, | |
38742 | { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL}, | |
38743 | { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL}, | |
38744 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38745 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38746 | { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38747 | { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38748 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38749 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38750 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38751 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38752 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38753 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38754 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38755 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38756 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38757 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38758 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38759 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38760 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38761 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38762 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38763 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38764 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38765 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38766 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38767 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38768 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38769 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38770 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38771 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38772 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38773 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38774 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38775 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38776 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38777 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38778 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38779 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38780 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38781 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38782 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8f514ab4 | 38783 | { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
38784 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL}, |
38785 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38786 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38787 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38788 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38789 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38790 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38791 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38792 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38793 | { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL}, | |
38794 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38795 | { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL}, | |
38796 | { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL}, | |
38797 | { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL}, | |
38798 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38799 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38800 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38801 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38802 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38803 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38804 | { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL}, | |
38805 | { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL}, | |
38806 | { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL}, | |
38807 | { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL}, | |
38808 | { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL}, | |
38809 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38810 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38811 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38812 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38813 | { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL}, | |
38814 | { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL}, | |
38815 | { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL}, | |
38816 | { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL}, | |
38817 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38818 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38819 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38820 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38821 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38822 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38823 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38824 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38825 | { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL}, | |
38826 | { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL}, | |
38827 | { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL}, | |
38828 | { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL}, | |
b39fe951 | 38829 | { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL}, |
0085ce49 RD |
38830 | { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL}, |
38831 | { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL}, | |
38832 | { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL}, | |
38833 | { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL}, | |
38834 | { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL}, | |
38835 | { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL}, | |
38836 | { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL}, | |
38837 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38838 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38839 | { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL}, | |
38840 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38841 | { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL}, | |
38842 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38843 | { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL}, | |
38844 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38845 | { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL}, | |
38846 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL}, | |
38847 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38848 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38849 | { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL}, | |
38850 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL}, | |
38851 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38852 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38853 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38854 | { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL}, | |
38855 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38856 | { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL}, | |
38857 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38858 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38859 | { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL}, | |
38860 | { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL}, | |
38861 | { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL}, | |
38862 | { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL}, | |
38863 | { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL}, | |
38864 | { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL}, | |
b39fe951 RD |
38865 | { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL}, |
38866 | { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
38867 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL}, |
38868 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38869 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38870 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38871 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38872 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38873 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL}, | |
70d7cb34 RD |
38874 | { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL}, |
38875 | { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL}, | |
38876 | { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL}, | |
38877 | { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL}, | |
38878 | { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38879 | { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL}, | |
38880 | { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL}, | |
38881 | { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL}, | |
38882 | { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38883 | { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL}, | |
38884 | { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL}, | |
38885 | { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL}, | |
38886 | { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL}, | |
38887 | { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL}, | |
38888 | { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL}, | |
38889 | { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
38890 | { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL}, |
38891 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38892 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38893 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL}, | |
38894 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL}, | |
38895 | { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL}, | |
72ef6efb RD |
38896 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
38897 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL}, | |
38898 | { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
38899 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
38900 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL}, | |
38901 | { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL}, | |
38902 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38903 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL}, | |
38904 | { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL}, | |
26c4d26f RD |
38905 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
38906 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38907 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38908 | { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38909 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL}, | |
38910 | { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL}, | |
24f6c4e8 RD |
38911 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL}, |
38912 | { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL}, | |
38913 | { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL}, | |
b6df5cf9 RD |
38914 | { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, |
38915 | { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL}, | |
24f6c4e8 RD |
38916 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL}, |
38917 | { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL}, | |
38918 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38919 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
38920 | { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
38921 | { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38922 | { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
38923 | { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
8e99bda9 | 38924 | { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
38925 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
38926 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL}, | |
38927 | { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL}, | |
38928 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38929 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL}, | |
38930 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38931 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38932 | { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL}, | |
38933 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL}, | |
38934 | { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL}, | |
38935 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38936 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL}, | |
38937 | { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL}, | |
38938 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38939 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL}, | |
38940 | { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL}, | |
38941 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38942 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL}, | |
38943 | { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL}, | |
70d7cb34 RD |
38944 | { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL}, |
38945 | { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL}, | |
38946 | { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL}, | |
38947 | { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL}, | |
38948 | { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL}, | |
38949 | { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL}, | |
38950 | { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL}, | |
38951 | { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL}, | |
38952 | { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL}, | |
38953 | { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL}, | |
38954 | { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL}, | |
38955 | { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL}, | |
38956 | { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL}, | |
38957 | { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL}, | |
38958 | { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL}, | |
38959 | { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL}, | |
38960 | { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL}, | |
38961 | { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL}, | |
8f514ab4 | 38962 | { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL}, |
5c8c7dd3 RD |
38963 | { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL}, |
38964 | { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
5c8c7dd3 RD |
38965 | { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
38966 | { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL}, | |
38967 | { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38968 | { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL}, | |
38969 | { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38970 | { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38971 | { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38972 | { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38973 | { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38974 | { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL}, | |
38975 | { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL}, | |
8f514ab4 RD |
38976 | { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL}, |
38977 | { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL}, | |
72ef6efb | 38978 | { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL}, |
70d7cb34 RD |
38979 | { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL}, |
38980 | { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL}, | |
38981 | { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL}, | |
38982 | { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
38983 | { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL}, |
38984 | { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL}, | |
70d7cb34 | 38985 | { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL}, |
72ef6efb RD |
38986 | { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL}, |
38987 | { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38988 | { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38989 | { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70d7cb34 RD |
38990 | { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, |
38991 | { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38992 | { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL}, | |
38993 | { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38994 | { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38995 | { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL}, | |
38996 | { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL}, | |
72ef6efb | 38997 | { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL}, |
8f514ab4 | 38998 | { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL}, |
72ef6efb | 38999 | { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL}, |
0a27f394 | 39000 | { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL}, |
f89238b9 | 39001 | { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL}, |
0a27f394 | 39002 | { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL}, |
70d7cb34 | 39003 | { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb | 39004 | { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL}, |
70d7cb34 RD |
39005 | { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
39006 | { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39007 | { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39008 | { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39009 | { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39010 | { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
39011 | { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL}, |
39012 | { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL}, | |
0a27f394 | 39013 | { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb | 39014 | { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL}, |
0a27f394 RD |
39015 | { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL}, |
39016 | { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL}, | |
c8aaaf9e RD |
39017 | { (char *)"GraphicsContext_GetLogicalFunction", (PyCFunction)_wrap_GraphicsContext_GetLogicalFunction, METH_O, NULL}, |
39018 | { (char *)"GraphicsContext_SetLogicalFunction", (PyCFunction) _wrap_GraphicsContext_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
39019 | { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL}, |
39020 | { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39021 | { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
5c8c7dd3 RD |
39022 | { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL}, |
39023 | { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39024 | { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL}, | |
70d7cb34 RD |
39025 | { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL}, |
39026 | { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL}, | |
39027 | { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL}, | |
72ef6efb RD |
39028 | { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL}, |
39029 | { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39030 | { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 RD |
39031 | { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, |
39032 | { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
be68621e | 39033 | { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb RD |
39034 | { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, |
39035 | { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39036 | { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39037 | { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39038 | { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 39039 | { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL}, |
f8eb59b9 | 39040 | { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb RD |
39041 | { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, |
39042 | { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39043 | { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39044 | { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70d7cb34 | 39045 | { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL}, |
72ef6efb | 39046 | { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL}, |
70d7cb34 RD |
39047 | { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL}, |
39048 | { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL}, | |
39049 | { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL}, | |
f89238b9 | 39050 | { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL}, |
70d7cb34 RD |
39051 | { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL}, |
39052 | { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39053 | { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL}, | |
39054 | { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39055 | { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39056 | { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39057 | { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39058 | { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39059 | { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39060 | { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL}, | |
48a0c021 | 39061 | { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL}, |
72ef6efb | 39062 | { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL}, |
0a27f394 RD |
39063 | { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL}, |
39064 | { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
39065 | { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL}, |
39066 | { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL}, | |
b39fe951 RD |
39067 | { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL}, |
39068 | { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL}, | |
39069 | { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL}, | |
39070 | { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL}, | |
39071 | { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL}, | |
39072 | { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL}, | |
39073 | { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL}, | |
39074 | { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL}, | |
39075 | { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL}, | |
39076 | { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
39077 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL}, |
39078 | { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL}, | |
39079 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39080 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39081 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39082 | { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39083 | { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39084 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39085 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39086 | { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL}, | |
39087 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39088 | { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL}, | |
39089 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39090 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL}, | |
39091 | { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL}, | |
50efceee RD |
39092 | { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL}, |
39093 | { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL}, | |
39094 | { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL}, | |
39095 | { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL}, | |
39096 | { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39097 | { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39098 | { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39099 | { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39100 | { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39101 | { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL}, | |
39102 | { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL}, | |
39103 | { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL}, | |
39104 | { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL}, | |
39105 | { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL}, | |
39106 | { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL}, | |
0085ce49 | 39107 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
50efceee | 39108 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 39109 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 39110 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 39111 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
50efceee | 39112 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 39113 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 39114 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL}, |
50efceee RD |
39115 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, |
39116 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39117 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39118 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL}, | |
0085ce49 RD |
39119 | { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL}, |
39120 | { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL}, | |
39121 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39122 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39123 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39124 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39125 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL}, | |
39126 | { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL}, | |
50efceee RD |
39127 | { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL}, |
39128 | { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL}, | |
39129 | { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL}, | |
39130 | { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL}, | |
0085ce49 RD |
39131 | { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL}, |
39132 | { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL}, | |
39133 | { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL}, | |
39134 | { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL}, | |
39135 | { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL}, | |
39136 | { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL}, | |
39137 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39138 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39139 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39140 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39141 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39142 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39143 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39144 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39145 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL}, | |
39146 | { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL}, | |
39147 | { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39148 | { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL}, | |
39149 | { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL}, | |
39150 | { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL}, | |
39151 | { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL}, | |
39152 | { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL}, | |
39153 | { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL}, | |
33d6fd3b RD |
39154 | { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL}, |
39155 | { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL}, | |
39156 | { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL}, | |
39157 | { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL}, | |
39158 | { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL}, | |
39159 | { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL}, | |
39160 | { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL}, | |
39161 | { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL}, | |
39162 | { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL}, | |
39163 | { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL}, | |
39164 | { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL}, | |
39165 | { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL}, | |
39166 | { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL}, | |
39167 | { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL}, | |
39168 | { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL}, | |
39169 | { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL}, | |
39170 | { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL}, | |
39171 | { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
39172 | { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL}, |
39173 | { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL}, | |
39174 | { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39175 | { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL}, | |
39176 | { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL}, | |
39177 | { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL}, | |
39178 | { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL}, | |
39179 | { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33d6fd3b RD |
39180 | { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL}, |
39181 | { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
39182 | { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL}, |
39183 | { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39184 | { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39185 | { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39186 | { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
01f6b6d3 RD |
39187 | { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
39188 | { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39189 | { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
39190 | { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL}, |
39191 | { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL}, | |
39192 | { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL}, | |
39193 | { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL}, | |
39194 | { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39195 | { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL}, | |
39196 | { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL}, | |
27e45892 RD |
39197 | { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL}, |
39198 | { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL}, | |
39199 | { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL}, | |
39200 | { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL}, | |
39201 | { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL}, | |
39202 | { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL}, | |
39203 | { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39204 | { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39205 | { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39206 | { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
39207 | { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL}, |
39208 | { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39209 | { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39210 | { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
27e45892 RD |
39211 | { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39212 | { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39213 | { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39214 | { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39215 | { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39216 | { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39217 | { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39218 | { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39219 | { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39220 | { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39221 | { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39222 | { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39223 | { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39224 | { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39225 | { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39226 | { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39227 | { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39228 | { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39229 | { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39230 | { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39231 | { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39232 | { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39233 | { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39234 | { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39235 | { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39236 | { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39237 | { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39238 | { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39239 | { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39240 | { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39241 | { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39242 | { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39243 | { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39244 | { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39245 | { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39246 | { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39247 | { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39248 | { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39249 | { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39250 | { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39251 | { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39252 | { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39253 | { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39254 | { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39255 | { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL}, | |
39256 | { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39257 | { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39258 | { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39259 | { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39260 | { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39261 | { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39262 | { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39263 | { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39264 | { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39265 | { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL}, | |
39266 | { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
39267 | { NULL, NULL, 0, NULL } |
39268 | }; | |
39269 | ||
39270 | ||
39271 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
39272 | ||
72ef6efb RD |
39273 | static void *_p_wxPaintDCTo_p_wxClientDC(void *x) { |
39274 | return (void *)((wxClientDC *) ((wxPaintDC *) x)); | |
39275 | } | |
8e99bda9 RD |
39276 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
39277 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
39278 | } | |
39279 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
39280 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
39281 | } | |
26c4d26f RD |
39282 | static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) { |
39283 | return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
39284 | } | |
39285 | static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) { | |
39286 | return (void *)((wxWindowDC *) ((wxMemoryDC *) x)); | |
39287 | } | |
72ef6efb RD |
39288 | static void *_p_wxClientDCTo_p_wxWindowDC(void *x) { |
39289 | return (void *)((wxWindowDC *) ((wxClientDC *) x)); | |
39290 | } | |
39291 | static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) { | |
39292 | return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x)); | |
39293 | } | |
26c4d26f RD |
39294 | static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) { |
39295 | return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
39296 | } | |
fc46b7f3 RD |
39297 | static void *_p_wxPyLocaleTo_p_wxLocale(void *x) { |
39298 | return (void *)((wxLocale *) ((wxPyLocale *) x)); | |
39299 | } | |
70d7cb34 RD |
39300 | static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) { |
39301 | return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x)); | |
39302 | } | |
39303 | static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) { | |
39304 | return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x)); | |
39305 | } | |
39306 | static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) { | |
39307 | return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x)); | |
39308 | } | |
39309 | static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) { | |
39310 | return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x)); | |
39311 | } | |
39312 | static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) { | |
39313 | return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x)); | |
39314 | } | |
39315 | static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) { | |
39316 | return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x)); | |
39317 | } | |
0085ce49 RD |
39318 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { |
39319 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
39320 | } | |
39321 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
39322 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
39323 | } | |
39324 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
39325 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
39326 | } | |
39327 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
39328 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
39329 | } | |
39330 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
39331 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
39332 | } | |
39333 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
39334 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
39335 | } | |
39336 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
39337 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
39338 | } | |
39339 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
39340 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
39341 | } | |
72ef6efb RD |
39342 | static void *_p_wxGCDCTo_p_wxDC(void *x) { |
39343 | return (void *)((wxDC *) ((wxGCDC *) x)); | |
39344 | } | |
0085ce49 RD |
39345 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
39346 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
39347 | } | |
24f6c4e8 | 39348 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
26c4d26f | 39349 | return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); |
24f6c4e8 | 39350 | } |
0085ce49 RD |
39351 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { |
39352 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
39353 | } | |
0085ce49 RD |
39354 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { |
39355 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
39356 | } | |
26c4d26f RD |
39357 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { |
39358 | return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x)); | |
39359 | } | |
0085ce49 RD |
39360 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { |
39361 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
39362 | } | |
0085ce49 | 39363 | static void *_p_wxClientDCTo_p_wxDC(void *x) { |
72ef6efb | 39364 | return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x)); |
0085ce49 RD |
39365 | } |
39366 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
72ef6efb | 39367 | return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x)); |
0085ce49 | 39368 | } |
24f6c4e8 | 39369 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { |
26c4d26f | 39370 | return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); |
24f6c4e8 RD |
39371 | } |
39372 | static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) { | |
39373 | return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x)); | |
39374 | } | |
0085ce49 RD |
39375 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { |
39376 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
39377 | } | |
39378 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
39379 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
39380 | } | |
50efceee RD |
39381 | static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) { |
39382 | return (void *)((wxGDIObjListBase *) ((wxBrushList *) x)); | |
39383 | } | |
39384 | static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) { | |
39385 | return (void *)((wxGDIObjListBase *) ((wxFontList *) x)); | |
39386 | } | |
39387 | static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) { | |
39388 | return (void *)((wxGDIObjListBase *) ((wxPenList *) x)); | |
39389 | } | |
0085ce49 RD |
39390 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
39391 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
39392 | } | |
39393 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
39394 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
39395 | } | |
39396 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
39397 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
39398 | } | |
39399 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
39400 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
39401 | } | |
0085ce49 RD |
39402 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
39403 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
39404 | } | |
34e0a3bb RD |
39405 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
39406 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
39407 | } | |
0085ce49 RD |
39408 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
39409 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
39410 | } | |
39411 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
39412 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
39413 | } | |
39414 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
39415 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
39416 | } | |
39417 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
39418 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
39419 | } | |
39420 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
39421 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
39422 | } | |
39423 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
39424 | return (void *)((wxObject *) ((wxSizer *) x)); | |
39425 | } | |
39426 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
39427 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
39428 | } | |
39429 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
39430 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
39431 | } | |
0085ce49 RD |
39432 | static void *_p_wxEventTo_p_wxObject(void *x) { |
39433 | return (void *)((wxObject *) ((wxEvent *) x)); | |
39434 | } | |
39435 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
39436 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
39437 | } | |
39438 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
39439 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
39440 | } | |
39441 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
39442 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
39443 | } | |
27e45892 RD |
39444 | static void *_p_wxPseudoDCTo_p_wxObject(void *x) { |
39445 | return (void *)((wxObject *) ((wxPseudoDC *) x)); | |
39446 | } | |
2131d850 RD |
39447 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
39448 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
39449 | } | |
0085ce49 RD |
39450 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
39451 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
39452 | } | |
39453 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
39454 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
39455 | } | |
39456 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
39457 | return (void *)((wxObject *) ((wxDC *) x)); | |
39458 | } | |
39459 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
39460 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
39461 | } | |
39462 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
39463 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
39464 | } | |
39465 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
39466 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
39467 | } | |
39468 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
39469 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
39470 | } | |
39471 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
39472 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
39473 | } | |
70d7cb34 RD |
39474 | static void *_p_wxGraphicsPenTo_p_wxObject(void *x) { |
39475 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x)); | |
39476 | } | |
0085ce49 RD |
39477 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { |
39478 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
39479 | } | |
39480 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
72ef6efb | 39481 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x)); |
0085ce49 RD |
39482 | } |
39483 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
39484 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
39485 | } | |
39486 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
26c4d26f | 39487 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x)); |
0085ce49 RD |
39488 | } |
39489 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
39490 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
39491 | } | |
39492 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
39493 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
39494 | } | |
39495 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
39496 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
39497 | } | |
39498 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
39499 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
39500 | } | |
70d7cb34 RD |
39501 | static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) { |
39502 | return (void *)((wxObject *) ((wxGraphicsObject *) x)); | |
39503 | } | |
39504 | static void *_p_wxGraphicsPathTo_p_wxObject(void *x) { | |
39505 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x)); | |
39506 | } | |
0085ce49 RD |
39507 | static void *_p_wxEffectsTo_p_wxObject(void *x) { |
39508 | return (void *)((wxObject *) ((wxEffects *) x)); | |
39509 | } | |
39510 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
39511 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
39512 | } | |
39513 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
39514 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
39515 | } | |
39516 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
39517 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
39518 | } | |
70d7cb34 RD |
39519 | static void *_p_wxGraphicsContextTo_p_wxObject(void *x) { |
39520 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x)); | |
39521 | } | |
0085ce49 RD |
39522 | static void *_p_wxShowEventTo_p_wxObject(void *x) { |
39523 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
39524 | } | |
39525 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
39526 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
39527 | } | |
39528 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
39529 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
39530 | } | |
39531 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
39532 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
39533 | } | |
39534 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
39535 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
39536 | } | |
39537 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
39538 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
39539 | } | |
39540 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
39541 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
39542 | } | |
39543 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
39544 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
39545 | } | |
39546 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
39547 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
39548 | } | |
39549 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
39550 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
39551 | } | |
39552 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
39553 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
39554 | } | |
39555 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
39556 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
39557 | } | |
39558 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
39559 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
39560 | } | |
39561 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
39562 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
39563 | } | |
39564 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
39565 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
39566 | } | |
39567 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
39568 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
39569 | } | |
39570 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
39571 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
39572 | } | |
39573 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
39574 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
39575 | } | |
39576 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
39577 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
39578 | } | |
39579 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
39580 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
39581 | } | |
39582 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { | |
39583 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
39584 | } | |
39585 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
39586 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
39587 | } | |
39588 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
39589 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
39590 | } | |
39591 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
39592 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
39593 | } | |
580080c5 RD |
39594 | static void *_p_wxTGAHandlerTo_p_wxObject(void *x) { |
39595 | return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x)); | |
39596 | } | |
0085ce49 RD |
39597 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { |
39598 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
39599 | } | |
34e0a3bb RD |
39600 | static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { |
39601 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
39602 | } | |
24f6c4e8 RD |
39603 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { |
39604 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x)); | |
39605 | } | |
0085ce49 | 39606 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { |
26c4d26f | 39607 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); |
0085ce49 | 39608 | } |
24f6c4e8 RD |
39609 | static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) { |
39610 | return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x)); | |
0085ce49 RD |
39611 | } |
39612 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
39613 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
39614 | } | |
39615 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
39616 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
39617 | } | |
0085ce49 RD |
39618 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
39619 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
39620 | } | |
580080c5 RD |
39621 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
39622 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
39623 | } | |
0085ce49 RD |
39624 | static void *_p_wxImageTo_p_wxObject(void *x) { |
39625 | return (void *)((wxObject *) ((wxImage *) x)); | |
39626 | } | |
39627 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
39628 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
39629 | } | |
70d7cb34 RD |
39630 | static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) { |
39631 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x)); | |
39632 | } | |
39633 | static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) { | |
39634 | return (void *)((wxObject *) ((wxGraphicsRenderer *) x)); | |
39635 | } | |
0085ce49 RD |
39636 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
39637 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
39638 | } | |
39639 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
26c4d26f | 39640 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); |
0085ce49 RD |
39641 | } |
39642 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
39643 | return (void *)((wxObject *) ((wxImageList *) x)); | |
39644 | } | |
72ef6efb RD |
39645 | static void *_p_wxGCDCTo_p_wxObject(void *x) { |
39646 | return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x)); | |
39647 | } | |
0085ce49 RD |
39648 | static void *_p_wxCursorTo_p_wxObject(void *x) { |
39649 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
39650 | } | |
39651 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
39652 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
39653 | } | |
39654 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
39655 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
39656 | } | |
70d7cb34 RD |
39657 | static void *_p_wxGraphicsFontTo_p_wxObject(void *x) { |
39658 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x)); | |
39659 | } | |
0085ce49 RD |
39660 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
39661 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
39662 | } | |
39663 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
39664 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
39665 | } | |
39666 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
39667 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
39668 | } | |
39669 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
39670 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
39671 | } | |
39672 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
39673 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
39674 | } | |
39675 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
39676 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
39677 | } | |
39678 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
39679 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
39680 | } | |
0085ce49 RD |
39681 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
39682 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
39683 | } | |
39684 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
39685 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
39686 | } | |
39687 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
39688 | return (void *)((wxObject *) ((wxMask *) x)); | |
39689 | } | |
70d7cb34 RD |
39690 | static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) { |
39691 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x)); | |
39692 | } | |
0085ce49 RD |
39693 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { |
39694 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
39695 | } | |
39696 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
39697 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
39698 | } | |
39699 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
39700 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
39701 | } | |
39702 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
39703 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
39704 | } | |
39705 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
39706 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
39707 | } | |
39708 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
39709 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
39710 | } | |
39711 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
39712 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
39713 | } | |
39714 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
39715 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
39716 | } | |
39717 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
39718 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
39719 | } | |
39720 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
39721 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
39722 | } | |
39723 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
39724 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
39725 | } | |
39726 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
39727 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
39728 | } | |
39729 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
39730 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
39731 | } | |
39732 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
39733 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
39734 | } | |
39735 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
39736 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
39737 | } | |
39738 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
39739 | return (void *)((wxObject *) ((wxColour *) x)); | |
39740 | } | |
0085ce49 RD |
39741 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { |
39742 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
39743 | } | |
39744 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
39745 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
39746 | } | |
39747 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
39748 | return (void *)((wxWindow *) ((wxControl *) x)); | |
39749 | } | |
39750 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
39751 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
39752 | } | |
39753 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
39754 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
39755 | } | |
fc46b7f3 RD |
39756 | static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) { |
39757 | return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x)); | |
39758 | } | |
39759 | static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) { | |
39760 | return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x)); | |
39761 | } | |
39762 | static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0}; | |
0085ce49 | 39763 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
72ef6efb | 39764 | static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39765 | 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}; |
39766 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
39767 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
39768 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
39769 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
0a27f394 | 39770 | static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; |
fc46b7f3 RD |
39771 | static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0}; |
39772 | static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0}; | |
24f6c4e8 | 39773 | static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39774 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; |
39775 | static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0}; | |
39776 | static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0}; | |
39777 | static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0}; | |
39778 | static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0}; | |
fc46b7f3 | 39779 | static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0}; |
0085ce49 | 39780 | static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0}; |
72ef6efb | 39781 | static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39782 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; |
39783 | static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0}; | |
39784 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0}; | |
39785 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; | |
70d7cb34 RD |
39786 | static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0}; |
39787 | static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0}; | |
b39fe951 | 39788 | static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
39789 | static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0}; |
39790 | static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0}; | |
0085ce49 RD |
39791 | static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0}; |
39792 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
39793 | static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0}; | |
39794 | static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0}; | |
39795 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
39796 | static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0}; | |
39797 | static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0}; | |
72ef6efb | 39798 | static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0}; |
50efceee | 39799 | static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0}; |
0085ce49 | 39800 | static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0}; |
70d7cb34 | 39801 | static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0}; |
72ef6efb | 39802 | static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
39803 | static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0}; |
39804 | static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0}; | |
39805 | static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0}; | |
72ef6efb | 39806 | static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
39807 | static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0}; |
39808 | static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0}; | |
33d6fd3b | 39809 | static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39810 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; |
39811 | static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0}; | |
39812 | static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0}; | |
39813 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0}; | |
39814 | static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0}; | |
39815 | static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0}; | |
39816 | static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0}; | |
39817 | static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0}; | |
39818 | static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0}; | |
39819 | static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0}; | |
39820 | static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0}; | |
39821 | static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0}; | |
39822 | static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0}; | |
39823 | static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0}; | |
fc46b7f3 RD |
39824 | static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0}; |
39825 | static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0}; | |
0085ce49 RD |
39826 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; |
39827 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
0085ce49 | 39828 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; |
34e0a3bb | 39829 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; |
0085ce49 RD |
39830 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; |
39831 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; | |
39832 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
39833 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
39834 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
39835 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
39836 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
39837 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
39838 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0}; | |
39839 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
39840 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
39841 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
2131d850 | 39842 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; |
0085ce49 RD |
39843 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; |
39844 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
39845 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
39846 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
39847 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
39848 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
39849 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
39850 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
39851 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
39852 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
39853 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
39854 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0}; | |
39855 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
39856 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
39857 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
39858 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
39859 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
39860 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
39861 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
39862 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
39863 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
39864 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
39865 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
0085ce49 | 39866 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0}; |
580080c5 | 39867 | static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0}; |
70d7cb34 RD |
39868 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; |
39869 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
39870 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
39871 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
39872 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
39873 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
24f6c4e8 | 39874 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; |
72ef6efb | 39875 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; |
27e45892 | 39876 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; |
2131d850 | 39877 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; |
0085ce49 RD |
39878 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; |
39879 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
39880 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
34e0a3bb | 39881 | static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0}; |
0085ce49 | 39882 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; |
580080c5 | 39883 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; |
0085ce49 RD |
39884 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; |
39885 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
39886 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
39887 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
39888 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
39889 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0}; | |
39890 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
39891 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
39892 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
39893 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
39894 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
39895 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
39896 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
39897 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0}; | |
39898 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
39899 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
39900 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
39901 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
39902 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
39903 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
b39fe951 | 39904 | static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39905 | static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0}; |
39906 | static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0}; | |
39907 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
39908 | static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0}; | |
39909 | static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0}; | |
fc46b7f3 | 39910 | static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0}; |
0085ce49 | 39911 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; |
72ef6efb | 39912 | static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0}; |
70d7cb34 | 39913 | static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39914 | static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0}; |
39915 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0}; | |
39916 | static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0}; | |
27e45892 | 39917 | static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0}; |
0085ce49 | 39918 | static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0}; |
fc46b7f3 | 39919 | static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0}; |
0085ce49 | 39920 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; |
70d7cb34 | 39921 | static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39922 | static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0}; |
39923 | static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0}; | |
39924 | static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0}; | |
39925 | static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0}; | |
39926 | static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0}; | |
39927 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
39928 | static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0}; | |
50efceee | 39929 | static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39930 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; |
39931 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
39932 | static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0}; | |
39933 | ||
39934 | static swig_type_info *swig_type_initial[] = { | |
fc46b7f3 | 39935 | &_swigt__p_buffer, |
0085ce49 RD |
39936 | &_swigt__p_char, |
39937 | &_swigt__p_double, | |
39938 | &_swigt__p_form_ops_t, | |
39939 | &_swigt__p_int, | |
39940 | &_swigt__p_unsigned_char, | |
39941 | &_swigt__p_unsigned_int, | |
39942 | &_swigt__p_unsigned_long, | |
0a27f394 | 39943 | &_swigt__p_void, |
0085ce49 RD |
39944 | &_swigt__p_wxANIHandler, |
39945 | &_swigt__p_wxAcceleratorTable, | |
39946 | &_swigt__p_wxActivateEvent, | |
fc46b7f3 RD |
39947 | &_swigt__p_wxAlphaPixelData, |
39948 | &_swigt__p_wxAlphaPixelData_Accessor, | |
24f6c4e8 | 39949 | &_swigt__p_wxAutoBufferedPaintDC, |
0085ce49 RD |
39950 | &_swigt__p_wxBMPHandler, |
39951 | &_swigt__p_wxBitmap, | |
39952 | &_swigt__p_wxBoxSizer, | |
39953 | &_swigt__p_wxBrush, | |
39954 | &_swigt__p_wxBrushList, | |
39955 | &_swigt__p_wxBufferedDC, | |
39956 | &_swigt__p_wxBufferedPaintDC, | |
39957 | &_swigt__p_wxCURHandler, | |
fc46b7f3 | 39958 | &_swigt__p_wxChar, |
0085ce49 RD |
39959 | &_swigt__p_wxChildFocusEvent, |
39960 | &_swigt__p_wxClientDC, | |
2131d850 | 39961 | &_swigt__p_wxClipboardTextEvent, |
0085ce49 | 39962 | &_swigt__p_wxCloseEvent, |
72ef6efb | 39963 | &_swigt__p_wxColor, |
0085ce49 RD |
39964 | &_swigt__p_wxColour, |
39965 | &_swigt__p_wxColourDatabase, | |
39966 | &_swigt__p_wxCommandEvent, | |
39967 | &_swigt__p_wxContextMenuEvent, | |
39968 | &_swigt__p_wxControl, | |
39969 | &_swigt__p_wxControlWithItems, | |
39970 | &_swigt__p_wxCursor, | |
39971 | &_swigt__p_wxDC, | |
70d7cb34 RD |
39972 | &_swigt__p_wxDCBrushChanger, |
39973 | &_swigt__p_wxDCClipper, | |
b39fe951 | 39974 | &_swigt__p_wxDCOverlay, |
70d7cb34 RD |
39975 | &_swigt__p_wxDCPenChanger, |
39976 | &_swigt__p_wxDCTextColourChanger, | |
0085ce49 RD |
39977 | &_swigt__p_wxDash, |
39978 | &_swigt__p_wxDateEvent, | |
39979 | &_swigt__p_wxDisplayChangedEvent, | |
39980 | &_swigt__p_wxDropFilesEvent, | |
39981 | &_swigt__p_wxDuplexMode, | |
39982 | &_swigt__p_wxEffects, | |
39983 | &_swigt__p_wxEncodingConverter, | |
39984 | &_swigt__p_wxEraseEvent, | |
39985 | &_swigt__p_wxEvent, | |
39986 | &_swigt__p_wxEvtHandler, | |
39987 | &_swigt__p_wxFSFile, | |
39988 | &_swigt__p_wxFileSystem, | |
39989 | &_swigt__p_wxFlexGridSizer, | |
39990 | &_swigt__p_wxFocusEvent, | |
39991 | &_swigt__p_wxFont, | |
39992 | &_swigt__p_wxFontList, | |
39993 | &_swigt__p_wxFontMapper, | |
39994 | &_swigt__p_wxGBSizerItem, | |
72ef6efb | 39995 | &_swigt__p_wxGCDC, |
50efceee | 39996 | &_swigt__p_wxGDIObjListBase, |
0085ce49 RD |
39997 | &_swigt__p_wxGDIObject, |
39998 | &_swigt__p_wxGIFHandler, | |
70d7cb34 | 39999 | &_swigt__p_wxGraphicsBrush, |
72ef6efb | 40000 | &_swigt__p_wxGraphicsContext, |
70d7cb34 RD |
40001 | &_swigt__p_wxGraphicsFont, |
40002 | &_swigt__p_wxGraphicsMatrix, | |
40003 | &_swigt__p_wxGraphicsObject, | |
72ef6efb | 40004 | &_swigt__p_wxGraphicsPath, |
70d7cb34 RD |
40005 | &_swigt__p_wxGraphicsPen, |
40006 | &_swigt__p_wxGraphicsRenderer, | |
0085ce49 RD |
40007 | &_swigt__p_wxGridBagSizer, |
40008 | &_swigt__p_wxGridSizer, | |
33d6fd3b | 40009 | &_swigt__p_wxHeaderButtonParams, |
0085ce49 RD |
40010 | &_swigt__p_wxICOHandler, |
40011 | &_swigt__p_wxIcon, | |
40012 | &_swigt__p_wxIconBundle, | |
40013 | &_swigt__p_wxIconLocation, | |
40014 | &_swigt__p_wxIconizeEvent, | |
40015 | &_swigt__p_wxIdleEvent, | |
40016 | &_swigt__p_wxImage, | |
40017 | &_swigt__p_wxImageHandler, | |
40018 | &_swigt__p_wxImageList, | |
40019 | &_swigt__p_wxIndividualLayoutConstraint, | |
40020 | &_swigt__p_wxInitDialogEvent, | |
40021 | &_swigt__p_wxJPEGHandler, | |
40022 | &_swigt__p_wxKeyEvent, | |
40023 | &_swigt__p_wxLanguageInfo, | |
40024 | &_swigt__p_wxLayoutConstraints, | |
40025 | &_swigt__p_wxLocale, | |
40026 | &_swigt__p_wxMask, | |
40027 | &_swigt__p_wxMaximizeEvent, | |
40028 | &_swigt__p_wxMemoryDC, | |
40029 | &_swigt__p_wxMenu, | |
40030 | &_swigt__p_wxMenuBar, | |
40031 | &_swigt__p_wxMenuEvent, | |
40032 | &_swigt__p_wxMenuItem, | |
40033 | &_swigt__p_wxMetaFile, | |
40034 | &_swigt__p_wxMetaFileDC, | |
40035 | &_swigt__p_wxMirrorDC, | |
40036 | &_swigt__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 40037 | &_swigt__p_wxMouseCaptureLostEvent, |
0085ce49 RD |
40038 | &_swigt__p_wxMouseEvent, |
40039 | &_swigt__p_wxMoveEvent, | |
40040 | &_swigt__p_wxNativeEncodingInfo, | |
40041 | &_swigt__p_wxNativeFontInfo, | |
fc46b7f3 RD |
40042 | &_swigt__p_wxNativePixelData, |
40043 | &_swigt__p_wxNativePixelData_Accessor, | |
0085ce49 RD |
40044 | &_swigt__p_wxNavigationKeyEvent, |
40045 | &_swigt__p_wxNcPaintEvent, | |
40046 | &_swigt__p_wxNotifyEvent, | |
40047 | &_swigt__p_wxObject, | |
b39fe951 | 40048 | &_swigt__p_wxOverlay, |
0085ce49 RD |
40049 | &_swigt__p_wxPCXHandler, |
40050 | &_swigt__p_wxPNGHandler, | |
40051 | &_swigt__p_wxPNMHandler, | |
40052 | &_swigt__p_wxPaintDC, | |
40053 | &_swigt__p_wxPaintEvent, | |
40054 | &_swigt__p_wxPalette, | |
40055 | &_swigt__p_wxPaletteChangedEvent, | |
40056 | &_swigt__p_wxPaperSize, | |
40057 | &_swigt__p_wxPen, | |
40058 | &_swigt__p_wxPenList, | |
fc46b7f3 | 40059 | &_swigt__p_wxPixelDataBase, |
0085ce49 | 40060 | &_swigt__p_wxPoint, |
72ef6efb | 40061 | &_swigt__p_wxPoint2D, |
70d7cb34 | 40062 | &_swigt__p_wxPoint2DDouble, |
0085ce49 RD |
40063 | &_swigt__p_wxPostScriptDC, |
40064 | &_swigt__p_wxPrintData, | |
40065 | &_swigt__p_wxPrinterDC, | |
27e45892 | 40066 | &_swigt__p_wxPseudoDC, |
0085ce49 RD |
40067 | &_swigt__p_wxPyApp, |
40068 | &_swigt__p_wxPyCommandEvent, | |
40069 | &_swigt__p_wxPyEvent, | |
40070 | &_swigt__p_wxPyFontEnumerator, | |
40071 | &_swigt__p_wxPyImageHandler, | |
fc46b7f3 | 40072 | &_swigt__p_wxPyLocale, |
0085ce49 RD |
40073 | &_swigt__p_wxPySizer, |
40074 | &_swigt__p_wxPyValidator, | |
40075 | &_swigt__p_wxQueryNewPaletteEvent, | |
40076 | &_swigt__p_wxRect, | |
70d7cb34 | 40077 | &_swigt__p_wxRect2DDouble, |
0085ce49 RD |
40078 | &_swigt__p_wxRegion, |
40079 | &_swigt__p_wxRegionIterator, | |
40080 | &_swigt__p_wxRendererNative, | |
40081 | &_swigt__p_wxRendererVersion, | |
40082 | &_swigt__p_wxScreenDC, | |
40083 | &_swigt__p_wxScrollEvent, | |
40084 | &_swigt__p_wxScrollWinEvent, | |
40085 | &_swigt__p_wxSetCursorEvent, | |
40086 | &_swigt__p_wxShowEvent, | |
40087 | &_swigt__p_wxSize, | |
40088 | &_swigt__p_wxSizeEvent, | |
40089 | &_swigt__p_wxSizer, | |
40090 | &_swigt__p_wxSizerItem, | |
40091 | &_swigt__p_wxSplitterRenderParams, | |
40092 | &_swigt__p_wxStaticBoxSizer, | |
40093 | &_swigt__p_wxStdDialogButtonSizer, | |
50efceee | 40094 | &_swigt__p_wxStockGDI, |
0085ce49 RD |
40095 | &_swigt__p_wxString, |
40096 | &_swigt__p_wxSysColourChangedEvent, | |
580080c5 | 40097 | &_swigt__p_wxTGAHandler, |
0085ce49 RD |
40098 | &_swigt__p_wxTIFFHandler, |
40099 | &_swigt__p_wxUpdateUIEvent, | |
40100 | &_swigt__p_wxValidator, | |
40101 | &_swigt__p_wxWindow, | |
40102 | &_swigt__p_wxWindowCreateEvent, | |
40103 | &_swigt__p_wxWindowDC, | |
40104 | &_swigt__p_wxWindowDestroyEvent, | |
40105 | &_swigt__p_wxXPMHandler, | |
40106 | }; | |
40107 | ||
fc46b7f3 | 40108 | static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40109 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
40110 | static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; | |
40111 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
40112 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
40113 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
40114 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
40115 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
0a27f394 | 40116 | static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; |
fc46b7f3 RD |
40117 | static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}}; |
40118 | static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 40119 | static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40120 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; |
40121 | static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}}; | |
40122 | static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}}; | |
40123 | 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}}; | |
40124 | static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 40125 | static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb RD |
40126 | 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}}; |
40127 | static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 RD |
40128 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; |
40129 | static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}}; | |
40130 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 40131 | 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 |
40132 | static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}}; |
40133 | static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}}; | |
b39fe951 | 40134 | static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
40135 | static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}}; |
40136 | static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 RD |
40137 | static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}}; |
40138 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
40139 | static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}}; | |
40140 | static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}}; | |
40141 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
40142 | static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}}; | |
40143 | static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}}; | |
72ef6efb | 40144 | static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}}; |
50efceee | 40145 | 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 | 40146 | 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 | 40147 | static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 40148 | static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
40149 | static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}}; |
40150 | static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}}; | |
40151 | 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 | 40152 | static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
40153 | static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}}; |
40154 | static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}}; | |
33d6fd3b | 40155 | static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40156 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; |
40157 | static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}}; | |
40158 | static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}}; | |
40159 | static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
40160 | static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}}; | |
40161 | static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 40162 | 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 | 40163 | static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}}; |
8e99bda9 | 40164 | 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 |
40165 | static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}}; |
40166 | static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}}; | |
40167 | static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}}; | |
40168 | static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
40169 | static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 RD |
40170 | static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}}; |
40171 | static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 | 40172 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 40173 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
34e0a3bb | 40174 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40175 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; |
40176 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
40177 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40178 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40179 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40180 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40181 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40182 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
40183 | static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40184 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40185 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40186 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 40187 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40188 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; |
40189 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40190 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40191 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40192 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40193 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40194 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
40195 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40196 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
40197 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40198 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40199 | static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40200 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40201 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
40202 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40203 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40204 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40205 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40206 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40207 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40208 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40209 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40210 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 | 40211 | static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}}; |
580080c5 | 40212 | static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
40213 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
40214 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
40215 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
40216 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
40217 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
40218 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 40219 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 40220 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; |
27e45892 | 40221 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 | 40222 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40223 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; |
40224 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
40225 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 40226 | static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 40227 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; |
580080c5 | 40228 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40229 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; |
40230 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40231 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40232 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40233 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
40234 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
40235 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40236 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40237 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
40238 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40239 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40240 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40241 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40242 | static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40243 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40244 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40245 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40246 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
40247 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
40248 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
580080c5 | 40249 | 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_wxTGAHandler, _p_wxTGAHandlerTo_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_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_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 | 40250 | static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40251 | static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}}; |
40252 | static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}}; | |
40253 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
40254 | static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}}; | |
40255 | static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 40256 | 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 | 40257 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 40258 | static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 | 40259 | static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40260 | static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}}; |
40261 | static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
40262 | static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 40263 | static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 40264 | static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}}; |
fc46b7f3 | 40265 | static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 40266 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 | 40267 | static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40268 | static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}}; |
40269 | static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}}; | |
40270 | static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}}; | |
40271 | static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}}; | |
40272 | static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}}; | |
40273 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
40274 | static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}}; | |
50efceee | 40275 | static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40276 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; |
40277 | 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}}; | |
26c4d26f | 40278 | static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxWindowDC, 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 |
40279 | |
40280 | static swig_cast_info *swig_cast_initial[] = { | |
fc46b7f3 | 40281 | _swigc__p_buffer, |
0085ce49 RD |
40282 | _swigc__p_char, |
40283 | _swigc__p_double, | |
40284 | _swigc__p_form_ops_t, | |
40285 | _swigc__p_int, | |
40286 | _swigc__p_unsigned_char, | |
40287 | _swigc__p_unsigned_int, | |
40288 | _swigc__p_unsigned_long, | |
0a27f394 | 40289 | _swigc__p_void, |
0085ce49 RD |
40290 | _swigc__p_wxANIHandler, |
40291 | _swigc__p_wxAcceleratorTable, | |
40292 | _swigc__p_wxActivateEvent, | |
fc46b7f3 RD |
40293 | _swigc__p_wxAlphaPixelData, |
40294 | _swigc__p_wxAlphaPixelData_Accessor, | |
24f6c4e8 | 40295 | _swigc__p_wxAutoBufferedPaintDC, |
0085ce49 RD |
40296 | _swigc__p_wxBMPHandler, |
40297 | _swigc__p_wxBitmap, | |
40298 | _swigc__p_wxBoxSizer, | |
40299 | _swigc__p_wxBrush, | |
40300 | _swigc__p_wxBrushList, | |
40301 | _swigc__p_wxBufferedDC, | |
40302 | _swigc__p_wxBufferedPaintDC, | |
40303 | _swigc__p_wxCURHandler, | |
fc46b7f3 | 40304 | _swigc__p_wxChar, |
0085ce49 RD |
40305 | _swigc__p_wxChildFocusEvent, |
40306 | _swigc__p_wxClientDC, | |
2131d850 | 40307 | _swigc__p_wxClipboardTextEvent, |
0085ce49 | 40308 | _swigc__p_wxCloseEvent, |
72ef6efb | 40309 | _swigc__p_wxColor, |
0085ce49 RD |
40310 | _swigc__p_wxColour, |
40311 | _swigc__p_wxColourDatabase, | |
40312 | _swigc__p_wxCommandEvent, | |
40313 | _swigc__p_wxContextMenuEvent, | |
40314 | _swigc__p_wxControl, | |
40315 | _swigc__p_wxControlWithItems, | |
40316 | _swigc__p_wxCursor, | |
40317 | _swigc__p_wxDC, | |
70d7cb34 RD |
40318 | _swigc__p_wxDCBrushChanger, |
40319 | _swigc__p_wxDCClipper, | |
b39fe951 | 40320 | _swigc__p_wxDCOverlay, |
70d7cb34 RD |
40321 | _swigc__p_wxDCPenChanger, |
40322 | _swigc__p_wxDCTextColourChanger, | |
0085ce49 RD |
40323 | _swigc__p_wxDash, |
40324 | _swigc__p_wxDateEvent, | |
40325 | _swigc__p_wxDisplayChangedEvent, | |
40326 | _swigc__p_wxDropFilesEvent, | |
40327 | _swigc__p_wxDuplexMode, | |
40328 | _swigc__p_wxEffects, | |
40329 | _swigc__p_wxEncodingConverter, | |
40330 | _swigc__p_wxEraseEvent, | |
40331 | _swigc__p_wxEvent, | |
40332 | _swigc__p_wxEvtHandler, | |
40333 | _swigc__p_wxFSFile, | |
40334 | _swigc__p_wxFileSystem, | |
40335 | _swigc__p_wxFlexGridSizer, | |
40336 | _swigc__p_wxFocusEvent, | |
40337 | _swigc__p_wxFont, | |
40338 | _swigc__p_wxFontList, | |
40339 | _swigc__p_wxFontMapper, | |
40340 | _swigc__p_wxGBSizerItem, | |
72ef6efb | 40341 | _swigc__p_wxGCDC, |
50efceee | 40342 | _swigc__p_wxGDIObjListBase, |
0085ce49 RD |
40343 | _swigc__p_wxGDIObject, |
40344 | _swigc__p_wxGIFHandler, | |
70d7cb34 | 40345 | _swigc__p_wxGraphicsBrush, |
72ef6efb | 40346 | _swigc__p_wxGraphicsContext, |
70d7cb34 RD |
40347 | _swigc__p_wxGraphicsFont, |
40348 | _swigc__p_wxGraphicsMatrix, | |
40349 | _swigc__p_wxGraphicsObject, | |
72ef6efb | 40350 | _swigc__p_wxGraphicsPath, |
70d7cb34 RD |
40351 | _swigc__p_wxGraphicsPen, |
40352 | _swigc__p_wxGraphicsRenderer, | |
0085ce49 RD |
40353 | _swigc__p_wxGridBagSizer, |
40354 | _swigc__p_wxGridSizer, | |
33d6fd3b | 40355 | _swigc__p_wxHeaderButtonParams, |
0085ce49 RD |
40356 | _swigc__p_wxICOHandler, |
40357 | _swigc__p_wxIcon, | |
40358 | _swigc__p_wxIconBundle, | |
40359 | _swigc__p_wxIconLocation, | |
40360 | _swigc__p_wxIconizeEvent, | |
40361 | _swigc__p_wxIdleEvent, | |
40362 | _swigc__p_wxImage, | |
40363 | _swigc__p_wxImageHandler, | |
40364 | _swigc__p_wxImageList, | |
40365 | _swigc__p_wxIndividualLayoutConstraint, | |
40366 | _swigc__p_wxInitDialogEvent, | |
40367 | _swigc__p_wxJPEGHandler, | |
40368 | _swigc__p_wxKeyEvent, | |
40369 | _swigc__p_wxLanguageInfo, | |
40370 | _swigc__p_wxLayoutConstraints, | |
40371 | _swigc__p_wxLocale, | |
40372 | _swigc__p_wxMask, | |
40373 | _swigc__p_wxMaximizeEvent, | |
40374 | _swigc__p_wxMemoryDC, | |
40375 | _swigc__p_wxMenu, | |
40376 | _swigc__p_wxMenuBar, | |
40377 | _swigc__p_wxMenuEvent, | |
40378 | _swigc__p_wxMenuItem, | |
40379 | _swigc__p_wxMetaFile, | |
40380 | _swigc__p_wxMetaFileDC, | |
40381 | _swigc__p_wxMirrorDC, | |
40382 | _swigc__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 40383 | _swigc__p_wxMouseCaptureLostEvent, |
0085ce49 RD |
40384 | _swigc__p_wxMouseEvent, |
40385 | _swigc__p_wxMoveEvent, | |
40386 | _swigc__p_wxNativeEncodingInfo, | |
40387 | _swigc__p_wxNativeFontInfo, | |
fc46b7f3 RD |
40388 | _swigc__p_wxNativePixelData, |
40389 | _swigc__p_wxNativePixelData_Accessor, | |
0085ce49 RD |
40390 | _swigc__p_wxNavigationKeyEvent, |
40391 | _swigc__p_wxNcPaintEvent, | |
40392 | _swigc__p_wxNotifyEvent, | |
40393 | _swigc__p_wxObject, | |
b39fe951 | 40394 | _swigc__p_wxOverlay, |
0085ce49 RD |
40395 | _swigc__p_wxPCXHandler, |
40396 | _swigc__p_wxPNGHandler, | |
40397 | _swigc__p_wxPNMHandler, | |
40398 | _swigc__p_wxPaintDC, | |
40399 | _swigc__p_wxPaintEvent, | |
40400 | _swigc__p_wxPalette, | |
40401 | _swigc__p_wxPaletteChangedEvent, | |
40402 | _swigc__p_wxPaperSize, | |
40403 | _swigc__p_wxPen, | |
40404 | _swigc__p_wxPenList, | |
fc46b7f3 | 40405 | _swigc__p_wxPixelDataBase, |
0085ce49 | 40406 | _swigc__p_wxPoint, |
72ef6efb | 40407 | _swigc__p_wxPoint2D, |
70d7cb34 | 40408 | _swigc__p_wxPoint2DDouble, |
0085ce49 RD |
40409 | _swigc__p_wxPostScriptDC, |
40410 | _swigc__p_wxPrintData, | |
40411 | _swigc__p_wxPrinterDC, | |
27e45892 | 40412 | _swigc__p_wxPseudoDC, |
0085ce49 RD |
40413 | _swigc__p_wxPyApp, |
40414 | _swigc__p_wxPyCommandEvent, | |
40415 | _swigc__p_wxPyEvent, | |
40416 | _swigc__p_wxPyFontEnumerator, | |
40417 | _swigc__p_wxPyImageHandler, | |
fc46b7f3 | 40418 | _swigc__p_wxPyLocale, |
0085ce49 RD |
40419 | _swigc__p_wxPySizer, |
40420 | _swigc__p_wxPyValidator, | |
40421 | _swigc__p_wxQueryNewPaletteEvent, | |
40422 | _swigc__p_wxRect, | |
70d7cb34 | 40423 | _swigc__p_wxRect2DDouble, |
0085ce49 RD |
40424 | _swigc__p_wxRegion, |
40425 | _swigc__p_wxRegionIterator, | |
40426 | _swigc__p_wxRendererNative, | |
40427 | _swigc__p_wxRendererVersion, | |
40428 | _swigc__p_wxScreenDC, | |
40429 | _swigc__p_wxScrollEvent, | |
40430 | _swigc__p_wxScrollWinEvent, | |
40431 | _swigc__p_wxSetCursorEvent, | |
40432 | _swigc__p_wxShowEvent, | |
40433 | _swigc__p_wxSize, | |
40434 | _swigc__p_wxSizeEvent, | |
40435 | _swigc__p_wxSizer, | |
40436 | _swigc__p_wxSizerItem, | |
40437 | _swigc__p_wxSplitterRenderParams, | |
40438 | _swigc__p_wxStaticBoxSizer, | |
40439 | _swigc__p_wxStdDialogButtonSizer, | |
50efceee | 40440 | _swigc__p_wxStockGDI, |
0085ce49 RD |
40441 | _swigc__p_wxString, |
40442 | _swigc__p_wxSysColourChangedEvent, | |
580080c5 | 40443 | _swigc__p_wxTGAHandler, |
0085ce49 RD |
40444 | _swigc__p_wxTIFFHandler, |
40445 | _swigc__p_wxUpdateUIEvent, | |
40446 | _swigc__p_wxValidator, | |
40447 | _swigc__p_wxWindow, | |
40448 | _swigc__p_wxWindowCreateEvent, | |
40449 | _swigc__p_wxWindowDC, | |
40450 | _swigc__p_wxWindowDestroyEvent, | |
40451 | _swigc__p_wxXPMHandler, | |
40452 | }; | |
40453 | ||
40454 | ||
40455 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
40456 | ||
40457 | static swig_const_info swig_const_table[] = { | |
40458 | {0, 0, 0, 0.0, 0, 0}}; | |
40459 | ||
40460 | #ifdef __cplusplus | |
40461 | } | |
40462 | #endif | |
40463 | /* ----------------------------------------------------------------------------- | |
40464 | * Type initialization: | |
40465 | * This problem is tough by the requirement that no dynamic | |
40466 | * memory is used. Also, since swig_type_info structures store pointers to | |
40467 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
40468 | * to swig_type_info structures, we need some lookup code at initialization. | |
40469 | * The idea is that swig generates all the structures that are needed. | |
40470 | * The runtime then collects these partially filled structures. | |
40471 | * The SWIG_InitializeModule function takes these initial arrays out of | |
40472 | * swig_module, and does all the lookup, filling in the swig_module.types | |
40473 | * array with the correct data and linking the correct swig_cast_info | |
40474 | * structures together. | |
40475 | * | |
40476 | * The generated swig_type_info structures are assigned staticly to an initial | |
40477 | * array. We just loop though that array, and handle each type individually. | |
40478 | * First we lookup if this type has been already loaded, and if so, use the | |
40479 | * loaded structure instead of the generated one. Then we have to fill in the | |
40480 | * cast linked list. The cast data is initially stored in something like a | |
40481 | * two-dimensional array. Each row corresponds to a type (there are the same | |
40482 | * number of rows as there are in the swig_type_initial array). Each entry in | |
40483 | * a column is one of the swig_cast_info structures for that type. | |
40484 | * The cast_initial array is actually an array of arrays, because each row has | |
40485 | * a variable number of columns. So to actually build the cast linked list, | |
40486 | * we find the array of casts associated with the type, and loop through it | |
40487 | * adding the casts to the list. The one last trick we need to do is making | |
40488 | * sure the type pointer in the swig_cast_info struct is correct. | |
40489 | * | |
40490 | * First off, we lookup the cast->type name to see if it is already loaded. | |
40491 | * There are three cases to handle: | |
40492 | * 1) If the cast->type has already been loaded AND the type we are adding | |
40493 | * casting info to has not been loaded (it is in this module), THEN we | |
40494 | * replace the cast->type pointer with the type pointer that has already | |
40495 | * been loaded. | |
40496 | * 2) If BOTH types (the one we are adding casting info to, and the | |
40497 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
40498 | * the previous module so we just ignore it. | |
40499 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
40500 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
40501 | * be correct. | |
40502 | * ----------------------------------------------------------------------------- */ | |
40503 | ||
40504 | #ifdef __cplusplus | |
40505 | extern "C" { | |
40506 | #if 0 | |
40507 | } /* c-mode */ | |
40508 | #endif | |
40509 | #endif | |
40510 | ||
40511 | #if 0 | |
40512 | #define SWIGRUNTIME_DEBUG | |
40513 | #endif | |
40514 | ||
40515 | SWIGRUNTIME void | |
40516 | SWIG_InitializeModule(void *clientdata) { | |
40517 | size_t i; | |
40518 | swig_module_info *module_head; | |
40519 | static int init_run = 0; | |
40520 | ||
40521 | clientdata = clientdata; | |
40522 | ||
40523 | if (init_run) return; | |
40524 | init_run = 1; | |
40525 | ||
40526 | /* Initialize the swig_module */ | |
40527 | swig_module.type_initial = swig_type_initial; | |
40528 | swig_module.cast_initial = swig_cast_initial; | |
40529 | ||
40530 | /* Try and load any already created modules */ | |
40531 | module_head = SWIG_GetModule(clientdata); | |
40532 | if (module_head) { | |
40533 | swig_module.next = module_head->next; | |
40534 | module_head->next = &swig_module; | |
40535 | } else { | |
40536 | /* This is the first module loaded */ | |
40537 | swig_module.next = &swig_module; | |
40538 | SWIG_SetModule(clientdata, &swig_module); | |
40539 | } | |
40540 | ||
40541 | /* Now work on filling in swig_module.types */ | |
40542 | #ifdef SWIGRUNTIME_DEBUG | |
40543 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
40544 | #endif | |
40545 | for (i = 0; i < swig_module.size; ++i) { | |
40546 | swig_type_info *type = 0; | |
40547 | swig_type_info *ret; | |
40548 | swig_cast_info *cast; | |
40549 | ||
40550 | #ifdef SWIGRUNTIME_DEBUG | |
40551 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
40552 | #endif | |
40553 | ||
40554 | /* if there is another module already loaded */ | |
40555 | if (swig_module.next != &swig_module) { | |
40556 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
8d38bd1d | 40557 | } |
0085ce49 RD |
40558 | if (type) { |
40559 | /* Overwrite clientdata field */ | |
40560 | #ifdef SWIGRUNTIME_DEBUG | |
40561 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
40562 | #endif | |
40563 | if (swig_module.type_initial[i]->clientdata) { | |
40564 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
40565 | #ifdef SWIGRUNTIME_DEBUG | |
40566 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
40567 | #endif | |
40568 | } | |
40569 | } else { | |
40570 | type = swig_module.type_initial[i]; | |
8d38bd1d | 40571 | } |
0085ce49 RD |
40572 | |
40573 | /* Insert casting types */ | |
40574 | cast = swig_module.cast_initial[i]; | |
40575 | while (cast->type) { | |
40576 | /* Don't need to add information already in the list */ | |
40577 | ret = 0; | |
40578 | #ifdef SWIGRUNTIME_DEBUG | |
40579 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
40580 | #endif | |
40581 | if (swig_module.next != &swig_module) { | |
40582 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
40583 | #ifdef SWIGRUNTIME_DEBUG | |
40584 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
40585 | #endif | |
40586 | } | |
40587 | if (ret) { | |
40588 | if (type == swig_module.type_initial[i]) { | |
40589 | #ifdef SWIGRUNTIME_DEBUG | |
40590 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
40591 | #endif | |
40592 | cast->type = ret; | |
40593 | ret = 0; | |
40594 | } else { | |
40595 | /* Check for casting already in the list */ | |
40596 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
40597 | #ifdef SWIGRUNTIME_DEBUG | |
40598 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
40599 | #endif | |
40600 | if (!ocast) ret = 0; | |
40601 | } | |
40602 | } | |
40603 | ||
40604 | if (!ret) { | |
40605 | #ifdef SWIGRUNTIME_DEBUG | |
40606 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
40607 | #endif | |
40608 | if (type->cast) { | |
40609 | type->cast->prev = cast; | |
40610 | cast->next = type->cast; | |
40611 | } | |
40612 | type->cast = cast; | |
40613 | } | |
40614 | cast++; | |
8d38bd1d | 40615 | } |
0085ce49 RD |
40616 | /* Set entry in modules->types array equal to the type */ |
40617 | swig_module.types[i] = type; | |
40618 | } | |
40619 | swig_module.types[i] = 0; | |
40620 | ||
40621 | #ifdef SWIGRUNTIME_DEBUG | |
40622 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
40623 | for (i = 0; i < swig_module.size; ++i) { | |
40624 | int j = 0; | |
40625 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
40626 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
40627 | while (cast->type) { | |
40628 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
40629 | cast++; | |
40630 | ++j; | |
40631 | } | |
40632 | printf("---- Total casts: %d\n",j); | |
40633 | } | |
40634 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
40635 | #endif | |
40636 | } | |
40637 | ||
40638 | /* This function will propagate the clientdata field of type to | |
40639 | * any new swig_type_info structures that have been added into the list | |
40640 | * of equivalent types. It is like calling | |
40641 | * SWIG_TypeClientData(type, clientdata) a second time. | |
40642 | */ | |
40643 | SWIGRUNTIME void | |
40644 | SWIG_PropagateClientData(void) { | |
40645 | size_t i; | |
40646 | swig_cast_info *equiv; | |
40647 | static int init_run = 0; | |
40648 | ||
40649 | if (init_run) return; | |
40650 | init_run = 1; | |
40651 | ||
40652 | for (i = 0; i < swig_module.size; i++) { | |
40653 | if (swig_module.types[i]->clientdata) { | |
40654 | equiv = swig_module.types[i]->cast; | |
40655 | while (equiv) { | |
40656 | if (!equiv->converter) { | |
40657 | if (equiv->type && !equiv->type->clientdata) | |
40658 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
40659 | } | |
40660 | equiv = equiv->next; | |
40661 | } | |
8d38bd1d | 40662 | } |
0085ce49 RD |
40663 | } |
40664 | } | |
40665 | ||
40666 | #ifdef __cplusplus | |
40667 | #if 0 | |
40668 | { | |
40669 | /* c-mode */ | |
40670 | #endif | |
40671 | } | |
40672 | #endif | |
40673 | ||
40674 | ||
40675 | ||
40676 | #ifdef __cplusplus | |
40677 | extern "C" { | |
40678 | #endif | |
40679 | ||
40680 | /* Python-specific SWIG API */ | |
40681 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
40682 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
40683 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
40684 | ||
40685 | /* ----------------------------------------------------------------------------- | |
40686 | * global variable support code. | |
40687 | * ----------------------------------------------------------------------------- */ | |
40688 | ||
40689 | typedef struct swig_globalvar { | |
40690 | char *name; /* Name of global variable */ | |
40691 | PyObject *(*get_attr)(void); /* Return the current value */ | |
40692 | int (*set_attr)(PyObject *); /* Set the value */ | |
40693 | struct swig_globalvar *next; | |
40694 | } swig_globalvar; | |
40695 | ||
40696 | typedef struct swig_varlinkobject { | |
40697 | PyObject_HEAD | |
40698 | swig_globalvar *vars; | |
40699 | } swig_varlinkobject; | |
40700 | ||
40701 | SWIGINTERN PyObject * | |
40702 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
40703 | return PyString_FromString("<Swig global variables>"); | |
40704 | } | |
40705 | ||
40706 | SWIGINTERN PyObject * | |
40707 | swig_varlink_str(swig_varlinkobject *v) { | |
40708 | PyObject *str = PyString_FromString("("); | |
40709 | swig_globalvar *var; | |
40710 | for (var = v->vars; var; var=var->next) { | |
40711 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
40712 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
40713 | } | |
40714 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
40715 | return str; | |
40716 | } | |
40717 | ||
40718 | SWIGINTERN int | |
40719 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
40720 | PyObject *str = swig_varlink_str(v); | |
40721 | fprintf(fp,"Swig global variables "); | |
40722 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
40723 | Py_DECREF(str); | |
40724 | return 0; | |
40725 | } | |
40726 | ||
40727 | SWIGINTERN void | |
40728 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
40729 | swig_globalvar *var = v->vars; | |
40730 | while (var) { | |
40731 | swig_globalvar *n = var->next; | |
40732 | free(var->name); | |
40733 | free(var); | |
40734 | var = n; | |
8d38bd1d | 40735 | } |
0085ce49 RD |
40736 | } |
40737 | ||
40738 | SWIGINTERN PyObject * | |
40739 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
40740 | PyObject *res = NULL; | |
40741 | swig_globalvar *var = v->vars; | |
40742 | while (var) { | |
40743 | if (strcmp(var->name,n) == 0) { | |
40744 | res = (*var->get_attr)(); | |
40745 | break; | |
40746 | } | |
40747 | var = var->next; | |
8d38bd1d | 40748 | } |
0085ce49 RD |
40749 | if (res == NULL && !PyErr_Occurred()) { |
40750 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
8d38bd1d | 40751 | } |
0085ce49 RD |
40752 | return res; |
40753 | } | |
40754 | ||
40755 | SWIGINTERN int | |
40756 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
40757 | int res = 1; | |
40758 | swig_globalvar *var = v->vars; | |
40759 | while (var) { | |
40760 | if (strcmp(var->name,n) == 0) { | |
40761 | res = (*var->set_attr)(p); | |
40762 | break; | |
40763 | } | |
40764 | var = var->next; | |
8d38bd1d | 40765 | } |
0085ce49 RD |
40766 | if (res == 1 && !PyErr_Occurred()) { |
40767 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
8d38bd1d | 40768 | } |
0085ce49 RD |
40769 | return res; |
40770 | } | |
40771 | ||
40772 | SWIGINTERN PyTypeObject* | |
40773 | swig_varlink_type(void) { | |
40774 | static char varlink__doc__[] = "Swig var link object"; | |
40775 | static PyTypeObject varlink_type; | |
40776 | static int type_init = 0; | |
40777 | if (!type_init) { | |
40778 | const PyTypeObject tmp | |
40779 | = { | |
40780 | PyObject_HEAD_INIT(NULL) | |
40781 | 0, /* Number of items in variable part (ob_size) */ | |
40782 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
40783 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
40784 | 0, /* Itemsize (tp_itemsize) */ | |
40785 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
40786 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
40787 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
40788 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
40789 | 0, /* tp_compare */ | |
40790 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
40791 | 0, /* tp_as_number */ | |
40792 | 0, /* tp_as_sequence */ | |
40793 | 0, /* tp_as_mapping */ | |
40794 | 0, /* tp_hash */ | |
40795 | 0, /* tp_call */ | |
40796 | (reprfunc)swig_varlink_str, /* tp_str */ | |
40797 | 0, /* tp_getattro */ | |
40798 | 0, /* tp_setattro */ | |
40799 | 0, /* tp_as_buffer */ | |
40800 | 0, /* tp_flags */ | |
40801 | varlink__doc__, /* tp_doc */ | |
40802 | 0, /* tp_traverse */ | |
40803 | 0, /* tp_clear */ | |
40804 | 0, /* tp_richcompare */ | |
40805 | 0, /* tp_weaklistoffset */ | |
40806 | #if PY_VERSION_HEX >= 0x02020000 | |
40807 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
40808 | #endif | |
40809 | #if PY_VERSION_HEX >= 0x02030000 | |
40810 | 0, /* tp_del */ | |
40811 | #endif | |
40812 | #ifdef COUNT_ALLOCS | |
40813 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
40814 | #endif | |
40815 | }; | |
40816 | varlink_type = tmp; | |
40817 | varlink_type.ob_type = &PyType_Type; | |
40818 | type_init = 1; | |
8d38bd1d | 40819 | } |
0085ce49 RD |
40820 | return &varlink_type; |
40821 | } | |
40822 | ||
40823 | /* Create a variable linking object for use later */ | |
40824 | SWIGINTERN PyObject * | |
40825 | SWIG_Python_newvarlink(void) { | |
40826 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
40827 | if (result) { | |
40828 | result->vars = 0; | |
40829 | } | |
40830 | return ((PyObject*) result); | |
40831 | } | |
40832 | ||
40833 | SWIGINTERN void | |
40834 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
40835 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
40836 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
40837 | if (gv) { | |
40838 | size_t size = strlen(name)+1; | |
40839 | gv->name = (char *)malloc(size); | |
40840 | if (gv->name) { | |
40841 | strncpy(gv->name,name,size); | |
40842 | gv->get_attr = get_attr; | |
40843 | gv->set_attr = set_attr; | |
40844 | gv->next = v->vars; | |
40845 | } | |
8d38bd1d | 40846 | } |
0085ce49 RD |
40847 | v->vars = gv; |
40848 | } | |
40849 | ||
40850 | SWIGINTERN PyObject * | |
40851 | SWIG_globals() { | |
40852 | static PyObject *_SWIG_globals = 0; | |
40853 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
40854 | return _SWIG_globals; | |
40855 | } | |
40856 | ||
40857 | /* ----------------------------------------------------------------------------- | |
40858 | * constants/methods manipulation | |
40859 | * ----------------------------------------------------------------------------- */ | |
40860 | ||
40861 | /* Install Constants */ | |
40862 | SWIGINTERN void | |
40863 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
40864 | PyObject *obj = 0; | |
40865 | size_t i; | |
40866 | for (i = 0; constants[i].type; ++i) { | |
40867 | switch(constants[i].type) { | |
40868 | case SWIG_PY_POINTER: | |
40869 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
40870 | break; | |
40871 | case SWIG_PY_BINARY: | |
40872 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
40873 | break; | |
40874 | default: | |
40875 | obj = 0; | |
40876 | break; | |
40877 | } | |
40878 | if (obj) { | |
40879 | PyDict_SetItemString(d, constants[i].name, obj); | |
40880 | Py_DECREF(obj); | |
40881 | } | |
8d38bd1d | 40882 | } |
0085ce49 RD |
40883 | } |
40884 | ||
40885 | /* -----------------------------------------------------------------------------*/ | |
40886 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
40887 | /* -----------------------------------------------------------------------------*/ | |
40888 | ||
40889 | SWIGINTERN void | |
40890 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
40891 | swig_const_info *const_table, | |
40892 | swig_type_info **types, | |
40893 | swig_type_info **types_initial) { | |
40894 | size_t i; | |
40895 | for (i = 0; methods[i].ml_name; ++i) { | |
453fb36b | 40896 | const char *c = methods[i].ml_doc; |
0085ce49 RD |
40897 | if (c && (c = strstr(c, "swig_ptr: "))) { |
40898 | int j; | |
40899 | swig_const_info *ci = 0; | |
453fb36b | 40900 | const char *name = c + 10; |
0085ce49 RD |
40901 | for (j = 0; const_table[j].type; ++j) { |
40902 | if (strncmp(const_table[j].name, name, | |
40903 | strlen(const_table[j].name)) == 0) { | |
40904 | ci = &(const_table[j]); | |
40905 | break; | |
40906 | } | |
40907 | } | |
40908 | if (ci) { | |
40909 | size_t shift = (ci->ptype) - types; | |
40910 | swig_type_info *ty = types_initial[shift]; | |
40911 | size_t ldoc = (c - methods[i].ml_doc); | |
40912 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
40913 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
40914 | if (ndoc) { | |
40915 | char *buff = ndoc; | |
40916 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
40917 | if (ptr) { | |
40918 | strncpy(buff, methods[i].ml_doc, ldoc); | |
40919 | buff += ldoc; | |
40920 | strncpy(buff, "swig_ptr: ", 10); | |
40921 | buff += 10; | |
40922 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
40923 | methods[i].ml_doc = ndoc; | |
40924 | } | |
40925 | } | |
40926 | } | |
40927 | } | |
8d38bd1d | 40928 | } |
0085ce49 RD |
40929 | } |
40930 | ||
40931 | #ifdef __cplusplus | |
40932 | } | |
40933 | #endif | |
40934 | ||
40935 | /* -----------------------------------------------------------------------------* | |
40936 | * Partial Init method | |
40937 | * -----------------------------------------------------------------------------*/ | |
40938 | ||
40939 | #ifdef __cplusplus | |
40940 | extern "C" | |
40941 | #endif | |
40942 | SWIGEXPORT void SWIG_init(void) { | |
40943 | PyObject *m, *d; | |
40944 | ||
40945 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
40946 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
40947 | ||
40948 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
40949 | d = PyModule_GetDict(m); | |
40950 | ||
40951 | SWIG_InitializeModule(0); | |
40952 | SWIG_InstallConstants(d,swig_const_table); | |
40953 | ||
40954 | ||
01f6b6d3 RD |
40955 | SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME))); |
40956 | SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX))); | |
40957 | SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX))); | |
fc46b7f3 RD |
40958 | SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT))); |
40959 | SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE))); | |
0085ce49 RD |
40960 | SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion))); |
40961 | SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion))); | |
40962 | SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion))); | |
40963 | SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT))); | |
40964 | SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE))); | |
40965 | SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN))); | |
40966 | SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT))); | |
40967 | SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS))); | |
40968 | SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN))); | |
40969 | SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE))); | |
40970 | SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX))); | |
40971 | SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN))); | |
40972 | SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL))); | |
40973 | SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC))); | |
40974 | SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT))); | |
40975 | SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX))); | |
40976 | SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL))); | |
40977 | SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT))); | |
40978 | SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD))); | |
40979 | SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX))); | |
40980 | SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT))); | |
40981 | SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC))); | |
40982 | SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT))); | |
40983 | SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT))); | |
40984 | SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD))); | |
40985 | SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED))); | |
40986 | SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED))); | |
40987 | SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED))); | |
40988 | SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH))); | |
40989 | SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK))); | |
40990 | SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM))); | |
40991 | SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT))); | |
40992 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1))); | |
40993 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2))); | |
40994 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3))); | |
40995 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4))); | |
40996 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5))); | |
40997 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6))); | |
40998 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7))); | |
40999 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8))); | |
41000 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9))); | |
41001 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10))); | |
41002 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11))); | |
41003 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12))); | |
41004 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13))); | |
41005 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14))); | |
41006 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15))); | |
41007 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX))); | |
41008 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8))); | |
41009 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U))); | |
41010 | SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE))); | |
41011 | SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN))); | |
41012 | SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437))); | |
41013 | SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850))); | |
41014 | SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852))); | |
41015 | SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855))); | |
41016 | SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866))); | |
41017 | SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874))); | |
41018 | SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932))); | |
41019 | SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936))); | |
41020 | SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949))); | |
41021 | SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950))); | |
41022 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250))); | |
41023 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251))); | |
41024 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252))); | |
41025 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253))); | |
41026 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254))); | |
41027 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255))); | |
41028 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256))); | |
41029 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257))); | |
41030 | SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX))); | |
41031 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7))); | |
41032 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8))); | |
41033 | SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP))); | |
41034 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE))); | |
41035 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE))); | |
41036 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE))); | |
41037 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE))); | |
41038 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN))); | |
41039 | SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE))); | |
41040 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD))); | |
41041 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN))); | |
41042 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC))); | |
41043 | SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW))); | |
41044 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK))); | |
41045 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC))); | |
41046 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI))); | |
41047 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI))); | |
41048 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI))); | |
41049 | SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA))); | |
41050 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI))); | |
41051 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL))); | |
41052 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU))); | |
41053 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA))); | |
41054 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM))); | |
41055 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE))); | |
41056 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE))); | |
41057 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER))); | |
41058 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI))); | |
41059 | SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN))); | |
41060 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN))); | |
41061 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN))); | |
41062 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP))); | |
41063 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN))); | |
41064 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN))); | |
41065 | SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC))); | |
41066 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR))); | |
41067 | SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE))); | |
41068 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT))); | |
41069 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL))); | |
41070 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS))); | |
41071 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH))); | |
41072 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN))); | |
41073 | SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC))); | |
41074 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN))); | |
41075 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC))); | |
41076 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC))); | |
41077 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD))); | |
41078 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN))); | |
41079 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX))); | |
41080 | SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX))); | |
41081 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16))); | |
41082 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32))); | |
41083 | SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE))); | |
41084 | SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312))); | |
41085 | SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5))); | |
41086 | SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS))); | |
41087 | ||
41088 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
41089 | ||
41090 | SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT))); | |
41091 | SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN))); | |
41092 | SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN))); | |
41093 | SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR))); | |
41094 | SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS))); | |
41095 | SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN))); | |
41096 | SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC))); | |
41097 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC))); | |
41098 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA))); | |
41099 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN))); | |
41100 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT))); | |
41101 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ))); | |
41102 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN))); | |
41103 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT))); | |
41104 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON))); | |
41105 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA))); | |
41106 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO))); | |
41107 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN))); | |
41108 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR))); | |
41109 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA))); | |
41110 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN))); | |
41111 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA))); | |
41112 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA))); | |
41113 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE))); | |
41114 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN))); | |
41115 | SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN))); | |
41116 | SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE))); | |
41117 | SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA))); | |
41118 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI))); | |
41119 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC))); | |
41120 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN))); | |
41121 | SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR))); | |
41122 | SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE))); | |
41123 | SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN))); | |
41124 | SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI))); | |
41125 | SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI))); | |
41126 | SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI))); | |
41127 | SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA))); | |
41128 | SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON))); | |
41129 | SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN))); | |
41130 | SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE))); | |
41131 | SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN))); | |
41132 | SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN))); | |
41133 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE))); | |
41134 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED))); | |
41135 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL))); | |
41136 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG))); | |
41137 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU))); | |
41138 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE))); | |
41139 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN))); | |
41140 | SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN))); | |
41141 | SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN))); | |
41142 | SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH))); | |
41143 | SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH))); | |
41144 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH))); | |
41145 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN))); | |
41146 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH))); | |
41147 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK))); | |
41148 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US))); | |
41149 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA))); | |
41150 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE))); | |
41151 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA))); | |
41152 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA))); | |
41153 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN))); | |
41154 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK))); | |
41155 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE))); | |
41156 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA))); | |
41157 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND))); | |
41158 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES))); | |
41159 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA))); | |
41160 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD))); | |
41161 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE))); | |
41162 | SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO))); | |
41163 | SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN))); | |
41164 | SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE))); | |
41165 | SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI))); | |
41166 | SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI))); | |
41167 | SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH))); | |
41168 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH))); | |
41169 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN))); | |
41170 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN))); | |
41171 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG))); | |
41172 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO))); | |
41173 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS))); | |
41174 | SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN))); | |
41175 | SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN))); | |
41176 | SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN))); | |
41177 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN))); | |
41178 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN))); | |
41179 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM))); | |
41180 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN))); | |
41181 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG))); | |
41182 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS))); | |
41183 | SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK))); | |
41184 | SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC))); | |
41185 | SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI))); | |
41186 | SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI))); | |
41187 | SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA))); | |
41188 | SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW))); | |
41189 | SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI))); | |
41190 | SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN))); | |
41191 | SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC))); | |
41192 | SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN))); | |
41193 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA))); | |
41194 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE))); | |
41195 | SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT))); | |
41196 | SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK))); | |
41197 | SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH))); | |
41198 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN))); | |
41199 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS))); | |
41200 | SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE))); | |
41201 | SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE))); | |
41202 | SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA))); | |
41203 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI))); | |
41204 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA))); | |
41205 | SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH))); | |
41206 | SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK))); | |
41207 | SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA))); | |
41208 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ))); | |
41209 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI))); | |
41210 | SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI))); | |
41211 | SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN))); | |
41212 | SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH))); | |
41213 | SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN))); | |
41214 | SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN))); | |
41215 | SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN))); | |
41216 | SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA))); | |
41217 | SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN))); | |
41218 | SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN))); | |
41219 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY))); | |
41220 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY))); | |
41221 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM))); | |
41222 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM))); | |
41223 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA))); | |
41224 | SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE))); | |
41225 | SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI))); | |
41226 | SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI))); | |
41227 | SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI))); | |
41228 | SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN))); | |
41229 | SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN))); | |
41230 | SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU))); | |
41231 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI))); | |
41232 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA))); | |
41233 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL))); | |
41234 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK))); | |
41235 | SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN))); | |
41236 | SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA))); | |
41237 | SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO))); | |
41238 | SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO))); | |
41239 | SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH))); | |
41240 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE))); | |
41241 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN))); | |
41242 | SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI))); | |
41243 | SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA))); | |
41244 | SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE))); | |
41245 | SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN))); | |
41246 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN))); | |
41247 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE))); | |
41248 | SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN))); | |
41249 | SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO))); | |
41250 | SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT))); | |
41251 | SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC))); | |
41252 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN))); | |
41253 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC))); | |
41254 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN))); | |
41255 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN))); | |
41256 | SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO))); | |
41257 | SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA))); | |
41258 | SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA))); | |
41259 | SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI))); | |
41260 | SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE))); | |
41261 | SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI))); | |
41262 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK))); | |
41263 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN))); | |
41264 | SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI))); | |
41265 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH))); | |
41266 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA))); | |
41267 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA))); | |
41268 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE))); | |
41269 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA))); | |
41270 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA))); | |
41271 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC))); | |
41272 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR))); | |
41273 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR))); | |
41274 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA))); | |
41275 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS))); | |
41276 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN))); | |
41277 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN))); | |
41278 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA))); | |
41279 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA))); | |
41280 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY))); | |
41281 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU))); | |
41282 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO))); | |
41283 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY))); | |
41284 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US))); | |
41285 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA))); | |
41286 | SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE))); | |
41287 | SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI))); | |
41288 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH))); | |
41289 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND))); | |
41290 | SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG))); | |
41291 | SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK))); | |
41292 | SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL))); | |
41293 | SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR))); | |
41294 | SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU))); | |
41295 | SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI))); | |
41296 | SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN))); | |
41297 | SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA))); | |
41298 | SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA))); | |
41299 | SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA))); | |
41300 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH))); | |
41301 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN))); | |
41302 | SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI))); | |
41303 | SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR))); | |
41304 | SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN))); | |
41305 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU))); | |
41306 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA))); | |
41307 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN))); | |
41308 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK))); | |
41309 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC))); | |
41310 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN))); | |
41311 | SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE))); | |
41312 | SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK))); | |
41313 | SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH))); | |
41314 | SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF))); | |
41315 | SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA))); | |
41316 | SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH))); | |
41317 | SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA))); | |
41318 | SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG))); | |
41319 | SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU))); | |
41320 | SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED))); | |
41321 | SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER))); | |
41322 | SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE))); | |
41323 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY))); | |
41324 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX))); | |
41325 | SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP))); | |
41326 | SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT))); | |
41327 | SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT))); | |
41328 | SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING))); | |
41329 | SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT))); | |
41330 | SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE))); | |
41331 | SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT))); | |
41332 | SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX))); | |
41333 | SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS))); | |
41334 | SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2))); | |
41335 | SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC))); | |
41336 | SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA))); | |
41337 | SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA))); | |
70d7cb34 RD |
41338 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); |
41339 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set); | |
41340 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set); | |
41341 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set); | |
5c8c7dd3 RD |
41342 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set); |
41343 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set); | |
0085ce49 RD |
41344 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL))); |
41345 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT))); | |
41346 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED))); | |
41347 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED))); | |
41348 | SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL))); | |
41349 | SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL))); | |
41350 | SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE))); | |
50efceee RD |
41351 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK))); |
41352 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE))); | |
41353 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN))); | |
41354 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN))); | |
41355 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY))); | |
41356 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY))); | |
41357 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY))); | |
41358 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED))); | |
41359 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT))); | |
41360 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE))); | |
41361 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK))); | |
41362 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE))); | |
41363 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN))); | |
41364 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN))); | |
41365 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY))); | |
41366 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED))); | |
41367 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE))); | |
41368 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS))); | |
41369 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS))); | |
41370 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD))); | |
41371 | SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC))); | |
41372 | SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL))); | |
41373 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL))); | |
41374 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS))); | |
41375 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK))); | |
41376 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED))); | |
41377 | SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN))); | |
41378 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN))); | |
41379 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY))); | |
41380 | SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY))); | |
41381 | SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY))); | |
41382 | SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED))); | |
41383 | SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT))); | |
41384 | SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE))); | |
41385 | SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT))); | |
0085ce49 RD |
41386 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set); |
41387 | SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set); | |
41388 | SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set); | |
41389 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set); | |
41390 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set); | |
41391 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set); | |
41392 | SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set); | |
41393 | SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set); | |
0085ce49 RD |
41394 | SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED))); |
41395 | SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED))); | |
41396 | SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED))); | |
79df624a | 41397 | SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL))); |
0085ce49 RD |
41398 | SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT))); |
41399 | SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU))); | |
41400 | SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED))); | |
79df624a | 41401 | SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP))); |
0085ce49 RD |
41402 | SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT))); |
41403 | SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED))); | |
41404 | SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED))); | |
41405 | SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE))); | |
41406 | SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED))); | |
41407 | SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK))); | |
41408 | SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY))); | |
33d6fd3b RD |
41409 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE))); |
41410 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP))); | |
41411 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN))); | |
0085ce49 RD |
41412 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version))); |
41413 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age))); | |
41414 | ||
41415 | // Work around a chicken/egg problem in drawlist.cpp | |
41416 | wxPyDrawList_SetAPIPtr(); | |
41417 | ||
d14a1e28 RD |
41418 | } |
41419 |